/* Стили для модального окна премиум подписки */

.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.premium-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.premium-modal-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.premium-modal-icon {
    font-size: 48px;
    line-height: 1;
}

.premium-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.premium-modal-header p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.premium-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.premium-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.premium-modal-body {
    padding: 24px;
}

.premium-benefits h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.premium-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.premium-check {
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
}

.premium-social-proof {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-social-proof span {
    font-size: 20px;
}

.premium-social-proof p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
    font-size: 14px;
}

.premium-urgency {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.premium-urgency p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
    font-size: 14px;
}

.premium-plans h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.premium-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.premium-plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.premium-plan-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.premium-plan-card.popular {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.premium-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.premium-plan-card h4 {
    margin: 8px 0 12px 0;
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
}

.premium-plan-price {
    text-align: center;
    margin-bottom: 16px;
}

.premium-plan-price .price {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
}

.premium-plan-price .currency {
    color: #6b7280;
    margin-left: 4px;
}

.premium-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    min-height: 120px;
}

.premium-plan-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.premium-plan-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f3f4f6;
    color: #1f2937;
}

.premium-plan-button:hover {
    background: #e5e7eb;
    transform: scale(1.02);
}

.premium-plan-button.primary {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.premium-plan-button.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #7e22ce 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.premium-guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.premium-guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.premium-guarantee-item span {
    font-size: 32px;
}

.premium-guarantee-item p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.premium-modal-footer {
    background: #f9fafb;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-modal-cancel {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-modal-cancel:hover {
    background: #f9fafb;
}

.premium-modal-hint {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .premium-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .premium-modal-header {
        padding: 16px;
    }
    
    .premium-modal-header h3 {
        font-size: 20px;
    }
    
    .premium-modal-body {
        padding: 16px;
    }
    
    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-guarantees {
        grid-template-columns: 1fr;
    }
    
    .premium-modal-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .premium-modal-hint {
        display: none;
    }
}

