

.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); }
}

#mobileModal.phone-modal-bg,
#mobileAjaxModal.phone-modal-bg {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.8) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
}

.phone-modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.phone-modal-box {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-modal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.hikvision-modal .phone-modal-image {
    background: #D20B12;
}

.ajax-modal .phone-modal-image {
    background: #00C851;
}

.phone-modal-devices-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.phone-modal-content {
    padding: 25px;
    background: white;
    color: #333;
}

.phone-modal-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.phone-modal-question-text {
    color: #999;
    font-size: 16px;
}

.phone-modal-logo {
    height: 15px;
}

.hikvision-modal .phone-modal-logo {
    height: 30px;
}

.ajax-modal .phone-modal-logo {
    height: 15px;
}

.phone-modal-header {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.phone-modal-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.phone-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phone-modal-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-modal-label {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.phone-modal-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.phone-modal-field:focus {
    outline: none;
    border-color: #D20B12;
    box-shadow: 0 0 0 3px rgba(210, 11, 18, 0.1);
}

.ajax-modal .phone-modal-field:focus {
    border-color: #00C851;
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

.phone-modal-submit {
    width: 100%;
    padding: 18px;
    background: #333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.phone-modal-submit:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.phone-modal-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.phone-modal-x:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .phone-modal-box {
        width: 98%;
        margin: 10px;
        max-width: none;
    }
    
    .phone-modal-image {
        height: 180px;
    }
    
    .phone-modal-content {
        padding: 20px;
    }
    
    .phone-modal-header {
        font-size: 20px;
    }
    
    .phone-modal-field {
        padding: 12px;
        font-size: 16px;
    }
    
    .phone-modal-submit {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .phone-modal-image {
        height: 160px;
    }
    
    .phone-modal-content {
        padding: 15px;
    }
    
    .phone-modal-header {
        font-size: 18px;
    }
}