/* === PREMIUM-CHECKMARKS-FIXED.CSS ===
 * 🔧 ИСПРАВЛЕННЫЕ галочки с SVG для 100% совместимости
 * 🎯 НАЗНАЧЕНИЕ: Надёжные галочки для ВСЕХ устройств
 * 📱 ПОДДЕРЖКА: iOS, Android, Desktop, все браузеры
 * ⚡ ТЕХНОЛОГИЯ: Inline SVG + CSS
 * 📅 СОЗДАНО: 2025-09-29
 * ✅ ПРОТЕСТИРОВАНО: Chrome, Safari, Firefox, Edge
 */

/* =================================
   🔥 УДАЛЯЕМ СТАРЫЕ СТИЛИ
   ================================= */
.premium-check-icon::after,
.premium-feature-check::after {
    display: none !important;
    content: none !important;
}

/* =================================
   ✅ НОВЫЕ SVG ГАЛОЧКИ ДЛЯ РАДИО
   ================================= */
.premium-check-icon {
    position: absolute;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    overflow: visible;
}

/* SVG галочка внутри круга */
.premium-check-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Активное состояние */
.premium-period-radio:checked + .premium-period-card .premium-check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Анимация появления */
@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.premium-period-radio:checked + .premium-period-card .premium-check-icon {
    animation: checkBounce 0.4s ease-out;
}

/* =================================
   🎯 SVG ГАЛОЧКИ ДЛЯ СПИСКА ФУНКЦИЙ
   ================================= */
.premium-feature-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* SVG галочка для списка */
.premium-feature-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #10b981;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hover эффект */
.premium-feature-item:hover .premium-feature-check {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.25));
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* =================================
   📱 МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ================================= */
@media (max-width: 768px) {
    .premium-check-icon {
        width: 20px;
        height: 20px;
        left: 1rem;
    }
    
    .premium-check-icon svg {
        width: 12px;
        height: 12px;
        stroke-width: 2.5;
    }
    
    .premium-feature-check {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    .premium-feature-check svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 400px) {
    .premium-check-icon {
        width: 18px;
        height: 18px;
        left: 0.75rem;
    }
    
    .premium-check-icon svg {
        width: 10px;
        height: 10px;
    }
    
    .premium-feature-check {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
    
    .premium-feature-check svg {
        width: 10px;
        height: 10px;
    }
}

/* =================================
   🌟 СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ
   ================================= */

/* Золотая галочка для популярного */
.premium-period-item:has(.premium-popular-badge) .premium-check-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Пульсирующий эффект */
@keyframes pulseSoft {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    }
}

.premium-period-radio:checked + .premium-period-card .premium-check-icon {
    animation: checkBounce 0.4s ease-out, pulseSoft 3s ease-in-out infinite;
}

/* =================================
   🛡️ FALLBACK ДЛЯ СТАРЫХ БРАУЗЕРОВ
   ================================= */

/* Если SVG не поддерживается, показываем Unicode галочку */
@supports not (display: flex) {
    .premium-check-icon::before,
    .premium-feature-check::before {
        content: "✓";
        color: white;
        font-size: 16px;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .premium-feature-check::before {
        color: #10b981;
        font-size: 14px;
    }
}

/* =================================
   ⚡ ПРОИЗВОДИТЕЛЬНОСТЬ
   ================================= */

.premium-check-icon,
.premium-feature-check {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Отключаем анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .premium-check-icon,
    .premium-feature-check {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/* =================================
   🔧 ДОПОЛНИТЕЛЬНЫЕ ФИКСЫ
   ================================= */

/* Убеждаемся что галочки не обрезаются */
.premium-period-card,
.premium-feature-item {
    overflow: visible !important;
}

/* Фикс для Safari */
.premium-check-icon svg,
.premium-feature-check svg {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Фикс для Firefox */
.premium-check-icon,
.premium-feature-check {
    -moz-osx-font-smoothing: grayscale;
}

/* Высокий контраст для доступности */
@media (prefers-contrast: high) {
    .premium-check-icon {
        border: 2px solid white;
    }
    
    .premium-feature-check {
        border-width: 3px;
    }
}
