/* ============================================================
   notify.css — общие стили: тост-уведомления (.notification,
   .phone-notification), состояние отправки кнопки (.btn-loading)
   и общие анимации. Вынесено из устаревшего mobile-modal.css.
   ============================================================ */



.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
    z-index: 10000;
    font-family: 'Gilroy-Medium', sans-serif;
    font-size: 15px;
    font-weight: 500;
    max-width: 340px;
    animation: slideInRightBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-right: 5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    transform-origin: right center;
}

.notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 12px 40px rgba(244, 67, 54, 0.5);
    border-right: 5px solid rgba(255, 255, 255, 0.4);
}

.phone-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
    z-index: 10000;
    font-family: 'Gilroy-Medium', sans-serif;
    font-size: 15px;
    font-weight: 500;
    max-width: 340px;
    animation: slideInRightBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-right: 5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    transform-origin: right center;
}

.phone-notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 12px 40px rgba(244, 67, 54, 0.5);
    border-right: 5px solid rgba(255, 255, 255, 0.4);
}

@keyframes slideInRightBounce {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-10px) scale(1.05);
    }
    70% {
        transform: translateX(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutRightBounce {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    30% {
        transform: translateX(-5px) scale(1.02);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
