/* ========== MODAL COMPONENT STYLES ========== */

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 3, 15, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px 30px;
    max-width: 840px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(1, 3, 15, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #01030F;
}

.modal-icon.success {
    background: #e5e5e5;
    color: #01030F;
}

.modal-icon.success svg {
    display: none;
}

.modal-icon.success::after {
    content: '✓';
    font-size: 32px;
    font-weight: bold;
}

.modal-icon.error {
    background: #e5e5e5;
    color: #01030F;
}

.modal-icon.warning {
    background: #f0f0f0;
    color: #01030F;
}

.modal-body {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #01030F;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    min-width: 120px;
    height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: #01030F;
    color: #fff;
}

.modal-btn-primary:hover {
    background: #2d2f3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 3, 15, 0.2);
}

.modal-btn-secondary {
    background: #fff;
    color: #01030F;
    border: 2px solid #e5e5e5;
}

.modal-btn-secondary:hover {
    background: #f8f8f8;
    border-color: #01030F;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px 20px;
        max-width: 95%;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-message {
        font-size: 0.95rem;
    }
}
