.vw-equation-sequence {
    position: relative;
    padding: 16px 12px;
    margin: 10px 0;
    background: rgba(13, 27, 42, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(79, 177, 255, 0.1);
}

.vw-equation-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    margin: 4px 0;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    color: #e0e0e0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    min-height: 36px;
}

.vw-equation-step:hover {
    background: rgba(255, 255, 255, 0.03);
}

.vw-eq-equals {
    color: #4FB1FF;
    margin: 0 8px;
    font-weight: 700;
}

.vw-term {
    display: inline-block;
    transition: all 0.4s ease;
    padding: 0 2px;
}

.vw-eq-operation {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
    font-style: italic;
    background: rgba(255, 215, 0, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.vw-crossout-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease;
    opacity: 0.5;
    border-radius: 1px;
    pointer-events: none;
}

.vw-diagram-wrapper {
    background: rgba(13, 27, 42, 0.85);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vw-diagram-wrapper svg {
    display: block;
    margin: 8px auto;
}

.vw-diagram-wrapper svg text {
    transition: opacity 0.35s ease;
}

.vw-diagram-wrapper svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes vwChalkWrite {
    from {
        opacity: 0;
        filter: blur(2px);
        transform: translateX(-4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes vwPulseGlow {
    0%, 100% { text-shadow: 0 0 4px rgba(72, 213, 151, 0.2); }
    50% { text-shadow: 0 0 10px rgba(72, 213, 151, 0.4); }
}

@keyframes vwCrossout {
    from { width: 0; }
    to { width: 60%; }
}

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

.vw-equation-step.vw-final {
    animation: vwPulseGlow 2s ease-in-out infinite;
    animation-delay: 1s;
}

.vw-enhanced-marker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(79, 177, 255, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .vw-equation-step {
        font-size: 15px;
        padding: 8px 10px;
    }

    .vw-eq-operation {
        font-size: 9px;
        padding: 1px 5px;
        position: static;
        transform: none;
        display: block;
        text-align: center;
        margin: 2px auto;
    }

    .vw-diagram-wrapper {
        padding: 8px;
    }

    .vw-diagram-wrapper svg {
        max-width: 100%;
        height: auto;
    }
}
