.modal-box {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.98) translateY(8px);
    transition: transform 0.15s ease;
    will-change: transform;
    overflow: hidden;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box__body {
    padding: 32px 28px 24px;
    text-align: center;
}

.modal-box__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.modal-box__icon--success {
    background: #d1fae5;
    color: #059669;
}

.modal-box__icon--error {
    background: #fee2e2;
    color: #dc2626;
}

.modal-box__icon--warning {
    background: #fef3c7;
    color: #d97706;
}

.modal-box__icon--info {
    background: #dbeafe;
    color: #2563eb;
}

.modal-box__icon--confirm {
    background: #fef3c7;
    color: #d97706;
}

.modal-box__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.modal-box__message {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    word-break: break-word;
}

.modal-box__actions {
    display: flex;
    gap: 10px;
    padding: 0 28px 24px;
    justify-content: center;
}

.modal-box__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.modal-box__btn:focus-visible {
    outline: 2px solid #014538;
    outline-offset: 2px;
}

.modal-box__btn--primary {
    background: #014538;
    color: white;
}

.modal-box__btn--primary:hover {
    background: #016349;
}

.modal-box__btn--cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.modal-box__btn--cancel:hover {
    background: #e5e7eb;
}

.modal-box__btn--danger {
    background: #dc2626;
    color: white;
}

.modal-box__btn--danger:hover {
    background: #b91c1c;
}

@media (max-width: 480px) {
    .modal-box {
        max-width: 100%;
    }

    .modal-box__body {
        padding: 24px 20px 20px;
    }

    .modal-box__actions {
        padding: 0 20px 20px;
        flex-direction: column-reverse;
    }

    .modal-box__btn {
        flex: none;
        width: 100%;
    }
}
