﻿/* =========================================================
   HOME HERO
========================================================= */
.home-hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #050f23;
}

.page-content {
    padding-bottom: 60px;
}

/* BACKGROUND */

.hero-bg-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    height: 92vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 18s infinite;
}

    .hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(5,15,35,.88), rgba(7,31,59,.72));
    }

.hero-bg-1 {
    background-image: url('/assets/images/project-intel-background-1.jpg');
    animation-delay: 0s;
}

.hero-bg-2 {
    background-image: url('/assets/images/project-intel-background-2.jpg');
    animation-delay: 6s;
}

.hero-bg-3 {
    background-image: url('/assets/images/project-intel-background-3.jpg');
    animation-delay: 12s;
}

@keyframes heroFade {

    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
        transform: scale(1.05);
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* OVERLAY */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(5,15,35,.82), rgba(5,15,35,.88) );
}

/* CONTENT */

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* BADGE */

.hero-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* TITLE */

.hero-title {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    color: #ffffff;
    max-width: 1000px;
    margin: 0 auto 30px;
}

/* SUBTITLE */

.hero-subtitle {
    font-size: 22px;
    line-height: 1.9;
    color: rgba(255,255,255,0.82);
    max-width: 950px;
    margin: 0 auto 50px;
}

/* ==========================================
   HERO METRIC ROTATOR
========================================== */

.hero-metric-rotator {
    position: relative;
    height: 150px;
    margin-top: 50px;
    overflow: hidden;
}

.metric-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

    .metric-slide.active {
        opacity: 1;
    }

.metric-number {
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.metric-label {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 500;
    color: rgba(255,255,255,.82);
}

/* MOBILE */

@media (max-width: 767px) {

    .hero-metric-rotator {
        height: 120px;
    }

    .metric-number {
        font-size: 42px;
    }

    .metric-label {
        font-size: 18px;
    }
}

/* BUTTONS */

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
}

.hero-btn {
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.hero-btn-primary {
    background: #ed1c24;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(237,28,36,0.28);
}

    .hero-btn-primary:hover {
        transform: translateY(-2px);
        color: #ffffff;
    }

.hero-btn-secondary {
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    background: rgba(255,255,255,0.04);
}

    .hero-btn-secondary:hover {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
    }

.hero-btn-secondary-dark {
    border: 1px solid rgba(5,15,35,0.12);
    background: #ffffff;
    color: #050f23;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(7,31,59,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .hero-btn-secondary-dark:hover {
        background: #050f23;
        color: #ffffff;
        transform: translateY(-2px);
        text-decoration: none;
        box-shadow: 0 18px 36px rgba(7,31,59,0.16);
    }

/* METRICS */

.hero-metrics {
    margin-top: 20px;
}

.metric-card {
    background: rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 34px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}

.metric-number {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
}

.metric-label {
    margin-top: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 767px) {

    .home-hero {
        min-height: auto;
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }
}

/* slide section */
/* =========================================================
   PLATFORM SHOWCASE
========================================================= */

.platform-showcase-section {
    padding: 50px 0;
    background: #f5f7fb;
}

.platform-showcase-card {
    background: #ffffff;
    border-radius: 34px;
    padding: 60px;
    box-shadow: 0 24px 70px rgba(7,31,59,0.08);
}

/* LEFT */

.platform-content {
    padding-right: 20px;
}

.section-badge {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(237,28,36,0.08);
    color: #ed1c24;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    color: #050f23;
    margin-bottom: 25px;
}

.section-description {
    font-size: 18px;
    line-height: 1.5;
    color: #5d6778;
    margin-bottom: 40px;
}

/* FEATURES */

.platform-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #050f23 0%, #071f3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

.feature-text {
    font-size: 17px;
    font-weight: 600;
    color: #050f23;
}

/* SLIDER */

.platform-slider-wrapper {
    position: relative;
}

.platform-slide-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(7,31,59,0.10);
}

    .platform-slide-card img {
        width: 100%;
        display: block;
    }

.slide-caption {
    padding: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #050f23;
    text-align: center;
}

/* SWIPER */

.swiper-button-prev,
.swiper-button-next {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7,31,59,0.12);
    color: #ed1c24;
}

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px;
        font-weight: 700;
    }

/* RESPONSIVE */

@media (max-width: 991px) {

    .platform-showcase-card {
        padding: 35px;
    }

    .section-title {
        font-size: 40px;
    }

    .platform-content {
        padding-right: 0;
    }
}

@media (max-width: 767px) {

    .platform-showcase-section {
        padding: 80px 0;
    }

    .platform-showcase-card {
        padding: 24px;
        border-radius: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    .feature-text {
        font-size: 15px;
    }
}

/* =========================================================
   REALTIME INTELLIGENCE
========================================================= */

.realtime-intelligence-section {
    /*padding: 50px 0;*/
    /*background: linear-gradient( 180deg, #ffffff 0%, #f5f7fb 100%);*/
    background: #f5f7fb;
}

.realtime-card {
    background: #ffffff;
    border-radius: 34px;
    padding: 60px;
    box-shadow: 0 24px 70px rgba(7,31,59,0.08);
}

/* LEFT */

.realtime-content {
    padding-right: 20px;
}

.realtime-feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 35px 0;
}

.realtime-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .realtime-feature-item i {
        color: #ed1c24;
        font-size: 18px;
    }

    .realtime-feature-item span {
        font-size: 17px;
        font-weight: 600;
        color: #050f23;
    }

.realtime-actions {
    display: flex;
    gap: 18px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* PREVIEW */

.platform-preview-card {
    margin-top: 30px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(7,31,59,0.12);
}

/* DASHBOARD */

.analytics-dashboard {
    padding-left: 20px;
}

/* CARD */

.analytics-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 34px;
    border: 1px solid #edf1f7;
    box-shadow: 0 16px 40px rgba(7,31,59,0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

    .analytics-card:hover {
        transform: translateY(-4px);
    }

.analytics-card-large {
    background: linear-gradient( 135deg, #050f23 0%, #071f3b 100%);
    color: #ffffff;
}

    .analytics-card-large .analytics-number,
    .analytics-card-large .analytics-label,
    .analytics-card-large .analytics-description {
        color: #ffffff;
    }

.analytics-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.analytics-number {
    font-size: 42px;
    font-weight: 700;
    color: #050f23;
    line-height: 1.1;
}

.analytics-label {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 500;
}

.analytics-description {
    margin-top: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,.82);
}

.analytics-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(237,28,36,.08);
    color: #ed1c24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

    .analytics-badge.green {
        background: rgba(0,170,120,.08);
        color: #00aa78;
    }

/* HIGHLIGHT */

.analytics-highlight {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient( 135deg, #071f3b 0%, #050f23 100%);
    color: #ffffff;
}

.highlight-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .realtime-card {
        padding: 35px;
    }

    .analytics-dashboard {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {

    .realtime-intelligence-section {
        padding: 80px 0;
    }

    .realtime-card {
        padding: 24px;
        border-radius: 24px;
    }

    .realtime-actions {
        flex-direction: column;
    }

    .analytics-number {
        font-size: 32px;
    }
}

/* =========================================================
   INTELLIGENCE MAP 
========================================================= */

.map-intelligence-section {
    padding: 10px;
    padding-top: 60px;
    padding-bottom: 60px;
    background:#f5f7fb;
}

.gcc-map-wrapper {
    position: relative;
    background: linear-gradient(135deg, #031633 0%, #041f44 100%);
    border-radius: 30px;
    padding: 40px;
    overflow: hidden;
}

.gcc-map-svg {
    width: 100%;
    height: auto;
}

.gcc-country {
    fill: #eb141b;
    stroke: #ffffff;
    stroke-width: 3;
    cursor: pointer;
    transition: all 0.35s ease;
}

.gcc-country-circle {
    fill: #eb141b;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.35s ease;
}

    .gcc-country:hover,
    .gcc-country-circle:hover {
        fill: #ff4b52;
        filter: drop-shadow(0 0 14px rgba(235,20,27,0.8));
        transform: translateY(-2px);
    }

.gcc-country-popup {
    position: absolute;
    right: 30px;
    top: 30px;
    width: 320px;
    background: rgba(7,18,39,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* MAP LABELS */

.gcc-label {
    fill: rgba(255,255,255,0.92);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.gcc-label-small {
    fill: rgba(255,255,255,0.88);
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.popup-stats {
    margin-bottom: 24px;
}

.popup-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #c7d4e8;
    font-size: 15px;
}

    .popup-stat strong {
        color: #ffffff;
    }

.popup-btn {
    display: inline-block;
    background: #eb141b;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .popup-btn:hover {
        background: #c60f16;
        color: #ffffff;
    }

/* =========================
   GCC MAP PREMIUM STYLE
========================= */

.gcc-map-wrapper {
    position: relative;
    background: radial-gradient(circle at top left, #08244d 0%, #04142e 45%, #020d1f 100%);
    border-radius: 34px;
    padding: 50px;
    overflow: hidden;
    min-height: 650px;
    /*box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 0 80px rgba(255,255,255,0.03);*/
}


/* SVG */

.gcc-map-svg {
    width: 72%;
    max-width: 820px;
    height: auto;
    display: block;
    margin-top: 30px;
}


/* COUNTRY BASE */

.gcc-country,
.gcc-country-circle {
    stroke: rgba(255,255,255,0.75);
    stroke-width: 2.5;
    cursor: pointer;
    transition: all 0.35s ease;
}


/* INDIVIDUAL COUNTRY COLORS */

#saudi {
    fill: #ef4444;
}

#uae {
    fill: #0ea5a4;
}

#oman {
    fill: #f59e0b;
}

#qatar {
    fill: #8b5cf6;
}

#kuwait {
    fill: #3b82f6;
}

#bahrain {
    fill: #ec4899;
}


/* HOVER */

.gcc-country:hover,
.gcc-country-circle:hover {
    filter: brightness(1.12) drop-shadow(0 0 18px rgba(255,255,255,0.28));
    transform: translateY(-2px);
    stroke: #ffffff;
    stroke-width: 3;
}


/* POPUP */

.gcc-country-popup {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 310px;
    background: rgba(5,16,38,0.92);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}


/* TITLE */

.popup-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 28px;
}


/* STATS */

.popup-stats {
    margin-bottom: 28px;
}

.popup-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    color: #b8c7dd;
    font-size: 15px;
}

    .popup-stat strong {
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
    }


/* BUTTON */

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #eb141b 0%, #c40f15 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(235,20,27,0.25);
}

    .popup-btn:hover {
        transform: translateY(-2px);
        color: #ffffff;
        box-shadow: 0 16px 32px rgba(235,20,27,0.35);
    }


/* RESPONSIVE */

@media(max-width: 991px) {

    .gcc-map-wrapper {
        padding: 30px;
        min-height: auto;
    }

    .gcc-map-svg {
        width: 100%;
        margin-top: 0;
    }

    .gcc-country-popup {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        margin-top: 30px;
    }
}


/* =========================================================
   INTELLIGENCE ECOSYSTEM
========================================================= */

.intelligence-ecosystem-section {
    /*padding: 110px 0;*/
    background: linear-gradient( 180deg, #ffffff 0%, #f5f7fb 100%);
}

.ecosystem-main-card {
    background: #ffffff;
    border-radius: 34px;
    padding: 60px;
    box-shadow: 0 24px 70px rgba(7,31,59,0.08);
}

/* GRID */

.ecosystem-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 36px;
    border: 1px solid #edf1f7;
    height: 100%;
    transition: all .3s ease;
    box-shadow: 0 16px 40px rgba(7,31,59,0.06);
}

    .ecosystem-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(7,31,59,0.10);
    }

/* ICON */

.ecosystem-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient( 135deg, #050f23 0%, #071f3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 28px;
}

/* TITLE */

.ecosystem-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    color: #050f23;
    margin-bottom: 18px;
}

/* TEXT */

.ecosystem-text {
    font-size: 16px;
    line-height: 1.9;
    color: #5d6778;
    margin-bottom: 28px;
}

/* STATS */

.ecosystem-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .ecosystem-stats span {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        padding: 10px 16px;
        border-radius: 40px;
        background: rgba(237,28,36,.08);
        color: #ed1c24;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .8px;
    }

/* WORKFLOW */

.intelligence-workflow {
    margin-top: 80px;
    padding: 50px;
    border-radius: 34px;
    background: linear-gradient( 135deg, #050f23 0%, #071f3b 100%);
}

.workflow-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 50px;
}

.workflow-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.workflow-item {
    width: 220px;
    background: rgba(255,255,255,.06);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.workflow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ed1c24;
    font-size: 26px;
}

.workflow-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.workflow-arrow {
    font-size: 38px;
    color: rgba(255,255,255,.5);
    font-weight: 300;
}

/* TRUST */

.trust-bar {
    margin-top: 60px;
    text-align: center;
    font-size: 20px;
    line-height: 1.9;
    color: #5d6778;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA */

.ecosystem-cta {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .ecosystem-main-card {
        padding: 35px;
    }

    .workflow-grid {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 767px) {

    .intelligence-ecosystem-section {
        padding: 80px 0;
    }

    .ecosystem-main-card {
        padding: 24px;
        border-radius: 24px;
    }

    .ecosystem-title {
        font-size: 22px;
    }

    .workflow-title {
        font-size: 28px;
    }

    .workflow-item {
        width: 100%;
    }

    .trust-bar {
        font-size: 17px;
    }

    .ecosystem-cta {
        flex-direction: column;
    }
}

/* =========================================
   PROJECT INTELL AI ASSISTANT
========================================= */

.pi-ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* TOGGLE */

.pi-ai-toggle {
    height: 64px;
    padding: 0 24px;
    border: none;
    border-radius: 100px;
    background: linear-gradient( 135deg, #eb141b, #ff3b42);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 40px rgba(235,20,27,.35);
    cursor: pointer;
    transition: all .3s ease;
    animation: aiPulse 2s infinite;
}

    .pi-ai-toggle:hover {
        transform: translateY(-3px);
    }

    .pi-ai-toggle i {
        font-size: 20px;
    }

@keyframes aiPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(235,20,27,.4);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(235,20,27,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(235,20,27,0);
    }
}

/* WINDOW */

.pi-ai-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 650px;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(7,31,59,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s ease;
}

    .pi-ai-window.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* HEADER */

.pi-ai-header {
    height: 90px;
    background: linear-gradient( 135deg, #eb141b 0%, #071f3b 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #ffffff;
}

.pi-ai-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pi-ai-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #eb141b;
}

.pi-ai-title {
    font-size: 17px;
    font-weight: 700;
}

.pi-ai-subtitle {
    font-size: 12px;
    opacity: .72;
}

.pi-ai-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    cursor: pointer;
}

/* BODY */

.pi-ai-body {
    height: calc(100% - 160px);
    overflow-y: auto;
    padding: 24px;
    background: #f7f9fc;
}

/* MESSAGE */

.pi-ai-message {
    display: flex;
    margin-bottom: 18px;
}

    .pi-ai-message.user {
        justify-content: flex-end;
    }

.pi-ai-bubble {
    max-width: 85%;
    padding: 16px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.pi-ai-message.ai .pi-ai-bubble {
    background: #ffffff;
    color: #081120;
    border-bottom-left-radius: 6px;
    box-shadow: 0 10px 25px rgba(7,31,59,.06);
}

.pi-ai-message.user .pi-ai-bubble {
    background: linear-gradient( 135deg, #eb141b, #ff4047);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

/* PROMPTS */

.pi-ai-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

    .pi-ai-prompts button {
        border: none;
        background: #ffffff;
        color: #071f3b;
        padding: 10px 14px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(7,31,59,.05);
    }

/* FOOTER */

.pi-ai-footer {
    height: 70px;
    border-top: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: #ffffff;
}

    .pi-ai-footer input {
        flex: 1;
        height: 46px;
        border: 1px solid #e3e9f2;
        border-radius: 14px;
        padding: 0 16px;
        outline: none;
        font-size: 14px;
    }

    .pi-ai-footer button {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        border: none;
        background: #eb141b;
        color: #ffffff;
        cursor: pointer;
    }

/* TYPING */

.typing {
    display: flex;
    gap: 6px;
}

    .typing span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #a7b3c4;
        animation: blink 1.4s infinite;
    }

        .typing span:nth-child(2) {
            animation-delay: .2s;
        }

        .typing span:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes blink {

    0%, 80%, 100% {
        opacity: .2;
    }

    40% {
        opacity: 1;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .pi-ai-widget {
        right: 15px;
        bottom: 15px;
    }

    .pi-ai-window {
        width: calc(100vw - 30px);
        height: 80vh;
    }

    .pi-ai-toggle span {
        display: none;
    }

    .pi-ai-toggle {
        width: 64px;
        padding: 0;
        justify-content: center;
    }
}

/* =========================================
   AI RESPONSE CONTENT
========================================= */

.ai-response-title {
    font-size: 18px;
    font-weight: 800;
    color: #071f3b;
    margin-bottom: 14px;
}

.ai-response-list {
    margin: 18px 0;
    padding-left: 18px;
}

    .ai-response-list li {
        margin-bottom: 10px;
        color: #4c5b70;
    }

.ai-upsell {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(235,20,27,.06);
    border-left: 4px solid #eb141b;
    color: #071f3b;
    font-weight: 600;
}

.ai-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    margin-top: 18px;
    border-radius: 14px;
    background: linear-gradient( 135deg, #eb141b, #ff4349);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .3s ease;
}

    .ai-demo-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(235,20,27,.25);
    }
