/* ===================================
   ROOT VARIABLES & BASE
   =================================== */

:root {
    /* Colors */
    --primary-blue: #3F83FF;
    --primary-orange: #EE6849;
    --dark-purple: #130033;
    --dark-navy: #123773;
    --light-peach: #F0D1CA;
    --light-gray: #F6F6F6;
    --text-gray: #808080;
    --text-dark: #1c0c4f;
    --white: #ffffff;
    /* Typography - Fluid */
    --font-body: 'Rubik', sans-serif;
    --text-xs: clamp(0.5rem, 1.2vw, 0.75rem);
    --text-sm: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-base: clamp(0.875rem, 2vw, 1rem);
    --text-lg: clamp(1rem, 2.5vw, 1.25rem);
    --text-xl: clamp(1.125rem, 3vw, 1.375rem);
    --text-2xl: clamp(1.25rem, 3.5vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 4vw, 2rem);
    --text-4xl: clamp(1.75rem, 4.5vw, 2.25rem);
    --text-5xl: clamp(2rem, 5vw, 2.625rem);
    /* Spacing */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 5rem);
    --space-3xl: clamp(4rem, 8vw, 6rem);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar.main-nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-height: 80px;
    padding: var(--space-md) 0;
    transition: box-shadow var(--transition-base);
}

    .navbar.main-nav.scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

.navbar-nav .nav-link {
    position: relative;
    padding: var(--space-sm) 0;
    font-weight: 500;
    color: var(--dark-purple);
    line-height: 1.5;
    transition: color var(--transition-base);
}

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 4px;
        background-color: var(--dark-purple);
        border-radius: 4px;
        transition: width var(--transition-fast);
    }

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

.navbar-logo {
    height: 45px;
    width: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: var(--space-sm);
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.login-link {
    color: var(--dark-purple);
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

    .login-link:hover {
        opacity: 0.7;
    }

/* ===================================
   BUTTONS (Consolidated)
   =================================== */

.btn-contact,
.btn-demo,
.hero-cta,
.cerousel-cta,
.products-cta-button {
    border-radius: var(--radius-full);
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 500;
    font-size: var(--text-base);
    border: none;
    transition: all var(--transition-base);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-contact {
    background-color: #f2f2f2;
    color: var(--dark-purple);
}

    .btn-contact:hover {
        background-color: #e8e8e8;
    }

.hero-cta,
.cerousel-cta,
.btn-demo,
.products-cta-button {
    background: var(--text-dark);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(28, 12, 79, 0.4);
}

    .hero-cta:hover,
    .cerousel-cta:hover,
    .btn-demo:hover,
    .products-cta-button:hover {
        color: var(--white);
        background: #241063;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(28, 12, 79, 0.5);
    }

/* ===================================
   HERO SECTION
   =================================== */

.hero-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

    .hero-wrapper::before {
        --hero-stripe-w: 11.11%;
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-color: var(--primary-blue);
        background-image: linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 34%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 39%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 38%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 36%, var(--primary-orange) 60%, var(--primary-blue) 100%), linear-gradient(to bottom, #fff 0%, #fff 15%, var(--light-peach) 35%, var(--primary-orange) 60%, var(--primary-blue) 100%);
        background-size: var(--hero-stripe-w) 100%, var(--hero-stripe-w) 89%, var(--hero-stripe-w) 84.7%, var(--hero-stripe-w) 80.5%, var(--hero-stripe-w) 76.9%, var(--hero-stripe-w) 74.9%, var(--hero-stripe-w) 72.9%, var(--hero-stripe-w) 70.9%, var(--hero-stripe-w) 68%, var(--hero-stripe-w) 65%;
        background-position: 0 0, var(--hero-stripe-w) 0, calc(var(--hero-stripe-w) * 2) 0, calc(var(--hero-stripe-w) * 3) 0, calc(var(--hero-stripe-w) * 4) 0, calc(var(--hero-stripe-w) * 5) 0, calc(var(--hero-stripe-w) * 6) 0, calc(var(--hero-stripe-w) * 7) 0, calc(var(--hero-stripe-w) * 8) 0, calc(var(--hero-stripe-w) * 9) 0;
        background-repeat: no-repeat;
    }

    .hero-wrapper > * {
        position: relative;
        z-index: 2;
    }

    .hero-wrapper .navbar {
        z-index: 10;
    }

.hero-content {
    padding: var(--space-xl) 0;
    text-align: center;
}

.hero-title {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-3xl);
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.hero-title-bold {
    font-weight: 600;
}

.hero-cta {
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-devices {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: clamp(250px, 50vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-device {
    display: block;
    max-width: 100%;
}

.hero-device-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 0;
}

.hero-device-main {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-scanner-frame {
    position: absolute;
    left: clamp(-100px, -8vw, -60px);
    bottom: clamp(-80px, -6vw, -40px);
    width: clamp(120px, 25vw, 320px);
    z-index: 4;
    padding: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ffffff4b;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
}

    .hero-scanner-frame .hero-device-scanner {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        display: block;
        border-radius: 8px;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    }

.hero-device-phone {
    position: absolute;
    right: clamp(-60px, -5vw, -20px);
    bottom: clamp(-80px, -6vw, -40px);
    width: clamp(80px, 15vw, 200px);
    z-index: 4;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ===================================
   INSIGHTS SECTION
   =================================== */

.insights-section {
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
    position: relative;
    margin-top: var(--space-2xl);
    border-radius: var(--radius-xl);
    z-index: 5;
    overflow: hidden;
}

    /* CSS gradient background - replaces img */
    .insights-section::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 1500px;
        height: 100%;
        min-height: 100%;
        z-index: 0;
        border-radius: var(--radius-xl);
        border: 3px solid #ffffff4b;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.05);
        background: linear-gradient( 135deg, rgba(17, 54, 114, 0.2) 20% );
    }

    .insights-section .container {
        position: relative;
        z-index: 2;
        padding-left: clamp(1rem, 4vw, 2rem);
        padding-right: clamp(1rem, 4vw, 2rem);
    }

    /* 3 cards per row - tablets & laptops (mobile overridden in responsive.css) */
    .insights-section .row > div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .insights-section h2 {
        color: var(--white);
        font-weight: 700;
        font-size: var(--text-4xl);
        margin-bottom: var(--space-2xl);
        letter-spacing: -0.8px;
    }

.insight-card {
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: 100%;
    min-height: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .insight-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-lg);
        z-index: 1;
    }

    .insight-card > * {
        position: relative;
        z-index: 2;
    }

    .insight-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.insight-card-content {
    flex: 1;
}

.insight-card h4 {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.insight-card p {
    color: var(--text-gray);
    margin: 0 0 var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.5;
}

.insight-card-icon {
    width: 40px;
    height: 40px;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .insight-card-icon img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 44px;
    }

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    position: relative;
    background-image: url("../img/pikasa website background 1.png"), linear-gradient(to bottom, #FAFAFA 0%, #F6F6F6 50%, var(--white) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: top center, top;
    background-size: contain, 100% 100%;
    min-height: 100vh;
    padding: var(--space-3xl) 0 0;
}

    .about-section .container {
        position: relative;
        z-index: 2;
    }

.about-header {
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.about-title {
    color: var(--dark-purple);
    font-weight: 600;
    font-size: var(--text-4xl);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0 0 var(--space-md);
}

    .about-title span {
        color: #2066D8;
        font-weight: 600;
    }

.about-subtitle {
    color: #999999;
    font-size: var(--text-xl);
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   STATS - Fluid values, single definition
   =================================== */

.about-stats-wrapper {
    overflow-x: auto;
    margin: clamp(2rem, 10vw, 7rem) auto;
    padding: 0 var(--space-lg);
    -webkit-overflow-scrolling: touch;
}

.stats-carousel-wrapper {
    position: relative;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-lg);
}

.stats-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.stats-carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.stats-carousel-item {
    min-width: calc(100% / 4);
    flex-shrink: 0;
    padding: 0 var(--space-xs);
    box-sizing: border-box;
}

.about-stats-table {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 800px;
}

    .about-stats-table.table td {
        border: none;
        padding: 0;
    }

    .about-stats-table td.stat-col {
        background: transparent;
        border: none;
        padding: 0;
        width: 14.28%;
        vertical-align: top;
    }

    .about-stats-table .stats-text-row td,
    .about-stats-table .stats-number-row td {
        padding: 0;
        vertical-align: top;
    }

/* Stat cell - unified with fluid values */
.stat-cell-box {
    position: relative;
    background: var(--white);
    border: none;
    box-shadow: none;
    transition: box-shadow var(--transition-base);
    width: 100%;
}

    .stat-cell-box::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(to right, var(--primary-blue) 0%, var(--primary-orange) 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

    .stat-cell-box:hover {
        box-shadow: 0 2px 8px rgba(63, 131, 255, 0.2);
    }

.stat-text-box {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: clamp(120px, 22vw, 260px);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.stat-number-box {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-height: clamp(60px, 12vw, 140px);
    margin-top: calc(clamp(120px, 22vw, 260px) * -0.35);
    position: relative;
    z-index: 10;
}

.stat-col:last-child .stat-cell-box {
    border-right: none;
}

.stat-text-cell {
    padding: var(--space-lg);
    min-height: clamp(90px, 18vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-sm);
    line-height: 1.4;
    margin: 0 0 var(--space-xs);
}

.stat-description {
    color: rgba(19, 0, 51, 0.6);
    font-size: var(--text-xs);
    line-height: 1.5;
    margin: 0;
    overflow: visible;
    white-space: normal;
}

.stat-number-cell {
    padding: var(--space-lg);
    text-align: center;
    min-height: clamp(80px, 15vw, 120px);
}

.stat-number {
    background: linear-gradient(to bottom, var(--primary-orange) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1.5px;
    line-height: 1;
}

/* Carousel stat items - inherit from table */
.stats-carousel-item .stat-text-box {
    min-height: clamp(100px, 18vw, 180px);
}

.stats-carousel-item .stat-number-box {
    margin-top: calc(clamp(100px, 18vw, 180px) * -0.35);
}

.stats-carousel-item .stat-col {
    width: 100%;
    padding: 0;
}

/* About kicker & tall cards */
.about-header.mt-5 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.about-kicker {
    color: #1a1a1a;
    font-weight: 600;
    font-size: var(--text-3xl);
    line-height: 1.4;
    margin: 0 0 var(--space-md);
}

    .about-kicker span {
        color: #2268D9;
        font-weight: 700;
    }

/* Tall Cards Grid: 5 per row on desktop (lg: 992px+) */
@media (min-width: 992px) {
    .about-tall-grid .col-xl-5cards {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.about-tall-card {
    width: 100%;
    height: clamp(380px, 48vw, 520px);
    min-height: 380px;
    background: var(--light-gray);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

    .about-tall-card:hover {
        background: #f0f0f0;
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

.about-card-title {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-lg);
    line-height: 1.4;
    margin: 0 0 var(--space-sm);
}

.about-card-text {
    color: #666666;
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0 0 var(--space-xs);
}

.about-card-visual {
    margin-top: auto;
    flex-shrink: 0;
    height: 140px;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: var(--space-md);
}

    .about-card-visual img {
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
        max-width: 140px;
        max-height: 140px;
        object-fit: contain;
        object-position: bottom center;
    }

/* ===================================
   CAROUSEL SECTION
   =================================== */


#products,
.carousel-bg-decoration {
    position: relative;
    min-height: clamp(600px, 80vw, 900px);
    overflow: hidden;
    background: var(--white);
}


#products .container,
#products .container-fluid {
    overflow: hidden;
}

#products * {
    scrollbar-width: none;
}

#products *::-webkit-scrollbar {
    display: none;
}

    .carousel-bg-decoration::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: none;
        height: 110%;
        background-image: url('../img/website background line.png');
        background-repeat: no-repeat;
        background-position: center 15%;
        background-size: 100vw auto;
        z-index: 1;
        pointer-events: none;
    }

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    z-index: 5;
}

    .carousel-wrapper::before,
    .carousel-wrapper::after,
    .laptop-carousel::before,
    .laptop-carousel::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        height: 2px;
        background: repeating-linear-gradient( to right, rgba(156, 163, 175, 0.6) 0px 6px, transparent 6px 12px );
        z-index: -1;
        pointer-events: none;
    }

    .carousel-wrapper::before {
        top: 340px;
    }

    .carousel-wrapper::after {
        top: 440px;
    }

.laptop-carousel::before {
    top: 500px;
}

.laptop-carousel::after {
    top: 600px;
}

.laptop-carousel {
    touch-action: pan-y;
}

.laptop-frame {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.laptop-bg {
    width: 100%;
    height: auto;
    display: block;
    z-index: 6;
}

.laptop-screen-carousel {
    position: absolute;
    top: 6%;
    left: 12.3%;
    width: 75.4%;
    height: 82%;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    
}

    .laptop-screen-carousel:active {
        cursor: grabbing;
    }

    .laptop-screen-carousel.carousel-dragging {
        cursor: grabbing;
    }

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
   
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: top center;
        border-radius: 10px;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }

    .carousel-slide.center {
        z-index: 10;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .carousel-slide.left {
        z-index: 6;
        transform: translate(-145%, -50%) scale(0.72);
        box-shadow: 0 10px 40px rgba(31, 31, 31, 0.2);
        opacity: 0.7;
    }

    .carousel-slide.right {
        z-index: 6;
        transform: translate(45%, -50%) scale(0.72);
        box-shadow: 0 10px 40px rgba(31, 31, 31, 0.2);
        opacity: 0.7;
    }

    .carousel-slide.left-2 {
        z-index: 4;
        transform: translate(-230%, -50%) scale(0.55);
        opacity: 0.35;
    }

    .carousel-slide.right-2 {
        z-index: 4;
        transform: translate(130%, -50%) scale(0.55);
        opacity: 0.35;
    }

    .carousel-slide.hidden {
        opacity: 0;
        z-index: 1;
        transform: translate(-50%, -50%) scale(0.5);
        pointer-events: none;
    }

.carousel-dots {
    position: absolute;
    bottom: clamp(-50px, -5vw, -70px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 20;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

    .carousel-dot:hover {
        background: #9CA3AF;
    }

    .carousel-dot.active {
        width: 10px;
        border-radius: var(--radius-full);
        background: var(--dark-navy);
    }

.cta-section {
    text-align: center;
    margin-top: 0;
    border-top: none;
    z-index: 5;
}

/* ===================================
   CLIENTS SECTION
   =================================== */

.clients-section {
    background: linear-gradient(to right, var(--primary-orange) 0%, #2066D8 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    min-height: clamp(600px, 80vw, 1000px);
}

.clients-title,
.products-title {
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.5px;
}

.clients-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    transition: opacity 0.4s ease-in-out;
}

    .clients-grid-container.fade-out {
        opacity: 0;
    }

    .clients-grid-container.fade-in {
        opacity: 1;
    }

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

.client-logo-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    pointer-events: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.5vw, 2rem);
    min-height: clamp(80px, 12vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .client-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.client-logo {
    max-width: 100%;
    max-height: clamp(60px, 10vw, 120px);
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.client-card:hover .client-logo {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo.fade-out-logo {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: auto;
}

.client-logo.fade-in-logo {
    animation: logoFadeIn 0.6s ease-out forwards;
    pointer-events: auto;
}


@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

/* ===================================
   PIKASA SECTION
   =================================== */

#pikasa-solutions {
    background: linear-gradient( 180deg, rgba(238, 104, 73, 0) 0%, rgba(150, 118, 164, 0.3) 50%, rgba(63, 131, 255, 0) 83%, rgba(255, 255, 255, 0) 100% ) !important;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    height: 1000px;
}

    #pikasa-solutions .pikasa-solutions-section {
        background: linear-gradient( 180deg, rgba(238, 104, 73, 0) 0%, rgba(150, 118, 164, 0.3) 50%, rgba(63, 131, 255, 0) 83%, rgba(255, 255, 255, 0) 100% );
        backdrop-filter: blur(20px);
        position: relative;
        z-index: 2;
        min-height: clamp(600px, 80vw, 1000px);
    }

.pikasa-content {
    position: relative;
    min-height: 400px;
    background: #F8F8F8;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: clamp(10px, 1.5vw, 15px) solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 46px rgba(63, 80, 125, 0.18);
    overflow: hidden;
}

.pikasa-header {
    text-align: center;
    margin: var(--space-2xl);
}

.pikasa-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.pikasa-subtitle {
    color: var(--text-gray);
    font-size: var(--text-3xl);
    font-weight: 400;
    margin: 0;
}

.pikasa-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    position: relative;
}

    .pikasa-tabs::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50%;
        height: 3px;
        background-color: #E0E0E0;
        border-radius: 2px;
        z-index: 0;
    }

.pikasa-tab {
    background: none;
    border: none;
    color: var(--dark-purple);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-sm) 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-base);
    z-index: 1;
}

    .pikasa-tab::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
        border-radius: 2px;
        transition: width var(--transition-base);
    }

    .pikasa-tab.active::after {
        width: 100%;
    }

    .pikasa-tab:hover {
        color: var(--primary-blue);
    }

.pikasa-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .pikasa-tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pikasa-content-title {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.pikasa-text {
    color: #666666;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.highlight-text {
    color: var(--primary-orange);
    font-weight: 600;
}

.highlight-link {
    color: var(--primary-orange);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

    .highlight-link:hover {
        opacity: 0.8;
    }

.pikasa-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(250px, 35vw, 400px);
}

.pikasa-decorative-lines {
    position: absolute;
    top: -25%;
    left: 10%;
    width: 120%;
    max-width: 550px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.pikasa-dashboard {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 10;
    filter: drop-shadow(0 25px 50px rgba(145, 3, 239, 0.12));
    animation: float-dashboard 6s ease-in-out infinite;
}

@keyframes float-dashboard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   CORE PRODUCTS
   =================================== */

.core-products-header {
    text-align: center;
    z-index: 120;
}

.core-products-title {
    color: var(--dark-purple);
    font-weight: 700;
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.product-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-sm) 0;
    min-height: clamp(32px, 4vw, 48px);
}

.product-vector-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(32px, 4vw, 48px);
    height: clamp(32px, 4vw, 48px);
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-base);
}

    .product-vector-icon.active {
        opacity: 0.8;
    }

.core-products-subtitle {
    color: #6B7280;
    font-size: var(--text-xl);
    margin: 0 0 var(--space-lg);
}

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

.product-name {
    display: none;
    color: var(--dark-navy);
    font-weight: 600;
    font-size: var(--text-3xl);
    margin: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

    .product-name.active {
        display: block;
        opacity: 1;
    }

.product-description-wrapper {
    max-width: 100%;
    margin: var(--space-2xl) auto 0;
    padding: 0 var(--space-lg);
    min-height: 80px;
    text-align: center;
}

.product-description {
    display: none;
    color: #4B5563;
    font-size: var(--text-lg);
    line-height: 1.7;
    margin: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

    .product-description.active {
        display: block;
        opacity: 1;
    }

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.plans-section {
    padding: 80px 0;
    background: #FFFFFF;
    position: relative;
    overflow: visible;
}

.plans-box {
    max-width: 1320px;
    width: 100%;
    min-height: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 50px;
    padding: 60px 30px 100px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.25);
}

    /* Left half - 180° rotation - overlap to avoid seam/white line */
    .plans-box::before {
        content: "";
        position: absolute;
        left: -2px;
        top: 0;
        width: calc(50% + 15px);
        height: 150%;
        background: conic-gradient(from 270deg, #3F83FF 0%, #123773 100%);
        transform: scaleX(-1);
        z-index: 1;
    }

    /* Right half - 0° rotation - overlap to avoid seam/white line */
    .plans-box::after {
        content: "";
        position: absolute;
        right: -2px;
        top: 0;
        width: calc(50% + 15px);
        height: 150%;
        background: conic-gradient(from 270deg, #3F83FF 0%, #123773 100%);
        z-index: 1;
    }

    .plans-box > * {
        position: relative;
        z-index: 10;
    }


.testimonials-carousel-unified {
    margin: 2rem 0rem;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.testimonials-carousel-unified .carousel-inner {
    padding: 0 50px;
    height: 100%;
    overflow: hidden;
}

.testimonials-carousel-unified .carousel-item {
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.testimonials-carousel-unified .carousel-control-prev,
.testimonials-carousel-unified .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.testimonials-carousel-unified .carousel-control-prev:hover,
.testimonials-carousel-unified .carousel-control-next:hover {
    opacity: 1;
}

.plans-header {
    text-align: center;
    margin-bottom: 50px;
}

.plans-title {
    color: #FFFFFF;
    font-weight: 600;
    font-size: clamp(36px, 5vw, 38px);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.plans-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(26px, 3vw, 28px);
    font-weight: 400;
    margin: 0;
}

.testimonial-card {
    background: transparent;
    border: none;
    padding: 0;
    height: 100%;
}

.testimonial-logo {
    max-width: 200px;
    height: 55px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .testimonial-logo img {
        width: auto;
        max-width: 100%;
        max-height: 55px;
        height: auto;
        object-fit: contain;
        object-position: left center;
        filter: brightness(0) invert(1);
        display: block;
    }

.testimonial-text {
    color: #FFFFFF;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.75;
    margin-bottom: 0;
    font-weight: 400;
}

.testimonial-text-pause {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.testimonial-text-pause:hover {
    opacity: 0.9;
}

.testimonial-author {
    margin-top: 30px;
}

.author-name {
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: 5px;
}

.author-position {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(14px, 1.8vw, 15px);
    margin: 0;
}

.angular-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

/* Real ellipse + real blur */
.ellipse-blur {
    position: absolute;
    left: 50%;
    bottom: -250px;
    transform: translateX(-50%);
    width: 1000px;
    height: 350px;
    background: #EE6849;
    border-radius: 50%;
    filter: blur(100px); /* ✔️ Layer Blur 100 */
    opacity: 1;
}



/* ===================================
   CTA & FOOTER
   =================================== */

.final-cta-title {
    color: var(--dark-purple);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.final-cta-subtitle {
    color: var(--text-gray);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
}

.footer-section {
    background: linear-gradient(to bottom, var(--white) 0%, #FFEAE5 30%, var(--primary-orange) 60%, var(--primary-blue) 100%);
    padding: 0 clamp(1rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    border: clamp(1rem, 2vw, 2rem) solid var(--white);
    border-radius: 50px;
}

.footer-box {
    background: linear-gradient(180deg, var(--primary-blue) 0%, #113672 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    padding: clamp(2rem, 5vw, 5rem);
    position: relative;
    overflow: hidden;
}

    .footer-box::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 500px;
        height: 300px;
        background: radial-gradient(circle, rgba(63, 131, 255, 0.4) 0%, transparent 70%);
        pointer-events: none;
    }

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: var(--white);
    max-width: 320px;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-top: var(--space-lg);
}

.footer-title {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--white);
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

    .footer-links a {
        color: var(--white);
        text-decoration: none;
        font-size: var(--text-base);
        transition: color var(--transition-base);
    }

        .footer-links a:hover {
            color: var(--white);
        }

.footer-social {
    margin-top: var(--space-lg);
}

    .footer-social .social-icon {
        width: clamp(40px, 5vw, 50px);
        height: clamp(40px, 5vw, 50px);
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.6);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        text-decoration: none;
        font-size: 1.25rem;
        transition: all var(--transition-base);
        background: transparent;
    }

        .footer-social .social-icon:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--white);
            transform: translateY(-3px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    padding-top: var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: center;
}

/* ================================================================
   LOGIN MODAL — FINAL CORRECTED VERSION
   ================================================================ */

/* ── BACKDROP ── */
.modal-backdrop.show {
    background:              rgba(195,210,232,.55) !important;
    backdrop-filter:         blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ── MODAL DIALOG ── */
#loginModal .modal-dialog {
    position:    relative;
    margin:      0 auto;
    padding-top: 0;
    max-width:   1200px;
    width:       100%;
}

/* ── MODAL CONTENT: transparent wrapper — lets stripe show above ── */
#loginModal .modal-content {
    position:      relative;
    background:    #FFFFFF;
    border:        none;
    border-radius: 24px;
    overflow:      visible;
    box-shadow:    none;
}

/* ── TOP STRIPE: decorative header image, peeks above the white card ── */
#loginModal .lm-stripe {
    position:        absolute;
    top:             0;
    left:            0;
    right:           0;
    height:          80px;
    background:      url('../img/dashboard header design.png') no-repeat center top;
    background-size: cover;
    border-radius:   24px 24px 0 0;
    z-index:         1;
    pointer-events:  none;
}
#loginModal .lm-card-border {
    position:        relative;
    z-index:         5;
    margin:          40px 40px 40px;
    background:      transparent;
    border:          15px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius:   24px;
    box-shadow:      0 4px 30px rgba(255,255,255,0.2);
}

#loginModal .lm-card-wrapper {
    position:        relative;
    z-index:         5;
    margin:          0;
    background:      #FAFAFA;
    border:          none;
    border-radius:   12px;
    overflow:        hidden;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         44px 48px 90px;
    min-height:      min(640px, 85vh);
}

/* ── BLOBS: absolutely positioned inside card-wrapper ── */
#loginModal .lm-blob {
    position:       absolute;
    border-radius:  50%;
    pointer-events: none;
    z-index:        0;                   /* behind form content */
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.95; filter: blur(18px); }
  16% { transform: translate(28px, -22px) scale(1.12); opacity: 1; filter: blur(24px); }
  33% { transform: translate(-20px, 18px) scale(0.92); opacity: 0.8; filter: blur(16px); }
  50% { transform: translate(15px, 28px) scale(1.08); opacity: 1; filter: blur(26px); }
  66% { transform: translate(-25px, -12px) scale(0.95); opacity: 0.85; filter: blur(20px); }
  83% { transform: translate(10px, -18px) scale(1.05); opacity: 1; filter: blur(22px); }
}

@keyframes blob-float-yellow {
  0%, 100% { transform: translateY(-50%) translate(0, 0) scale(1); opacity: 0.95; filter: blur(18px); }
  16% { transform: translateY(-50%) translate(-32px, 15px) scale(1.15); opacity: 1; filter: blur(26px); }
  33% { transform: translateY(-50%) translate(22px, -25px) scale(0.9); opacity: 0.8; filter: blur(15px); }
  50% { transform: translateY(-50%) translate(-12px, -30px) scale(1.1); opacity: 1; filter: blur(24px); }
  66% { transform: translateY(-50%) translate(28px, 10px) scale(0.93); opacity: 0.85; filter: blur(19px); }
  83% { transform: translateY(-50%) translate(-8px, 20px) scale(1.06); opacity: 1; filter: blur(23px); }
}

  /* Top-left: EE6849 50% effect layer blur */
  #loginModal .lm-blob--orange {
    width:  200px;
    height: 200px;
    top:   80px;
    left: 100px;
    background: radial-gradient(circle,
      rgba(238,104,73,.50) 50%);
    filter: blur(20px);
    animation: blob-float 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  }
  
  /* Middle-right: FFC328 30% effect layer blur */
  #loginModal .lm-blob--yellow {
    width:  150px;
    height: 150px;
    top:    50%;
    right: 100px;
    transform: translateY(-50%);
    background: radial-gradient(circle,
      rgba(255,195,40,.30) 30%);
    filter: blur(20px);
    animation: blob-float-yellow 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.2s;
  }
  
  /* Bottom-left: 196AFF 30% effect layer blur */
  #loginModal .lm-blob--blue {
    width:  100px;
    height: 100px;
    bottom: 100px;
    left: 150px;
    background: 
    radial-gradient(circle,rgba(25,106,255,.30) 30%);
    filter: blur(20px);
    border-radius: 50%;
    animation: blob-float 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 2s;
  }


/* ── CLOSE × ── */
#loginModal .lm-close-btn {
    position:        absolute;
    top:             18px;
    right:           22px;
    width:           30px;
    height:          30px;
    background:      rgba(0,0,0,.08);
    border:          none;
    border-radius:   50%;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       16px;
    color:           #6b7280;
    z-index:         50;
    transition:      background .2s, color .2s;
    font-family:     'Rubik', sans-serif;
    line-height:     1;
}
#loginModal .lm-close-btn:hover { background:rgba(0,0,0,.14); color:#374151; }

/* ── CARD: center form column ── */
#loginModal .lm-card {
    position:   relative;
    z-index:    1;
    width:      100%;
    max-width:  520px;
    min-height: min(560px, 75vh);
    background: transparent;
    border:     none;
    padding:    0 0 20px;
    overflow:   visible;
}

/* Union.png as background of the card */
#loginModal .lm-card::before {
    content:         "";
    position:        absolute;
    inset:           0;
    background:      url('../img/Union.png') no-repeat center center;
    background-size: 100% 100%;
    z-index:         0;
    pointer-events:  none;
}

/* All direct children above the bg image */
#loginModal .lm-card > * {
    position: relative;
    z-index:  1;
}

/* ── TOPBAR ── */
#loginModal .lm-card-topbar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         15px 18px 8px;
}
#loginModal .lm-back-link {
    color:           #3F83FF;
    font-size:       .75rem;
    font-weight:     400;
    text-decoration: none;
    font-family:     'Rubik', sans-serif;
    display:         inline-flex;
    align-items:     center;
    gap:             2px;
    transition:      color .2s;
}
#loginModal .lm-back-link:hover { color:#196AFF; }
#loginModal .lm-back-chevron    { font-size:1rem; font-weight:300; }
#loginModal .lm-lang-select {
    font-size:     .75rem;
    font-family:   'Rubik', sans-serif;
    padding:       4px 20px 4px 8px;
    border:        1px solid #dde2ea;
    border-radius: 7px;
    color:         #3F83FF;
    background:    #fff;
    cursor:        pointer;
    outline:       none;
    transition:    border-color .2s;
}
#loginModal .lm-lang-select:focus { border-color:#196AFF; }

/* ── CARD BODY ── */
#loginModal .lm-card-body {
    padding:        0 20px;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
}

/* ── LOGO ── */
#loginModal .lm-logo-block { text-align:center; margin-bottom:14px; width:100%; }
#loginModal .lm-logo-block a { text-decoration:none; }
#loginModal .lm-logo-img {
    height:     68px;
    width:      auto;
    display:    block;
    margin:     0 auto 4px;
    object-fit: contain;
}
#loginModal .lm-analytics-text {
    font-family:    'Rubik', sans-serif;
    font-size:      1.15rem;
    font-weight:    700;
    color:          #1a1f2e;
    display:        block;
    letter-spacing: -.02em;
    margin-bottom:  2px;
}
#loginModal .lm-powered-text {
    font-family:    'Rubik', sans-serif;
    font-size:      .56rem;
    font-weight:    500;
    color:          #123773;
    text-transform: uppercase;
    letter-spacing: .13em;
    display:        block;
}

/* ── FIELDS ── */
#loginModal .lm-field-group { margin-bottom:6px; width:100%; max-width:280px; }
#loginModal .lm-label {
    display:       block;
    font-size:     .65rem;
    font-weight:   400;
    color:         #9ca3af;
    margin-bottom: 2px;
    font-family:   'Rubik', sans-serif;
    text-align:    center;
}
#loginModal .lm-input {
    width:         100%;
    display:       block;
    font-family:   'Rubik', sans-serif;
    font-size:     .78rem;
    color:         #374151;
    background:    #eef2f9;
    border:        1px solid #e5e7eb;
    border-radius: 50px;
    padding:       6px 14px;
    outline:       none;
    transition:    border-color .2s, box-shadow .2s;
    box-sizing:    border-box;
}
#loginModal .lm-input::placeholder { color:#c4c9d4; font-size:.72rem; }
#loginModal .lm-input:focus        { border-color:#196AFF; box-shadow:0 0 0 3px rgba(25,106,255,.11); }
#loginModal input[type="password"].lm-input {
    font-family:    'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: 0.08em;
}

/* ── REMEMBER ROW ── */
#loginModal .lm-remember-row {
    margin:         5px 0 8px;
    width:          100%;
    max-width:      280px;
    display:        flex;
    flex-direction: column;
    align-items:    center;
}
#loginModal .lm-check-wrap {
    display:         flex;
    align-items:     center;
    gap:             6px;
    justify-content: center;
}
#loginModal .lm-checkbox input[type="checkbox"],
#loginModal .lm-check-wrap input[type="checkbox"] {
    width:       13px;
    height:      13px;
    accent-color:#196AFF;
    cursor:      pointer;
    flex-shrink: 0;
    margin:      0;
}
#loginModal .lm-check-label {
    font-family: 'Rubik', sans-serif;
    font-size:   .72rem;
    font-weight: 600;
    color:       #374151;
    cursor:      pointer;
    margin:      0;
    line-height: 1.3;
}
#loginModal .lm-remember-hint {
    font-family: 'Rubik', sans-serif;
    font-size:   .62rem;
    color:       #9ca3af;
    margin:      2px 0 0 0;
    text-align:  center;
}

/* ── BUTTONS ── */
#loginModal .lm-btn {
    display:         block;
    width:           100%;
    max-width:       280px;
    font-family:     'Rubik', sans-serif;
    font-size:       .78rem;
    font-weight:     600;
    border:          none;
    border-radius:   50rem;
    padding:         7px 12px;
    cursor:          pointer;
    text-align:      center;
    transition:      background .2s, transform .15s, box-shadow .2s;
    margin-bottom:   5px;
    line-height:     1.35;
    text-decoration: none;
}
#loginModal .lm-btn:last-of-type { margin-bottom:0; }

#loginModal .lm-btn--primary    { background:#3F83FF; color:#fff !important; }
#loginModal .lm-btn--primary:hover {
    background: #1d4ed8;
    transform:  translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
#loginModal .lm-btn--microsoft  { background:#3F83FF; color:#fff !important; }
#loginModal .lm-btn--microsoft:hover { background:#2563eb; transform:translateY(-1px); }

#loginModal .lm-btn--outline {
    background:    #fff;
    color:         #4b5563 !important;
    border:        1px solid #e2e6ea !important;
    font-weight:   500;
    padding:       6px 10px;
    font-size:     .75rem;
    border-radius: 50rem;
}
#loginModal .lm-btn--outline + .lm-btn--outline { margin-top:10px; }
#loginModal .lm-btn--outline:hover { background:#f8fafc; border-color:#c8d0dc !important; }

/* ── CARD FOOTER ── */
#loginModal .lm-card-footer { margin-top:12px; text-align:center; width:100%; }
#loginModal .lm-copyright-line {
    font-family:    'Rubik', sans-serif;
    font-size:      .60rem;
    color:          #9ca3af;
    margin:         0;
    letter-spacing: .03em;
}

/* ── FOOTER POPUP IMAGE ── */
#loginModal .lm-footer-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
#loginModal .lm-footer-popup-img {
    width:           100%;
    height:          auto;
    display:         block;
    object-fit:      cover;
    object-position: top center;
}

/* ── REGISTER OVERLAY ── */
.lm-register-overlay {
    position:        fixed;
    inset:           0;
    z-index:         1200;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
}
.lm-register-box {
    background:    #fff;
    border-radius: 14px;
    padding:       32px 36px;
    max-width:     380px;
    width:         90%;
    position:      relative;
    box-shadow:    0 24px 70px rgba(0,0,0,.18);
}
.lm-register-close {
    position:    absolute;
    top:         14px;
    right:       18px;
    background:  none;
    border:      none;
    font-size:   1.5rem;
    color:       #9ca3af;
    cursor:      pointer;
    line-height: 1;
    padding:     0;
    transition:  color .2s;
}
.lm-register-close:hover { color:#374151; }
.lm-register-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size:   1.1rem;
    color:       #1f2937;
    margin:      0 0 12px;
}
.lm-register-text {
    font-family: 'Rubik', sans-serif;
    font-size:   .9rem;
    color:       #6b7280;
    line-height: 1.6;
    margin:      0;
}
.lm-register-text a { color:#2563eb; text-decoration:none; }
.lm-register-text a:hover { text-decoration:underline; }

/* ── Z-INDEX ── */
#loginModal { z-index:1055; }

/* Prevent scrollbar shift */
body.modal-open,
html.modal-open {
    overflow:      hidden !important;
    padding-right: 0 !important;
    margin-right:  0 !important;
}
  /* ── RESPONSIVE: Mobile (≤576px) ── */
  @media (max-width:575.98px) {
    #loginModal .modal-dialog {
      margin: 8px auto;
      padding: 12px 12px;
      max-width: 100%;
    }
    #loginModal .modal-content {
      min-height: auto;
      max-height: 92vh;
      border-radius: 16px;
      overflow-y: auto;
    }
    #loginModal .lm-stripe {
      height: 55px;
      min-height: 50px;
      border-radius: 16px 16px 0 0;
      background: url('../img/dashboard header design.png') no-repeat center top;
      background-size: cover;
      background-position: center center;
    }
    #loginModal .lm-card-border {
      margin: 12px;
      border-width: 10px;
      border-radius: 12px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      box-shadow: 0 2px 20px rgba(255,255,255,0.15);
    }
    #loginModal .lm-close-btn {
        top: 18px;
        right: 25px;
        width: 25px;
        height: 25px;
        font-size: 15px;
    }
    #loginModal .lm-card-wrapper {
      padding: 24px 16px 60px;
      min-height: min(400px, 75vh);
      border-radius: 8px;
      overflow: hidden;
    }
    #loginModal .lm-card {
      max-width: 100%;
      min-height: auto;
    }
    #loginModal .lm-card-body { padding: 0 16px; }
    #loginModal .lm-card-topbar { padding: 12px 14px 6px; flex-wrap: wrap; gap: 8px; }
    #loginModal .lm-logo-img { height: 52px; }
    #loginModal .lm-analytics-text { font-size: 1rem; }
    #loginModal .lm-powered-text { font-size: 0.5rem; }
    #loginModal .lm-field-group { max-width: 100%; }
    #loginModal .lm-btn { max-width: 100%; }
    #loginModal .lm-remember-row { max-width: 100%; }
    #loginModal .lm-blob--orange {
        width: 130px;
        height: 130px;
        top: 10px;
        left: 5px;
        filter: blur(10px);
      }
      #loginModal .lm-blob--yellow {
        width: 120px;
        height: 120px;
        top: 50%;
        right: -10px;
        left: auto;
        /* bottom: auto; */
        transform: translateY(-50%);
        filter: blur(10px);
      }
      #loginModal .lm-blob--blue {
        width: 100px;
        height: 100px;
        bottom: 10px;
        left: -30px;
        right: auto;
        top: auto;
        filter: blur(10px);
      }
    #loginModal .lm-footer-popup { height: 50px; }
  }