/* NETA coverflow certificate slider */
.neta-round-slider {
    --neta-slider-blue: #24499f;
    --neta-slider-blue-2: #0c67c7;
    --neta-slider-muted: #64748b;
    --neta-slider-line: #e5eaf2;
    position: relative;
    width: 100%;
    margin: 1.5rem 0 2rem;
}

.neta-round-slider__stage {
    position: relative;
    width: 100%;
    /* Tall stage for full certificate visibility (source ≈1047×802) */
    height: clamp(520px, 72vw, 760px);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.neta-round-slider__ring {
    position: absolute;
    inset: 0;
}

.neta-round-slider__item {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Height locked to stage → never clipped top/bottom */
    height: 90%;
    width: auto;
    aspect-ratio: 1047 / 802;
    max-width: min(94%, 820px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        filter 0.45s ease;
    will-change: transform, opacity;
}

.neta-round-slider__item:focus-visible .neta-round-slider__frame {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px var(--neta-slider-blue-2),
        0 22px 48px rgba(28, 37, 57, 0.22);
}

.neta-round-slider__frame {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--neta-slider-line);
    box-shadow: 0 12px 32px rgba(28, 37, 57, 0.12);
    transition: box-shadow 0.35s ease;
}

.neta-round-slider__item.is-active .neta-round-slider__frame {
    box-shadow: 0 22px 48px rgba(28, 37, 57, 0.2);
}

.neta-round-slider__item.is-active:hover .neta-round-slider__frame {
    box-shadow: 0 26px 56px rgba(28, 37, 57, 0.26);
}

.neta-round-slider__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    pointer-events: none;
}

/* Soft fade where side slides tuck under the center card */
.neta-round-slider__item.is-side-left .neta-round-slider__frame {
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

.neta-round-slider__item.is-side-right .neta-round-slider__frame {
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

.neta-round-slider__hint {
    margin: 0.9rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--neta-slider-muted);
}

.neta-round-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.neta-round-slider__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--neta-slider-line);
    background: #fff;
    color: var(--neta-slider-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.neta-round-slider__btn:hover {
    background: var(--neta-slider-blue);
    border-color: var(--neta-slider-blue);
    color: #fff;
}

.neta-round-slider__btn:active {
    transform: scale(0.96);
}

.neta-round-slider__btn:focus-visible {
    outline: 2px solid var(--neta-slider-blue-2);
    outline-offset: 2px;
}

.neta-round-slider__dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.neta-round-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c5d0e0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.neta-round-slider__dot.is-active {
    background: var(--neta-slider-blue);
    transform: scale(1.25);
}

.neta-round-slider__dot:focus-visible {
    outline: 2px solid var(--neta-slider-blue-2);
    outline-offset: 2px;
}

/* Modal */
.neta-cert-modal .modal-dialog {
    max-width: min(980px, calc(100vw - 1.5rem));
}

.neta-cert-modal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.neta-cert-modal .modal-header {
    border: 0;
    padding: 0.75rem 0.85rem 0;
    background: transparent;
}

.neta-cert-modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

.neta-cert-modal .modal-body {
    padding: 0.35rem 1rem 1.15rem;
}

.neta-cert-modal__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
}

html[dir="rtl"] .neta-round-slider__btn i {
    transform: scaleX(-1);
}

html[dir="rtl"] .neta-round-slider__item.is-side-left .neta-round-slider__frame {
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

html[dir="rtl"] .neta-round-slider__item.is-side-right .neta-round-slider__frame {
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

@media (max-width: 767.98px) {
    .neta-round-slider__stage {
        height: clamp(340px, 95vw, 520px);
    }

    .neta-round-slider__item {
        height: 90%;
        max-width: min(96%, 480px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .neta-round-slider__item,
    .neta-round-slider__frame,
    .neta-round-slider__btn,
    .neta-round-slider__dot {
        transition: none !important;
    }
}
