/* =============================================================================
   LANDING DYNAMIC COMPONENTS — styles for JS-RENDERED markup only.
   The landing page's JavaScript injects deal cards, need cards, hero slides,
   category cards and a modal with these class names. Static landing markup
   is styled with Tailwind utilities directly in landing.php (no inline CSS).
   ============================================================================= */

/* (Removed the blanket white !important on .hero-section i — it made the hero
   slider arrows white-on-white/invisible and overrode gold accent icons.
   Icons take their color from their own utility classes now.) */

.landing-deals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .landing-deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-deals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.deal-card {
    background: #ffffff;
    border: 1px solid var(--border, #e7ecf7);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    box-shadow: 0 12px 30px -22px rgba(20, 40, 90, 0.35);
}

.deal-card:hover {
    transform: translateY(-6px);
    border-color: rgba(32, 88, 230, 0.45);
    box-shadow: 0 26px 48px -20px rgba(32, 88, 230, 0.32);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, var(--bg2));
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.card-gallery-nav.prev {
    left: 0.5rem;
}

.card-gallery-nav.next {
    right: 0.5rem;
}

.card-gallery-count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 3;
}

.deal-card:hover .card-image {
    transform: scale(1.08);
}

.timer-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.partner-badge {
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2058e6;
}

.partner-location {
    font-size: 0.7rem;
    color: #64748b;
}

.deal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.deal-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.feature-chip {
    background: #F5B042;
    padding: 0.25rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #1a1a2e;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2058e6;
    line-height: 1;
}

.old-price {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: line-through;
}

.trust-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: #64748b;
}

.trust-item i {
    color: #2058e6;
    font-size: 0.7rem;
}

.cta-button {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 88, 230, 0.3);
}

.deal-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.65rem;
    margin-top: 0.5rem;
    background: #fff;
    border: 1.5px solid #2058e6;
    color: #2058e6;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.deal-contact-btn:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: none;
    background: white;
    z-index: 10;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1a1a2e;
}

.modal-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.25rem;
    color: white;
}

.modal-body {
    padding: 0 2rem 2rem 2rem;
    color: #1a1a2e;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-field {
    margin-bottom: 1rem;
    display: block;
    text-align: left;
}

.modal-body>div[style*="grid-template-columns"] .modal-field {
    display: block;
    margin-bottom: 0.75rem;
}

.modal-body>div[style*="grid-template-columns"] .modal-label {
    margin-bottom: 0.25rem;
}

.modal-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    word-wrap: break-word;
}

.modal-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
}

.modal-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.modal-media-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 0.75rem;
    background: #eef2ff;
}

.modal-media-video {
    width: 100%;
    grid-column: 1 / -1;
    max-height: 320px;
    border-radius: 0.75rem;
    background: #000;
}

.modal-media-audio {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    background: #eef2ff;
    color: #2058e6;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-media-audio audio {
    flex: 1 1 auto;
    height: 32px;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 120px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    color: white;
}

.modal-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(32, 88, 230, 0.3);
}

.modal-btn-secondary {
    background: white;
    color: #2058e6;
    border: 2px solid #e0e0e0;
}

.modal-btn-secondary:hover {
    border-color: #2058e6;
    transform: scale(1.05);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.modal-gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.3rem;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s;
    opacity: 0.7;
}

.modal-gallery-thumb:hover,
.modal-gallery-thumb.active {
    border-color: #2058e6;
    transform: scale(1.05);
    opacity: 1;
}

.landing-action-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.landing-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.1rem;
    border-radius: 2rem;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #2f6bf6, #2058e6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 14px 30px -12px rgba(32, 88, 230, 0.55);
}

.landing-action-btn i {
    color: #F5B042;
}

.landing-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    box-shadow: 0 20px 38px -12px rgba(32, 88, 230, 0.6);
}

#heroDealSlider.hero-slider {
    display: grid;
    grid-template-areas: "track";
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 1.25rem;
    overflow: hidden;
    background: transparent !important;
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.18);
}

#heroDealSlider .slides-container,
#heroDealSlider #heroSliderLoading,
#heroDealSlider .slider-controls,
#heroDealSlider .slider-dots {
    grid-area: track;
}

/* Responsive slider height: explicit clamp instead of an aspect ratio, so the
   slider never collapses into a thin letterbox strip on wide screens. */
#heroDealSlider .slides-container {
    position: relative;
    width: 100%;
    height: clamp(400px, 58vh, 600px);
    padding-bottom: 0;
    overflow: hidden;
    background: #e2e8f0;
}

#heroDealSlider #heroSliderLoading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(400px, 58vh, 600px);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: #64748b;
    font-weight: 600;
}

#heroDealSlider .slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#heroDealSlider .slide-item.active {
    opacity: 1;
    z-index: 1;
}

/* Caption: compact dark-glass card floating above the bottom edge — inset with
   left/right (no transform centering), so it can never drift or clip. */
#heroDealSlider .slide-topbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    transform: none;
    width: auto;
    max-width: none;
    background: rgba(8, 15, 34, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.85rem 1.1rem;
    color: #fff;
    text-align: left;
    z-index: 3;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 12px 30px -14px rgba(3, 10, 28, 0.55);
}

.hero-slider .slide-topbar .title {
    color: #fff;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-slider .slide-topbar .desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-slider .slide-topbar .price {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hero-slider .slide-topbar .btn-deal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5B042;
    color: #0b1120;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(245, 176, 66, 0.7);
    transition: background .2s ease, transform .2s ease;
}

.hero-slider .slide-topbar .btn-deal:hover {
    background: #e09a2c;
    transform: translateY(-1px);
}

#heroDealSlider .slider-controls {
    position: relative;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.65rem;
    z-index: 4;
    pointer-events: none;
    transform: none;
    top: auto;
}

#heroDealSlider .slider-controls button {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #2058e6;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.35);
}

#heroDealSlider .slider-controls button i {
    color: inherit;
}

#heroDealSlider .slider-controls button:hover,
#heroDealSlider .slider-controls button:focus-visible {
    background: #2058e6;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 14px 32px -8px rgba(11, 29, 90, 0.5);
}

/* Dots: small glass pill pinned to the top-right of the slider so they never
   collide with the bottom caption. */
#heroDealSlider .slider-dots {
    position: relative;
    align-self: start;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.8rem 0.9rem 0 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(3, 10, 28, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    height: fit-content;
    z-index: 4;
    pointer-events: auto;
}

.hero-slider .slider-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.hero-slider .slider-dots .dot.active {
    background: #f5b042;
    width: 1.35rem;
}

/* Tablet: keep a generous banner without eating the whole screen */
@media (min-width: 768px) and (max-width: 1023px) {

    #heroDealSlider .slides-container,
    #heroDealSlider #heroSliderLoading {
        height: clamp(320px, 46vh, 460px);
    }
}

@media (max-width: 767px) {

    #heroDealSlider .slides-container,
    #heroDealSlider #heroSliderLoading {
        height: clamp(230px, 36vh, 340px);
        border-radius: 1rem;
    }

    #heroDealSlider .slide-topbar {
        flex-wrap: wrap;
        row-gap: 8px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 0.7rem 0.85rem;
        border-radius: 12px;
    }

    #heroDealSlider .slide-topbar .title {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.25;
    }

    #heroDealSlider .slide-topbar .desc {
        display: none;
    }

    #heroDealSlider .slide-topbar .price {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    #heroDealSlider .slide-topbar .btn-deal {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    #heroDealSlider .slider-controls button {
        width: 2.25rem;
        height: 2.25rem;
    }

    #heroDealSlider .slider-dots {
        margin: 0.6rem 0.6rem 0 0;
        padding: 5px 9px;
    }
}

#heroDealSlider .slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2058e6 0%, #1e46c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    flex-direction: column;
}

.hero-slider .slide-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ── Section titles: short brand underline for a consistent, finished look ── */
.ns-sec-title {
    position: relative;
    padding-bottom: 16px;
}

.ns-sec-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: #2058e6;
}

.ns-sec-title-light::after {
    background: #f5b042;
}

/* ── Section divider: brand lines draw outward from the logo on scroll ────── */
.ns-divider {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ns-divider-line {
    position: relative;
    flex: 1;
    height: 1.5px;
    border-radius: 2px;
    background: #b9cdf5;
    /* soft brand blue — visible on white and primary-50 */
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ns-divider-line:last-child {
    transform-origin: left center;
}

.ns-divider-logo {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #b9cdf5;
    box-shadow: 0 4px 14px -8px rgba(20, 40, 90, 0.25);
    opacity: 0;
    transform: scale(0.75);
    transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s,
        opacity 0.4s ease 0.1s;
    will-change: transform, opacity;
}

.ns-divider-logo img {
    height: 20px;
    width: auto;
    max-width: 100px;
    display: block;
    object-fit: contain;
}

.ns-divider.ns-divider-in .ns-divider-line {
    transform: scaleX(1);
}

.ns-divider.ns-divider-in .ns-divider-logo {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 640px) {
    .ns-divider {
        gap: 10px;
    }

    .ns-divider-logo {
        padding: 5px 11px;
    }

    .ns-divider-logo img {
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ns-divider-line,
    .ns-divider-logo {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

.needs-grid-landing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .needs-grid-landing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .needs-grid-landing {
        grid-template-columns: repeat(3, 1fr);
    }
}

.need-card-landing {
    background: #ffffff;
    border: 1px solid var(--border, #e7ecf7);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px -22px rgba(20, 40, 90, 0.35);
    cursor: pointer;
}

.need-card-media-landing {
    position: relative;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(2px);
}

.media-type-badge.media-badge-video {
    left: 10px;
    right: auto;
}

.meta-anonymous-landing {
    color: #7a8296;
    font-style: italic;
}

.btn-reinquire-landing {
    background: linear-gradient(135deg, #2f6bf6, #1e46c8);
    box-shadow: 0 4px 12px rgba(32, 88, 230, 0.25);
    font-weight: 700;
}

.btn-reinquire-landing:hover {
    box-shadow: 0 8px 20px rgba(32, 88, 230, 0.38);
}

.need-card-audio-landing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    background: #eef2ff;
    color: #2058e6;
}

.need-card-audio-landing i {
    flex: 0 0 auto;
}

.need-card-audio-landing audio {
    flex: 1 1 auto;
    height: 32px;
}

.need-card-landing:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -20px rgba(32, 88, 230, 0.32);
    border-color: rgba(32, 88, 230, 0.45);
}

.need-card-content-landing {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.need-card-thumb-landing {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #eef2ff;
}

.need-status-pill-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.need-status-pill-landing.is-progress {
    background: #eff6ff;
    color: #2058e6;
    border-color: #bfdbfe;
}

.need-category-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: #eef2ff;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2058e6;
    margin-bottom: 1rem;
    width: fit-content;
}

.need-category-landing i {
    font-size: 0.7rem;
    color: #f59e0b !important;
}

.need-title-landing {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.need-description-landing {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.need-meta-landing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.meta-item-landing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6b7280;
}

.meta-item-landing i {
    width: 1rem;
    font-size: 0.7rem;
    color: #f59e0b !important;
}

.need-budget-landing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.budget-amount-landing {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2058e6;
}

.budget-label-landing {
    font-size: 0.7rem;
    color: #6b7280;
}

.status-badge-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.status-open-landing {
    background: #dcfce7;
    color: #166534;
}

.status-urgent-landing {
    background: #fee2e2;
    color: #991b1b;
}

.need-footer-landing {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-primary-need-landing {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #2058e6;
    color: white;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-need-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 88, 230, 0.3);
    background: #1e46c8;
}

.btn-secondary-need-landing {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f3f4f6;
    border: 1px solid var(--border, #e5e7eb);
    color: #1f2937;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-need-landing:hover {
    border-color: #2058e6;
    transform: translateY(-2px);
}

.needs-load-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.needs-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.1rem;
    background: linear-gradient(135deg, #2f6bf6, #2058e6);
    border: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 14px 30px -12px rgba(32, 88, 230, 0.55);
}

.needs-load-more-btn i {
    color: #F5B042 !important;
}

.needs-load-more-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2058e6, #1e46c8);
    box-shadow: 0 20px 38px -12px rgba(32, 88, 230, 0.6);
}

.empty-needs-landing {
    text-align: center;
    padding: 3rem;
    background: #ffffff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 1.25rem;
    grid-column: 1 / -1;
    color: #1f2937;
}

.empty-needs-landing i {
    font-size: 3rem;
    color: #f59e0b !important;
    margin-bottom: 1rem;
}

.skeleton-need-card {
    background: #ffffff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 1.25rem;
    padding: 1.5rem;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ns-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease-out;
    will-change: opacity, transform, filter;
}

.ns-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Directional reveal variants — alternate section entrances feel choreographed */
.ns-reveal.ns-reveal-left {
    transform: translateX(-38px) scale(0.99);
}

.ns-reveal.ns-reveal-right {
    transform: translateX(38px) scale(0.99);
}

.ns-reveal.ns-reveal-scale {
    transform: translateY(16px) scale(0.94);
}

.ns-reveal.ns-reveal-left.is-visible,
.ns-reveal.ns-reveal-right.is-visible,
.ns-reveal.ns-reveal-scale.is-visible {
    transform: none;
}

/* Section headers cascade: eyebrow pill → title → subtitle */
.ns-reveal.text-center>* {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-reveal.text-center.is-visible>* {
    opacity: 1;
    transform: none;
}

.ns-reveal.text-center.is-visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.ns-reveal.text-center.is-visible>*:nth-child(2) {
    transition-delay: 0.16s;
}

.ns-reveal.text-center.is-visible>*:nth-child(3) {
    transition-delay: 0.27s;
}

/* ── Card entrance: cards resolve into place, staggered by --i, once the grid
   scrolls into view (the .ns-in class is added by the reveal observer). ────── */
.landing-deals-grid>.deal-card,
#landingNeedsGrid>.need-card-landing,
.ns-cat-row>.ns-cat-card {
    opacity: 0;
    transform: translateY(28px) scale(0.965);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
    will-change: opacity, transform;
}

.landing-deals-grid.ns-in>.deal-card,
#landingNeedsGrid.ns-in>.need-card-landing,
.ns-cat-row.ns-in>.ns-cat-card {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .ns-reveal,
    .ns-reveal.text-center>* {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none;
    }

    .landing-deals-grid>.deal-card,
    #landingNeedsGrid>.need-card-landing,
    .ns-cat-row>.ns-cat-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }

    .ns-hero-in>* {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Hero on-load cascade — headline, copy, actions, and panel resolve in
   sequence the moment the page paints (no scroll needed). ─────────────────── */
.ns-hero-in>* {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ns-hero-in.ns-hero-shown>* {
    opacity: 1;
    transform: none;
}

.ns-hero-in.ns-hero-shown>*:nth-child(1) {
    transition-delay: 0.08s;
}

.ns-hero-in.ns-hero-shown>*:nth-child(2) {
    transition-delay: 0.20s;
}

.ns-hero-in.ns-hero-shown>*:nth-child(3) {
    transition-delay: 0.32s;
}

.ns-hero-in.ns-hero-shown>*:nth-child(4) {
    transition-delay: 0.44s;
}

.ns-hero-in.ns-hero-shown>*:nth-child(5) {
    transition-delay: 0.56s;
}

.ns-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .ns-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ns-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- One-line category rail (all categories, arrows scroll left/right) ----- */
.ns-cat-slider {
    position: relative;
}

/* soft edge fades hint that the rail scrolls */
.ns-cat-slider::before,
.ns-cat-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 1;
    pointer-events: none;
}

.ns-cat-slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 20%, rgba(255, 255, 255, 0));
}

.ns-cat-slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 20%, rgba(255, 255, 255, 0));
}

.ns-cat-row {
    display: flex;
    align-items: stretch;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 0.6rem 0.35rem 1.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ns-cat-row::-webkit-scrollbar {
    display: none;
}

.ns-cat-row .ns-cat-card {
    flex: 0 0 222px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.25rem 1.45rem;
    border-radius: 18px;
}

.ns-cat-row .ns-cat-blob {
    width: 96px;
    height: 96px;
    top: -28px;
    right: -28px;
}

.ns-cat-row .ns-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #2f6bf6, #1e46c8);
}

.ns-cat-row .ns-cat-title {
    font-size: 1.05rem;
    margin: 1rem 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ns-cat-row .ns-cat-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-cat-row .ns-cat-more {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2058e6;
    transition: color .25s ease, gap .25s ease;
}

.ns-cat-row .ns-cat-more i {
    font-size: 0.7rem;
    color: inherit !important;
}

.ns-cat-card:hover .ns-cat-more {
    color: #1e46c8;
    gap: 0.7rem;
}

.ns-cat-row .ns-cat-loading {
    flex: 1;
}

.ns-cat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #2058e6;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(20, 40, 90, 0.5);
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ns-cat-nav i {
    color: inherit;
}

.ns-cat-nav:hover,
.ns-cat-nav:focus-visible {
    background: #2058e6;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 18px 36px -12px rgba(32, 88, 230, 0.55);
}

.ns-cat-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.ns-cat-nav-prev {
    left: -16px;
}

.ns-cat-nav-next {
    right: -16px;
}

@media (max-width: 640px) {
    .ns-cat-nav {
        display: none;
    }

    .ns-cat-slider::before,
    .ns-cat-slider::after {
        width: 24px;
    }

    .ns-cat-row .ns-cat-card {
        flex-basis: 200px;
    }
}

/* CTA band on the blue CTA section: glass so the band still reads as a card */
.ns-cta-band.ns-cta-band-glass {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 70px -30px rgba(11, 29, 90, 0.55);
}

/* one flat consistent band look — no radial glow circle */
.ns-cta-band.ns-cta-band-glass::after {
    display: none;
}

.ns-cat-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: #ffffff;
    border: 1px solid #eef2fb;
    border-radius: 22px;
    padding: 1.6rem 1.5rem 1.75rem;
    text-decoration: none;
    box-shadow: 0 12px 30px -18px rgba(20, 40, 90, 0.25);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
}

.ns-cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(32, 88, 230, 0.35);
    box-shadow: 0 26px 46px -20px rgba(32, 88, 230, 0.4);
}

.ns-cat-blob {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #eaf0ff;
    transition: transform .35s ease, background .35s ease;
    z-index: 0;
}

.ns-cat-card:hover .ns-cat-blob {
    transform: scale(1.12);
    background: #dfe8ff;
}

.ns-cat-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2058e6;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px -8px rgba(32, 88, 230, 0.6);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.ns-cat-card:hover .ns-cat-icon {
    transform: rotate(-6deg) scale(1.06);
}

.ns-cat-icon i {
    color: #ffffff !important;
}

.ns-cat-title {
    position: relative;
    z-index: 1;
    margin: 1.15rem 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f1c3f;
    letter-spacing: -0.01em;
}

.ns-cat-desc {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.ns-cat-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 2rem 0;
}

/* Card footers align across a row regardless of content length/media:
   stats + action bar are pushed to the bottom of the (flex-column) card body. */
.need-card-content-landing > .sc-stats-grid,
.card-content > .sc-stats-grid {
    margin-top: auto;
}
.need-card-content-landing > .need-title-landing,
.need-card-content-landing > h3,
.card-content > .deal-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
