.custom-popup {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    z-index: 1050;
    
    background-image: url("https://astral52.ru/wp-content/themes/astral52_ru_theme/images/pop-up-max-bg.png");
    
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    border-right: none;
    
    color: #fff;
    padding: 20px;
    box-shadow: -5px -5px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-out;
    visibility: hidden;
}

.custom-popup.show {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.custom-popup-bg-image {
    position: absolute;
    bottom: -10px;
    right: -20px;
    width: 160px;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}
.custom-popup-bg-image img {
    width: 100%;
    height: auto;
}

.custom-popup-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 5px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.custom-popup-close:hover {
    color: #fff;
}

.popup-header { 
    margin-bottom: 8px; 
}

.logo-placeholder {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    font-size: 14px;
    font-weight: bold;
}

.popup-header img {
    margin-right: 10px;
}

.header-text {
    font-size: 9px;
    line-height: 1.1;
    color: #d0dcec;
    text-transform: uppercase;
}

.popup-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    color: white;
}
.popup-title span {
    color: #4db8ff;
}

.popup-desc {
    font-size: 11px;
    color: #d0dcec;
    margin-bottom: 12px;
    line-height: 1.3;
}

.popup-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: auto; /* Прижимает кнопку к низу */
}
.feature-badge {
    background: rgba(13, 56, 131, 0.6);
    border: 1px solid rgba(77, 184, 255, 0.2);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    backdrop-filter: blur(4px);
    color: #e2e8f0;
}
.feature-badge svg {
    color: #4db8ff;
    margin-right: 6px;
    flex-shrink: 0;
}

.popup-btn {
    background-color: #e2e8f0;
    color: #0b275c;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.popup-btn:hover {
    background-color: #fff;
    color: #04102b;
    transform: translateY(-2px);
}