/* ===================================
   RESPONSIVE - 4 Breakpoints Only
   sm: 576px | md: 768px | lg: 992px | xl: 1200px
   =================================== */

/* ===================================
   BREAKPOINT 1: sm (576px) - Mobile
   =================================== */

@media (max-width: 575.98px) {
    /* Headings: smaller on phones */
    .hero-title {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    }

    .insights-section h2 {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .about-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .about-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .about-kicker {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .pikasa-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .pikasa-content-title {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .core-products-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .core-products-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .plans-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .plans-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .final-cta-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .final-cta-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .about-card-title {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .footer-title {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
    }

    /* Footer: better on phones */
    .footer-section {
        padding: var(--space-lg) var(--space-md);
        border-width: var(--space-md);
    }

    .footer-box {
        padding: var(--space-xl) var(--space-lg);
    }

    .footer-logo {
        height: 36px;
    }

    .footer-text {
        font-size: clamp(0.85rem, 2.2vw, 0.95rem);
        max-width: 100%;
    }

    .footer-content .row > div {
        margin-bottom: var(--space-lg);
    }

        /* Footer phones: logo/text/social top, Products + Products + Legal in one row */
        .footer-content .row > div:first-child {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .footer-content .row > div:nth-child(2),
        .footer-content .row > div:nth-child(3),
        .footer-content .row > div:nth-child(4) {
            flex: 0 0 33.333%;
            max-width: 33.333%;
        }

    .footer-title {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        margin-bottom: var(--space-sm);
    }

    .footer-links a {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .footer-links li {
        margin-bottom: var(--space-xs);
    }

    .footer-social .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .footer-bottom {
        margin-top: var(--space-xl);
        padding-top: var(--space-md);
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }

    .footer-section {
        border: none;
        border-radius: 0;
    }

    /* Login modal: Register overlay */
    .lm-register-overlay { padding: 16px; align-items: flex-end; }
    .lm-register-box {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px 32px;
        border-radius: 16px 16px 0 0;
    }
    .lm-register-close { top: 12px; right: 14px; font-size: 1.35rem; }
    .lm-register-title { font-size: 1rem; margin-bottom: 10px; }
    .lm-register-text { font-size: 0.85rem; line-height: 1.5; }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .testimonial-text {
        color: #FFFFFF;
        font-size: clamp(12px, 2vw, 12px);
    }

    .testimonials-carousel-unified {
        height: 480px;
    }

    .testimonials-carousel-unified .carousel-inner {
        padding: 0 36px;
    }

    .testimonials-carousel-unified .carousel-item {
        min-height: 420px;
    }

    .testimonials-carousel-unified .carousel-control-prev,
    .testimonials-carousel-unified .carousel-control-next {
        width: 36px;
        height: 36px;
    } 
    .plans-box{
        height: 800px;
        width: 400px;
    }
    .plans-box::before, .plans-box::after{
        height: 150%;
    }
    
    /* Tall Cards: smaller visuals on phones (2 per row) */
    .about-card-visual {
        height: 100px;
    }

        .about-card-visual img {
            height: 80px;
            max-width: 90px;
        }

    /* Products section: vector, names, description, decorative lines */
    .core-products-header {
        margin-bottom: var(--space-sm);
    }

    .product-icon-wrapper {
        margin: var(--space-xs) 0;
    }

    .product-vector-icon {
        width: 22px;
        height: 22px;
    }

    .product-name {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .product-description {
        font-size: clamp(0.8rem, 2.2vw, 0.95rem);
        line-height: 1.5;
    }

    .product-description-wrapper {
        min-height: 60px;
        margin-top: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .carousel-bg-decoration {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

        .carousel-bg-decoration::before {
            width: 100vw;
            left: 50%;
            transform: translateX(-50%);
            background-position: center 100px;
            background-size: 100vw auto;
            background-repeat: no-repeat;
        }

    .carousel-wrapper {
        padding: var(--space-lg) var(--space-md);
    }

        .carousel-wrapper::before {
            top: 20%;
            height: 1px;
            opacity: 0.6;
        }

        .carousel-wrapper::after {
            top: 28%;
            height: 1px;
            opacity: 0.6;
        }

    .laptop-carousel::before {
        top: 42%;
        height: 1px;
        opacity: 0.6;
    }

    .laptop-carousel::after {
        top: 72%;
        height: 1px;
        opacity: 0.6;
    }

    .product-name-wrapper {
        min-height: 32px;
        margin-top: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .carousel-dots {
        bottom: -20px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

        .carousel-dot.active {
            width: 8px;
        }

    .clients-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .clients-grid-container {
        padding: 0 var(--space-md);
    }

    .client-card {
        padding: 10px 8px;
        min-height: 60px;
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

        .client-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

            .client-card:hover .client-logo {
                transform: scale(1.02);
            }

    /* Softer initial load animation - opacity only, no translate (better for small cubes) */
    .client-logo-item {
        animation: fadeInMobile 0.4s ease-out forwards;
    }

    @keyframes fadeInMobile {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Gentler logo rotation animation for small screens */
    .client-logo {
        max-width: 100%;
        max-height: 45px;
        object-fit: contain;
        transform-origin: center center;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

        .client-logo.fade-out-logo {
            opacity: 0;
            transform: scale(0.95);
        }

        .client-logo.fade-in-logo {
            animation: logoFadeInMobile 0.35s ease-out forwards;
        }

    @keyframes logoFadeInMobile {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

        to {
            opacity: 0.95;
            transform: scale(1);
        }
    }

    .clients-section {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    /* Insights: 2 cards per row, smaller cards on mobile */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 130%;
    }

    .insights-section .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .insight-card {
        padding: var(--space-sm);
        min-height: 95px;
        border-radius: var(--radius-sm);
    }

        .insight-card h4 {
            font-size: clamp(0.7rem, 2.5vw, 0.85rem);
            margin-bottom: 2px;
        }

        .insight-card p {
            font-size: clamp(0.6rem, 2vw, 0.75rem);
            margin-bottom: var(--space-xs);
            line-height: 1.3;
        }

    .insight-card-icon {
        width: 24px;
        height: 24px;
    }

        .insight-card-icon img {
            max-width: 24px;
        }

    /* Table ↔ Carousel: Show carousel, hide table */
    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 3);
        width: calc(100% / 3);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller, full text visible */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 200px;
    }

        .stats-carousel-item .stat-col {
            display: flex;
            flex-direction: column;
            width: 100%;
            min-height: 100%;
        }

        .stats-carousel-item .stat-text-box {
            min-height: 140px;
            flex: 1;
            margin-top: 0;
        }

        .stats-carousel-item .stat-number-box {
            min-height: 50px;
            margin-top: 0;
            flex-shrink: 0;
        }

        .stats-carousel-item .stat-text-cell {
            min-height: auto;
            padding: 10px 8px;
            overflow: visible;
        }

        .stats-carousel-item .stat-title {
            font-size: clamp(0.8rem, 2.2vw, 1rem);
        }

        .stats-carousel-item .stat-description {
            font-size: clamp(0.7rem, 1.8vw, 0.9rem);
            display: block;
            overflow: visible;
            text-overflow: unset;
            white-space: normal;
        }

        .stats-carousel-item .stat-number-cell {
            min-height: 45px;
            padding: 8px;
        }

        .stats-carousel-item .stat-number {
            font-size: clamp(1.25rem, 4vw, 1.5rem);
            line-height: 1;
        }

    /* Mobile navbar */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: var(--space-lg);
        border-radius: var(--radius-md);
        margin-top: var(--space-sm);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        padding: var(--space-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

        .navbar-nav .nav-link:last-child {
            border-bottom: none;
        }

    /* Pikasa: tabs in one row on phones */
    .pikasa-tabs {
        flex-wrap: nowrap;
        gap: var(--space-xs);
        justify-content: space-between;
    }

    .pikasa-tabs::before {
        width: 100%;
    }

    .pikasa-tab {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        padding: var(--space-xs) 0;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    /* Layout: Pikasa column stack */
    .pikasa-tab-content .row {
        flex-direction: column !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .pikasa-tab-content .order-1,
    .pikasa-tab-content .order-2 {
        order: unset !important;
    }
}

/* ===================================
   BREAKPOINT 2: md (768px) - Tablet
   =================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Headings: smaller on tablets */
    .hero-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .insights-section h2 {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .about-title {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .about-subtitle {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .about-kicker {
        font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .pikasa-title {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .pikasa-content-title {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    .core-products-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .core-products-subtitle {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .plans-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .plans-subtitle {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .final-cta-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .final-cta-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .about-card-title {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .footer-title {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    }

    .testimonial-text {
        font-size: clamp(13px, 2vw, 13px);
    }

    .insight-card h4 {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }

    .about-card-visual img {
        max-width: 130px;
    }

    /* Insights: 3 cards per row, shorter cards, frame */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 120%;
    }

    .insight-card {
        min-height: 100px;
    }

    .insights-section .row > div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 5);
        width: calc(100% / 5);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 220px;
    }

        .stats-carousel-item .stat-col {
            display: flex;
            flex-direction: column;
            width: 100%;
            min-height: 100%;
        }

        .stats-carousel-item .stat-text-box {
            min-height: 150px;
            flex: 1;
            margin-top: 0;
        }

        .stats-carousel-item .stat-number-box {
            min-height: 55px;
            margin-top: 0;
            flex-shrink: 0;
        }

        .stats-carousel-item .stat-text-cell {
            min-height: auto;
            padding: 12px 10px;
            overflow: visible;
        }

        .stats-carousel-item .stat-title {
            font-size: clamp(0.85rem, 2vw, 1.05rem);
        }

        .stats-carousel-item .stat-description {
            font-size: clamp(0.75rem, 1.8vw, 0.95rem);
            display: block;
            overflow: visible;
            text-overflow: unset;
            white-space: normal;
        }

        .stats-carousel-item .stat-number-cell {
            min-height: 48px;
            padding: 10px;
        }

        .stats-carousel-item .stat-number {
            font-size: clamp(1.5rem, 4vw, 1.75rem);
            line-height: 1;
        }

    /* Footer: logo/text/social top, Products + Legal in one row */
    .footer-content .row > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-content .row > div:nth-child(2),
    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .footer-box {
        padding: var(--space-2xl) var(--space-xl);
    }

    .footer-logo {
        height: 40px;
    }

    .footer-text {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .footer-title {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }

    /* Pikasa: text left, images right on tablets */
    .pikasa-tab-content .row {
        flex-direction: row !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50%;
    }

    .pikasa-tab-content .order-2.order-lg-1 {
        order: 1 !important;
    }

    .pikasa-tab-content .order-1.order-lg-2 {
        order: 2 !important;
    }

    /* Our Clients: 4 columns on tablet */
    .clients-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: var(--space-md);
    }

    .client-card {
        min-height: 85px;
        padding: 14px 12px;
    }

    .client-logo {
        max-height: 70px;
    }

    /* Login modal: Tablet */
    #loginModal .modal-dialog {
        margin: 16px auto;
        padding: 20px 20px;
        max-width: 100%;
    }
    #loginModal .modal-content {
        max-height: 90vh;
        border-radius: 20px;
        overflow-y: auto;
    }
    #loginModal .lm-stripe {
        height: 60px;
        min-height: 55px;
        border-radius: 20px 20px 0 0;
        background: url('../img/dashboard header design.png') no-repeat center top;
        background-size: cover;
    }
    #loginModal .lm-card-border {
        margin: 20px;
        border-width: 12px;
        border-radius: 16px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 24px rgba(255,255,255,0.2);
    }
    #loginModal .lm-close-btn {
        top: 50px;
        right: 50px;
    }
    #loginModal .lm-card-wrapper {
        padding: 28px 24px 70px;
        min-height: min(480px, 70vh);
        border-radius: 10px;
        overflow: hidden;
    }
    #loginModal .lm-card { min-height: min(420px, 62vh); }
    #loginModal .lm-blob--orange {
        width: 180px;
        height: 180px;
        top: 80px;
        left: 20px;
        filter: blur(20px);
    }
    #loginModal .lm-blob--yellow {
        width: 160px;
        height: 160px;
        top: 50%;
        right: 10px;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        filter: blur(10px);
    }
    #loginModal .lm-blob--blue {
        width: 100px;
        height: 100px;
        bottom: 60px;
        left: 50px;
        right: auto;
        top: auto;
        filter: blur(10px);
    }

    /* Register overlay: Tablet */
    .lm-register-box {
        padding: 28px 24px;
        max-width: 90%;
    }
    .lm-register-title { font-size: 1.05rem; }
    .lm-register-text { font-size: 0.88rem; }
}

/* ===================================
   BREAKPOINT 3: lg (992px) - Desktop
   Table visible, Carousel hidden
   =================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Headings: smaller on tablets (768-992px) */
    .hero-title {
        font-size: clamp(1.35rem, 3.8vw, 1.6rem);
    }

    .insights-section h2 {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .about-title {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .about-subtitle {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .about-kicker {
        font-size: clamp(1.2rem, 3.2vw, 1.4rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .pikasa-title {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    }

    .pikasa-content-title {
        font-size: clamp(1.15rem, 2.8vw, 1.35rem);
    }

    .core-products-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .core-products-subtitle {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .plans-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .plans-subtitle {
        font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    }

    .final-cta-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .final-cta-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
    }

    .about-card-title {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .footer-title {
        font-size: clamp(1.15rem, 2.8vw, 1.3rem);
    }

    /* Footer tablets: logo/text/social top, Products + Products + Legal in one row */
    .footer-content .row > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-content .row > div:nth-child(2),
    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(1.1rem, 2.6vw, 1.25rem);
    }

    .testimonial-text {
        font-size: clamp(13px, 2vw, 13px);
    }

    .testimonials-carousel-unified {
        height: 680px;
    }

    .testimonials-carousel-unified .carousel-item {
        min-height: 640px;
    }

    .insight-card h4 {
        font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    }

    .about-card-visual img {
        max-width: 150px;
    }

    /* Insights: frame + 3 cards per row, shorter cards */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 120%;
    }

    .insight-card {
        min-height: 100px;
    }

    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 5);
        width: calc(100% / 5);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 230px;
    }

        .stats-carousel-item .stat-col {
            display: flex;
            flex-direction: column;
            width: 100%;
            min-height: 100%;
        }

        .stats-carousel-item .stat-text-box {
            min-height: 155px;
            flex: 1;
            margin-top: 0;
        }

        .stats-carousel-item .stat-number-box {
            min-height: 55px;
            margin-top: 0;
            flex-shrink: 0;
        }

        .stats-carousel-item .stat-text-cell {
            min-height: auto;
            padding: 12px 10px;
            overflow: visible;
        }

        .stats-carousel-item .stat-title {
            font-size: clamp(0.9rem, 2vw, 1.1rem);
        }

        .stats-carousel-item .stat-description {
            font-size: clamp(0.8rem, 1.8vw, 1rem);
            display: block;
            overflow: visible;
            text-overflow: unset;
            white-space: normal;
        }

        .stats-carousel-item .stat-number-cell {
            min-height: 48px;
            padding: 10px;
        }

        .stats-carousel-item .stat-number {
            font-size: clamp(1.5rem, 4vw, 1.75rem);
            line-height: 1;
        }

    /* Pikasa: text left, images right on tablets */
    .pikasa-tab-content .row {
        flex-direction: row !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50%;
    }

    .pikasa-tab-content .order-2.order-lg-1 {
        order: 1 !important;
    }

    .pikasa-tab-content .order-1.order-lg-2 {
        order: 2 !important;
    }

    /* Our Clients: 5 columns on larger tablets */
    .clients-grid-wrapper {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .client-card {
        min-height: 95px;
    }

    .client-logo {
        max-height: 80px;
    }

    /* Login modal: Small laptops */
    #loginModal .modal-dialog {
        margin: 24px auto;
        max-width: 100%;
        padding: 24px 24px;
    }
    #loginModal .lm-stripe {
        height: 70px;
        border-radius: 22px 22px 0 0;
        background: url('../img/dashboard header design.png') no-repeat center top;
        background-size: cover;
    }
    #loginModal .lm-card-border {
        margin: 28px;
        border-width: 14px;
        border-radius: 18px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    #loginModal .lm-card-wrapper {
        padding: 40px 36px 80px;
        min-height: min(560px, 78vh);
        overflow: hidden;
    }
    #loginModal .lm-blob--orange {
        width: 180px;
        height: 180px;
        top: 50px;
        left: 15px;
        filter: blur(20px);
    }
    #loginModal .lm-blob--yellow {
        width: 160px;
        height: 160px;
        top: 50%;
        right: 30px;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        filter: blur(20px);
    }
    #loginModal .lm-blob--blue {
        width: 100px;
        height: 100px;
        bottom: 60px;
        left: 20px;
        right: auto;
        top: auto;
        filter: blur(20px);
    }
}

/* ===================================
   BREAKPOINT 3.5: lg-xl (992px - 1199px) - iPad Pro
   =================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .testimonials-carousel-unified {
        height: 680px;
    }

    .testimonials-carousel-unified .carousel-item {
        min-height: 640px;
    }
}

/* ===================================
   BREAKPOINT 4: xl (992px+) - Full Desktop
   Table visible, Carousel hidden
   =================================== */

@media (min-width: 992px) {
    /* Login modal: Laptops & Desktop */
    #loginModal .modal-dialog { max-width: 1200px; padding: 24px 24px; }

    .about-stats-wrapper .table-responsive {
        display: block !important;
    }

    .testimonial-text {
        font-size: clamp(16px, 2vw, 16px);
    }

    .stats-carousel-wrapper {
        display: none !important;
    }

    /* Our Clients: larger logos on laptops */
    .client-card {
        min-height: clamp(90px, 14vw, 130px);
    }

    .client-logo {
        max-height: clamp(70px, 12vw, 140px);
    }
}
