@keyframes scan-animation {
    0% {
        top: 0%;
    }
    100% {
        top: 100%;
    }
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(72, 255, 0, 0.7);
    box-shadow: 0 0 10px 2px rgba(72, 255, 0, 0.5);
    animation: scan-animation 2s ease-in-out infinite alternate;
}

.cards {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding-inline: 1rem;
    padding-block: 1rem;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 1rem;
    scrollbar-width: none; /* For Firefox */
}
.cards::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}
.cards > * {
    scroll-snap-align: start;
}

.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: grid;
    inline-size: min(75cqi, 200px);
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cards > *:not(:last-child) {
    margin-right: 1rem;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.cameravision-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

#cameravision-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.cameravision-reticle {
    position: absolute;
    inset: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.2);
    pointer-events: none;
}

.cameravision-glow {
    position: absolute;
    inset: auto 1.5rem 1.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.6), rgba(34, 197, 94, 0.1));
    animation: scan-animation 2s ease-in-out infinite alternate;
}

.cameravision-icon-btn {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 16px 30px -18px rgba(16, 185, 129, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cameravision-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 34px -18px rgba(16, 185, 129, 0.8);
}

.cameravision-icon-primary {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    border: none;
}

.cameravision-icon-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    color: #374151;
}