.insight-unlock-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    background:
        linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 65%);
    border: 1px solid var(--accent-secondary);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 auto 14px;
    max-width: 460px;
    box-shadow:
        0 1px 2px var(--shadow-light),
        0 4px 14px var(--shadow-medium);
    text-align: left;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
}

.insight-unlock-card.is-revealed {
    animation: insight-reveal 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.insight-unlock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        color-mix(in srgb, var(--text-inverse, #ffffff) 55%, transparent) 35%,
        color-mix(in srgb, var(--accent-secondary) 30%, transparent) 50%,
        color-mix(in srgb, var(--text-inverse, #ffffff) 55%, transparent) 65%,
        transparent 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
}

.insight-unlock-card.is-revealed::before {
    animation: insight-shimmer 1.4s ease-out 0.45s 1 both;
}

@keyframes insight-reveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes insight-shimmer {
    from {
        left: -120%;
    }
    to {
        left: 220%;
    }
}

.insight-unlock-icon {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--accent-secondary) 35%, transparent));
}

.insight-unlock-body {
    flex: 1 1 auto;
    min-width: 0;
}

.insight-unlock-title {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.insight-unlock-reference {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.86rem;
    margin-top: 3px;
}

.insight-unlock-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.insight-unlock-open-btn {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--text-inverse, #ffffff);
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.86rem;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px var(--shadow-medium);
}

.insight-unlock-open-btn:hover,
.insight-unlock-open-btn:focus {
    filter: brightness(0.9);
    color: var(--text-inverse, #ffffff);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-strong);
}

.insight-unlock-skip-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 4px 6px;
    text-decoration: underline;
}

.insight-unlock-skip-btn:hover {
    color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
    .insight-unlock-card.is-revealed,
    .insight-unlock-card.is-revealed::before {
        animation: none;
    }
    .insight-unlock-card.is-revealed {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    .insight-unlock-card {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px 12px;
    }
    .insight-unlock-icon {
        width: 32px;
        height: 32px;
    }
    .insight-unlock-actions {
        flex: 1 0 100%;
        justify-content: flex-end;
        margin-top: 2px;
    }
}
