.noutati-wrap {
    position: relative;
    --nout-bg: 255, 255, 255;
}
/* 🌫️ Fog dreapta — permanentă */
.noutati-wrap::after {
    content: '';
    position: absolute;
    top: 4px; bottom: 22px;
    right: 0;
    width: 180px;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(to left,
        rgba(var(--nout-bg), 1) 0%,
        rgba(var(--nout-bg), 0.95) 15%,
        rgba(var(--nout-bg), 0.75) 35%,
        rgba(var(--nout-bg), 0.4) 60%,
        rgba(var(--nout-bg), 0) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 100%);
    mask-image: linear-gradient(to left, #000 20%, transparent 100%);
}
/* 🌫️ Fog stânga — apare după scroll */
.noutati-wrap::before {
    content: '';
    position: absolute;
    top: 4px; bottom: 22px;
    left: 0;
    width: 100px;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(to right,
        rgba(var(--nout-bg), 1) 0%,
        rgba(var(--nout-bg), 0.6) 50%,
        rgba(var(--nout-bg), 0) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 100%);
    mask-image: linear-gradient(to right, #000 20%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.noutati-wrap.is-scrolled::before { opacity: 1; }

.noutati-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 4px;
    padding: 4px 4px 18px;
    margin: 0 -4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.noutati-track::-webkit-scrollbar { display: none; }
.noutati-track > .bento-card.noutati-card {
    flex: 0 0 calc((100% - (var(--home-cols, 3) - 1) * 16px) / var(--home-cols, 3));
    scroll-snap-align: start;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
}

/* ═══ V7 — 3D TILT BUTTONS (neumorphism + perspective) ═══ */
.noutati-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f0f0f5);
    color: var(--navy, #1a1a2e);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    box-shadow:
        6px 6px 16px rgba(163, 177, 198, 0.4),
        -6px -6px 16px rgba(255, 255, 255, 0.9);
    transition: all 0.35s ease;
    perspective: 600px;
    z-index: 10;
}
.noutati-arrow svg {
    width: 22px; height: 22px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}
.noutati-arrow[hidden] { display: none; }
.noutati-arrow--prev { left: 10px; }
.noutati-arrow--next { right: 10px; }

.noutati-arrow--next:hover:not([hidden]) {
    transform: translateY(-50%) rotateY(-20deg) rotateX(5deg) scale(1.08);
    box-shadow:
        12px 8px 24px rgba(163, 177, 198, 0.5),
        -2px -2px 10px rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, var(--gold, #c8a951), var(--gold-dark, #a88a3e));
    color: #fff;
}
.noutati-arrow--prev:hover:not([hidden]) {
    transform: translateY(-50%) rotateY(20deg) rotateX(5deg) scale(1.08);
    box-shadow:
        -12px 8px 24px rgba(163, 177, 198, 0.5),
        2px -2px 10px rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, var(--gold, #c8a951), var(--gold-dark, #a88a3e));
    color: #fff;
}
.noutati-arrow--next:hover:not([hidden]) svg { transform: translateZ(10px) translateX(3px) scale(1.1); }
.noutati-arrow--prev:hover:not([hidden]) svg { transform: translateZ(10px) translateX(-3px) scale(1.1); }

.noutati-arrow:active:not([hidden]) {
    transform: translateY(-50%) scale(0.95);
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

/* Noutati scroller — cap coloane pe breakpoint aliniate cu bento-grid */
@media (max-width: 1439px) {
    .noutati-track[style*="--home-cols:5"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:6"] > .bento-card.noutati-card {
        flex: 0 0 calc((100% - 3 * 16px) / 4);
    }
}
@media (max-width: 1023px) {
    .noutati-track[style*="--home-cols:4"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:5"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:6"] > .bento-card.noutati-card {
        flex: 0 0 calc((100% - 2 * 16px) / 3);
    }
    .noutati-wrap::after { width: 130px; }
    .noutati-wrap::before { width: 80px; }
}
@media (max-width: 767px) {
    .noutati-track[style*="--home-cols:3"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:4"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:5"] > .bento-card.noutati-card,
    .noutati-track[style*="--home-cols:6"] > .bento-card.noutati-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}
@media (max-width: 479px) {
    .noutati-track > .bento-card.noutati-card {
        flex: 0 0 85% !important;
    }
    .noutati-arrow { width: 44px; height: 44px; border-radius: 14px; }
    .noutati-arrow svg { width: 18px; height: 18px; }
    .noutati-arrow--prev { left: 6px; }
    .noutati-arrow--next { right: 6px; }
    .noutati-wrap::after { width: 90px; }
    .noutati-wrap::before { width: 60px; }
}
