.navbar { z-index: 9999 !important; }

#saas-blur-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none;
    will-change: transform, opacity; 
    transform: translateZ(0); 
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}
#saas-blur-overlay.is-active { opacity: 1; visibility: visible; }

.navbar .dropdown-menu.megadrop-menu {
    background: #ffffff !important; border: 1px solid rgba(229, 231, 235, 0.8) !important;
    border-radius: 16px !important; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 10px 20px -5px rgba(15, 23, 42, 0.08) !important;
    padding: 16px !important; display: flex !important; align-items: stretch !important; gap: 24px !important; 
    width: max-content !important; min-width: unset !important; position: absolute; top: 100%;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar .nav-item.megadrop:hover .megadrop-menu,
.navbar .nav-item.megadrop.show .megadrop-menu,
.navbar .nav-item.megadrop.open .megadrop-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.megadrop-list {
    list-style: none !important; margin: 0 !important; padding: 0 24px 0 0 !important; min-width: 260px !important; 
    border-right: none !important; 
    display: flex; flex-direction: column; justify-content: flex-start;
}
.megadrop-list li { margin: 2px 0 !important; padding: 0 !important; }
.megadrop-list li a {
    display: flex !important; align-items: center; padding: 10px 14px !important; color: #475569 !important; 
    border-radius: 8px !important; text-decoration: none !important; font-weight: 500 !important; 
    transition: all 0.2s ease !important; font-size: 14px !important; background: transparent;
}
.megadrop-list li a:hover, .megadrop-list li a.is-active {
    background: #f1f5f9 !important; color: #13214E !important; transform: translateX(4px);
}

.megadrop-preview {
    width: 280px !important; padding: 0 !important; display: flex !important; align-items: stretch !important;
    background-color: #F9FAFB !important;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(19, 33, 78, 0.04) 0%, transparent 70%),
        radial-gradient(rgba(19, 33, 78, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 16px 16px !important; 
    background-position: 0 0, 0 0 !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 10px 30px -10px rgba(19, 33, 78, 0.08) !important; 
    border-radius: 12px !important;
    position: relative; overflow: hidden;
}

.megadrop-panel {
    display: none !important; flex-direction: column; align-items: flex-start; justify-content: flex-start !important;
    animation: fadeInSaaS 0.2s ease forwards; width: 100%; height: 100%; 
    box-sizing: border-box !important; padding: 24px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.megadrop-panel.is-active { display: flex !important; }

.saas-graphic { 
    width: 100%; height: 110px; margin-top: auto !important; margin-bottom: auto !important; 
    position: relative; z-index: 2; 
}

.megadrop-panel strong { 
    font-size: 16px !important; margin-top: 12px !important; margin-bottom: 6px !important; 
    font-weight: 600 !important; color: #13214E !important; position: relative; z-index: 2; 
}
.megadrop-panel p { 
    font-size: 13px !important; line-height: 1.5 !important; margin: 0 !important; 
    color: #475569 !important; position: relative; z-index: 2; 
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-row { display: flex; flex-direction: row; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }

.msg-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(19, 33, 78, 0.15);
    border-radius: 50%;
    z-index: 1;
}

@keyframes orbitSpin { 100% { transform: rotate(360deg); } }
@keyframes counterOrbit { 100% { transform: rotate(-360deg); } }
@keyframes orbitSpinRev { 100% { transform: rotate(-360deg); } }
@keyframes counterOrbitRev { 100% { transform: rotate(360deg); } }

.msg-orbit.o-1 { width: 72px; height: 72px; margin-top: -36px; margin-left: -36px; animation: orbitSpin 12s linear infinite; }
.msg-orbit.o-1 .msg-dot { animation: counterOrbit 12s linear infinite; }

.msg-orbit.o-2 { width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; animation: orbitSpinRev 18s linear infinite; }
.msg-orbit.o-2 .msg-dot { animation: counterOrbitRev 18s linear infinite; }

.msg-dot {
    position: absolute; font-size: 14px; display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-top: -2px; margin-left: -2px; 
    background: #F2F4F6 !important; border-radius: 50%; box-shadow: none;
}

.msg-dot.d-1 { color: #3b82f6; top: -9px; left: 27px; } 
.msg-dot.d-2 { color: #22c55e; top: 45px; left: 58px; } 
.msg-dot.d-6 { color: #7c3aed; top: 45px; left: -4px; } 
.msg-dot.d-3 { color: #f59e0b; top: 21px; left: -1px; } 
.msg-dot.d-4 { color: #ec4899; top: 111px; left: 51px; } 
.msg-dot.d-5 { color: #0ea5e9; top: 21px; left: 103px; } 

.industries-hub { 
    position: relative; width: 160px; height: 82px; display: flex; align-items: center; justify-content: center; 
    perspective: 800px; transform-style: preserve-3d;
}

.center-device {
    width: 38px; height: 58px; background: #ffffff; border: 1.5px solid #13214ea8;
    border-radius: 8px; position: relative; display: flex; flex-direction: column; padding: 6px; gap: 5px;
    box-shadow: 0 4px 12px rgba(19, 33, 78, 0.12); z-index: 2; 
}

.msg-bubble { height: 8px; border-radius: 4px; }
.msg-bubble.m1 { width: 100%; background: #13214E; }
.msg-bubble.m2 { width: 65%; background: #cbd5e1; }
.badge-dot { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 6px #ef4444; }

.carousel-track {
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    transform-style: preserve-3d; animation: trackSpinY 12s linear infinite;
}

@keyframes trackSpinY { 100% { transform: rotateY(360deg); } }
@keyframes counterSpinY { 100% { transform: rotateY(-360deg); } }

.c-node-wrap { position: absolute; top: -15px; left: -15px; width: 30px; height: 30px; transform-style: preserve-3d; }
.w-1 { transform: rotateY(0deg) translateZ(60px) rotateY(0deg); }
.w-2 { transform: rotateY(90deg) translateZ(60px) rotateY(-90deg); }
.w-3 { transform: rotateY(180deg) translateZ(60px) rotateY(-180deg); }
.w-4 { transform: rotateY(270deg) translateZ(60px) rotateY(-270deg); }

.c-node-inner {
    width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(19, 33, 78, 0.15); box-shadow: 0 4px 10px rgba(19, 33, 78, 0.1);
    animation: counterSpinY 12s linear infinite; transform-style: preserve-3d;
}

.ind-node.bank { color: #d97706; border-color: rgba(217, 119, 6, 0.3); background: #fff8de; }
.ind-node.shop { color: #8b5cf6; border-color: rgba(147, 51, 234, 0.3); background: #f0edf2; }
.ind-node.travel { color: #22c55e; border-color: rgba(5, 150, 105, 0.3); background: #ecf6f0; }
.ind-node.delivery { color: #4a90f2; border-color: rgba(2, 132, 199, 0.3); background: #e5eef4; }

.chat-line { height: 4px; border-radius: 2px; background: #cbd5e1; }
.chat-line.short { width: 40%; }
.chat-line.medium { width: 70%; }
.chat-line.long { width: 100%; }

.rich-card { background: #ffffff; border-left: 3px solid; border-radius: 6px; padding: 8px; width: 100px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.img-ph { width: 100%; height: 36px; border-radius: 4px; }
.btn-ph { width: 80%; height: 10px; border-radius: 12px; margin: 0 auto; opacity: 0.9; }

.chat-bubble { background: #ffffff; border-left: 2px solid #13214E; border-radius: 6px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 5px; }
.opt-out-box { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e2e8f0; padding-top: 8px; }
.toggle-switch { width: 24px; height: 12px; border-radius: 6px; background: #e2e8f0; position: relative; }

.chat-scroll-track-stepped {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: chatStepScroll 16s infinite ease-in-out;
}
.chat-scroll-group {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}
@keyframes chatStepScroll {
    0%, 9% { transform: translateY(0); }
    12.5%, 21.5% { transform: translateY(-46px); }
    25%, 34% { transform: translateY(-92px); }
    37.5%, 46.5% { transform: translateY(-146px); }
    50%, 59% { transform: translateY(-182px); }
    62.5%, 71.5% { transform: translateY(-228px); }
    75%, 84% { transform: translateY(-274px); }
    87.5%, 96.5% { transform: translateY(-328px); }
    100% { transform: translateY(-364px); }
}

.pop-m1 { animation: popM1 16s infinite; }
.pop-m2 { animation: popM2 16s infinite; }
.pop-m3 { animation: popM3 16s infinite; }
.pop-m4 { animation: popM4 16s infinite; }
.pop-m5 { animation: popM5 16s infinite; }
.pop-m6 { animation: popM6 16s infinite; }
.pop-m7 { animation: popM7 16s infinite; }
.pop-m8 { animation: popM8 16s infinite; }
.pop-g2-m1 { animation: popG2M1 16s infinite; }
.pop-g2-m2 { animation: popG2M2 16s infinite; }

@keyframes popM1 { 0%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM2 { 0%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM3 { 0%, 9% { opacity: 0; transform: translateY(10px) scale(0.9); } 12.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM4 { 0%, 21.5% { opacity: 0; transform: translateY(10px) scale(0.9); } 25%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM5 { 0%, 34% { opacity: 0; transform: translateY(10px) scale(0.9); } 37.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM6 { 0%, 46.5% { opacity: 0; transform: translateY(10px) scale(0.9); } 50%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM7 { 0%, 59% { opacity: 0; transform: translateY(10px) scale(0.9); } 62.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popM8 { 0%, 71.5% { opacity: 0; transform: translateY(10px) scale(0.9); } 75%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popG2M1 { 0%, 84% { opacity: 0; transform: translateY(10px) scale(0.9); } 87.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popG2M2 { 0%, 96.5% { opacity: 0; transform: translateY(10px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.text-anim-main { animation: textFadeMain 4s infinite; }
.text-anim-alert { animation: textFadeAlert 4s infinite; }

@keyframes textFadeMain { 0%, 25% { background: #13214E; } 35%, 100% { background: #cbd5e1; } }
@keyframes textFadeAlert { 0%, 25% { background: #ef4444; } 35%, 100% { background: #cbd5e1; } }

.toggle-anim { animation: switchTrackAnim 4s infinite; }
.toggle-anim::before { content: ''; position: absolute; top: 2px; width: 8px; height: 8px; border-radius: 50%; animation: switchKnobAnim 4s infinite; }
@keyframes switchTrackAnim { 0%, 25% { background: #10b981; } 35%, 100% { background: #e2e8f0; } }
@keyframes switchKnobAnim { 0%, 25% { left: 14px; background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); } 35%, 100% { left: 2px; background: #ef4444; box-shadow: none; } }
.sim-cursor-stop { position: absolute; bottom: 4px; right: 4px; z-index: 10; animation: cursorStopMove 4s infinite; }
@keyframes cursorStopMove { 0%, 100% { transform: translate(20px, 20px); opacity: 0; } 10% { transform: translate(20px, 20px); opacity: 1; } 25% { transform: translate(0px, 0px); opacity: 1; } 30% { transform: translate(0px, 0px) scale(0.85); opacity: 1; } 40% { transform: translate(0px, 0px) scale(1); opacity: 1; } 55% { transform: translate(15px, 15px); opacity: 0; } }

.mac-window { 
    background: #1e293b; border-radius: 6px; width: 140px; height: 86px; position: relative; 
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3); border-bottom: 3px solid; 
    display: flex; flex-direction: column; overflow: hidden;
}
.mac-header { background: #334155; height: 16px; display: flex; align-items: center; padding: 0 6px; gap: 4px; }
.mac-dot { width: 6px; height: 6px; border-radius: 50%; }
.mac-body { padding: 8px 30px 8px 8px; display: flex; flex-direction: column; gap: 5px; position: relative; flex-grow: 1; }
.code-indent { padding-left: 8px; display: flex; flex-direction: column; gap: 5px; }
.code-line { height: 4px; border-radius: 2px; }

.blink-cursor {
    width: 6px; height: 10px; border-radius: 1px;
    animation: blinkAnim 1s step-end infinite;
    margin-top: 1px;
}
@keyframes blinkAnim { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.api-badge { 
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); opacity: 0.9;
    display: flex; align-items: center; justify-content: center;
}
.api-badge img {
    width: 32px;
    height: 32px;
    display: block;
}

.click-btn { animation: btnPress 3s infinite; }
@keyframes btnPress { 0%, 45%, 55%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(0.95); opacity: 1; } }
.sim-cursor { position: absolute; bottom: -5px; right: -10px; z-index: 10; animation: cursorMove 3s infinite; }
@keyframes cursorMove { 0%, 100% { transform: translate(20px, 20px); opacity: 0; } 15% { transform: translate(20px, 20px); opacity: 1; } 40% { transform: translate(-30px, -2px); opacity: 1; } 50% { transform: translate(-30px, -2px) scale(0.85); opacity: 1; } 60% { transform: translate(-30px, -2px) scale(1); opacity: 1; } 75% { transform: translate(-10px, 10px); opacity: 0; } }

.rcs-carousel-wrapper { 
    display: flex; gap: 6px; width: max-content;
    animation: rcsSlideAnim 9s infinite cubic-bezier(0.4, 0, 0.2, 1); 
    will-change: transform;
}
.rcs-product-card { width: 80px; flex-shrink: 0; border: 1px solid #f1f5f9; border-radius: 4px; overflow: hidden; }
@keyframes rcsSlideAnim { 
    0%, 20% { transform: translateX(0); } 
    33%, 53% { transform: translateX(-86px); } 
    66%, 86% { transform: translateX(-172px); } 
    100% { transform: translateX(0); } 
}

.float-1 { animation: floatAnim 3s ease-in-out infinite alternate; will-change: transform; }
@keyframes floatAnim { 0% { transform: translateY(0px); } 100% { transform: translateY(-4px); } }
@keyframes fadeInSaaS { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
.dropdown-toggle::after { display: none !important; }

@media (max-width: 991px) {
  #saas-blur-overlay { display: none !important; }
  .navbar .dropdown-menu.megadrop-menu {
    width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 8px 0 !important;
    display: block !important;
    background: transparent !important;
    gap: 0 !important;
  }
  .megadrop-preview { display: none !important; }
  .megadrop-list {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .megadrop-list li a:hover,
  .megadrop-list li a.is-active {
    transform: none !important;
  }
}
