/* Modern Features Styles */

/* -------------------------------------------------------------------
   6. 3D Map Fallback
------------------------------------------------------------------- */
#globe-viz {
    background: #0b0b1e url('https://unpkg.com/three-globe/example/img/night-sky.png') center/cover no-repeat;
    min-height: 600px;
}

/* -------------------------------------------------------------------
   1. Impact Ticker
------------------------------------------------------------------- */
.impact-ticker-wrapper {
    background: #000;
    /* Fallback */
    background: linear-gradient(90deg, #1a0b2e 0%, #2d1b4e 100%);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-block;
    margin-right: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-item span {
    color: #00d2ff;
    /* Neon Cyan */
    font-weight: 700;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* -------------------------------------------------------------------
   2. Live Trust Pulse
------------------------------------------------------------------- */
.trust-pulse-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none;
    /* Let clicks pass through if hidden */
}

.trust-pulse-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
}

.trust-pulse-card.show {
    transform: translateY(0);
    opacity: 1;
}

.trust-pulse-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FE0094;
}

.trust-pulse-content h6 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 700;
}

.trust-pulse-content p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

.trust-pulse-content span {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-top: 2px;
}

.trust-pulse-close {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1;
}

/* Dark Mode Support for Pulse */
.is_dark .trust-pulse-card {
    background: rgba(30, 30, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.is_dark .trust-pulse-content h6 {
    color: #fff;
}

.is_dark .trust-pulse-content p {
    color: #ccc;
}

/* -------------------------------------------------------------------
   3. AI Genius Assistant
------------------------------------------------------------------- */
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FE0094, #FFD700);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(254, 0, 148, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.ai-assistant-btn:hover {
    transform: scale(1.1);
}

.ai-assistant-btn img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform-origin: bottom right;
    animation: chat-popup 0.3s ease-out forwards;
}

@keyframes chat-popup {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.is_dark .ai-chat-window {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.chat-header {
    background: linear-gradient(135deg, #FE0094, #18239D);
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.chat-header span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.is_dark .chat-body {
    background: #161625;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    margin-left: auto;
}

.message-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #333;
}

.is_dark .message-content {
    background: #252535;
    color: #e0e0e0;
}

.chat-message.bot .message-content {
    border-bottom-left-radius: 2px;
}

.chat-message.user .message-content {
    background: #FE0094;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background: #fff;
    border: 1px solid #FE0094;
    color: #FE0094;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: #FE0094;
    color: #fff;
}

.is_dark .chat-option-btn {
    background: transparent;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.is_dark .chat-footer {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.05);
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input-group input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-group button {
    background: #18239D;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------------
   4. Exit Intent Modal
------------------------------------------------------------------- */
.exit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.exit-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.exit-modal-img {
    width: 40%;
    background: url('../img/service/service__bg__1.webp') center/cover no-repeat;
    display: none;
    /* Mobile */
}

@media (min-width: 768px) {
    .exit-modal-img {
        display: block;
    }
}

.exit-modal-body {
    padding: 40px;
    flex: 1;
    text-align: center;
}

.exit-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.exit-modal-body h3 {
    color: #1a0b2e;
    margin-bottom: 10px;
    font-weight: 800;
}

.exit-modal-body p {
    color: #666;
    margin-bottom: 25px;
}

.exit-modal-btn {
    background: linear-gradient(90deg, #FE0094 0%, #FFD700 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s;
}

.exit-modal-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.is_dark .exit-modal-content {
    background: #1a1a2e;
}

.is_dark .exit-modal-body h3 {
    color: #fff;
}

.is_dark .exit-modal-body p {
    color: #ccc;
}

/* -------------------------------------------------------------------
   5. Accessibility Widget
------------------------------------------------------------------- */
.a11y-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.a11y-toggle-btn {
    background: #18239D;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
}

.a11y-panel {
    background: #fff;
    padding: 15px;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden */
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

.a11y-panel.open {
    display: flex;
}

.a11y-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.a11y-btn-group button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.a11y-btn-group button.active {
    background: #18239D;
    color: #fff;
}