/* =============================================================================
   GLASS SWEEP ANIMATION - FINAL
   Совместимо с: feature-card, price-card, badge-bestseller
   ============================================================================= */

/* === Блик внутри .card-glass (JS добавляет этот div) === */
.card-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.01) 30%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.01) 70%,
        transparent 100%
    );
    pointer-events: none;
    transform: skewX(-20deg);
    transition: none;
}

/* === Активный блик === */
.glass-sweep .card-glass::before {
    left: 150%;
    transition: left 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* === Мягкая подсветка рамки при блике === */
.glass-sweep {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.02),
        0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    transition: border-color 1.5s ease, box-shadow 1.5s ease;
}

/* === Сброс после блика === */
.glass-reset {
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    transition: border-color 2s ease, box-shadow 2s ease;
}

/* === Пауза при наведении на контейнер === */
.feature-cards-container:hover .card-glass::before,
.price-cards-container:hover .card-glass::before,
.row:hover .card-glass::before {
    transition: none !important;
    left: -100% !important;
}

.row:hover .glass-sweep {
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    transition: all 0.5s ease !important;
}

/* === Контент карточек поверх блика === */
.feature-card > :not(.card-glass),
.price-card > :not(.card-glass) {
    position: relative;
    z-index: 1;
}

/* === Индикаторы === */
.glass-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.glass-indicator.visible {
    opacity: 1;
}

.glass-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.6s ease;
}

.glass-dot.active {
    background: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    width: 24px;
    border-radius: 3px;
}

/* === Mobile === */
@media (max-width: 768px) {
    .card-glass::before {
        width: 30%;
    }
    .glass-sweep .card-glass::before {
        transition: left 2s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
}