:root {
    --aura-brand: #23c75d;
    --aura-brand-dark: #1a9e4a;
    --aura-chat-header-bg: linear-gradient(135deg, #1a9e4a, #168a3f);

    /* Tooltip gap: constant spacing between button and tooltip on all devices */
    --aura-tooltip-gap: 8px;
}

/* Typewriter Effect */
.aura-typing-text {
    opacity: 0;
    white-space: pre-wrap;
    display: inline-block;
    position: relative;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.aura-typing-text[data-typing="true"]::after {
    content: '|';
    position: absolute;
    right: -4px;
    animation: aura-cursor-blink 0.8s infinite;
    color: currentColor;
    font-weight: 100;
}

@keyframes aura-cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Mobile tap highlight fix - removes square shadow on touch */
.aura-fab,
.aura-fab *,
.aura-fab-tooltip {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    box-sizing: border-box;
    /* Ensures borders don't increase size */
}

/* Button Style 1 - ELEGANT EMBOSSED 3D */
.aura-fab.style-1 {
    border-radius: 50% !important;
    background: linear-gradient(145deg, #2ecc71 0%, #27ae60 50%, #229954 100%);
    border: 4px solid;
    border-top-color: #48e088;
    border-left-color: #48e088;
    border-bottom-color: #1a9e4a;
    border-right-color: #1a9e4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--aura-button-size, 60px);
    height: var(--aura-button-size, 60px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    box-shadow: none;
}

/* Inner Glow - Style 1 */
.aura-fab.style-1::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 40%);
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) {
    .aura-fab.style-1:hover {
        transform: translateY(-3px) scale(1.04);
        border-top-color: #5ce89a;
        border-left-color: #5ce89a;
        border-bottom-color: #168a3f;
        border-right-color: #168a3f;
        background: linear-gradient(145deg, #34d77a 0%, #2bb968 50%, #24a85c 100%);
        box-shadow: none;
    }
}

.aura-fab.style-1:active {
    transform: translateY(-1px) scale(1.01);
    border-top-color: #1a9e4a;
    border-left-color: #1a9e4a;
    border-bottom-color: #48e088;
    border-right-color: #48e088;
    background: linear-gradient(145deg, #229954 0%, #27ae60 50%, #2ecc71 100%);
    box-shadow: none;
}

/* Button Style 2 - Modern Square 3D */
.aura-fab.style-2 {
    border-radius: 12px !important;
    background: linear-gradient(145deg, #2ecc71 0%, #27ae60 50%, #229954 100%);
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--aura-button-size, 60px);
    height: var(--aura-button-size, 60px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

/* Inner glossy frame */
.aura-fab.style-2::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 8px !important;
    border: 2px solid;
    border-top-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(0, 0, 0, 0.15);
    border-right-color: rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

@media (hover: hover) {
    .aura-fab.style-2:hover {
        background: linear-gradient(145deg, #34d77a 0%, #2bb968 50%, #24a85c 100%);
        transform: translateY(-3px) scale(1.03);
        border-top-color: #5ce89a;
        border-left-color: #5ce89a;
        border-bottom-color: #168a3f;
        border-right-color: #168a3f;
        box-shadow:
            inset 0 3px 10px rgba(255, 255, 255, 0.6),
            inset 0 -3px 10px rgba(0, 0, 0, 0.25);
    }

    .aura-fab.style-2:hover::before {
        border-top-color: rgba(255, 255, 255, 0.6);
        border-left-color: rgba(255, 255, 255, 0.6);
        border-bottom-color: rgba(0, 0, 0, 0.2);
        border-right-color: rgba(0, 0, 0, 0.2);
    }
}

.aura-fab.style-2:active {
    transform: translateY(-1px) scale(1.01);
    border-top-color: #1a9e4a;
    border-left-color: #1a9e4a;
    border-bottom-color: #48e088;
    border-right-color: #48e088;
    background: linear-gradient(145deg, #229954 0%, #27ae60 50%, #2ecc71 100%);
    box-shadow:
        inset 0 3px 12px rgba(0, 0, 0, 0.3),
        inset 0 -2px 8px rgba(255, 255, 255, 0.3);
}

.aura-fab.style-2:active::before {
    border-top-color: rgba(0, 0, 0, 0.2);
    border-left-color: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    border-right-color: rgba(255, 255, 255, 0.4);
}


.aura-fab.style-1 svg.aura-fab-icon-chat,
.aura-fab.style-1 svg.aura-fab-icon-close,
.aura-fab.style-2 svg.aura-fab-icon-chat,
.aura-fab.style-2 svg.aura-fab-icon-close,
.aura-fab.style-5 svg.aura-fab-icon-chat,
.aura-fab.style-5 svg.aura-fab-icon-close,
.aura-fab.style-6 svg.aura-fab-icon-chat,
.aura-fab.style-6 svg.aura-fab-icon-close {
    z-index: 5;
}

/* Style 1, 2 - PRECISION BALANCED ICONS (49% of button size) */
.aura-fab.style-1 svg.aura-fab-icon-chat,
.aura-fab.style-1 svg.aura-fab-icon-close,
.aura-fab.style-2 svg.aura-fab-icon-chat,
.aura-fab.style-2 svg.aura-fab-icon-close,
.aura-fab.style-5 svg.aura-fab-icon-chat,
.aura-fab.style-5 svg.aura-fab-icon-close,
.aura-fab.style-6 svg.aura-fab-icon-chat,
.aura-fab.style-6 svg.aura-fab-icon-close {
    width: calc(var(--aura-button-size, 60px) * 0.49) !important;
    height: calc(var(--aura-button-size, 60px) * 0.49) !important;
}

/* Perfect icon centering for all button styles */
.aura-fab svg.aura-fab-icon-chat,
.aura-fab svg.aura-fab-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    /* Width and height controlled by inline style from admin panel */
}


.aura-widget-container {
    position: fixed;
    /* Safety clamped bottom position - Allows 0px to touch the edge but prevents going under 0 */
    bottom: clamp(0px, calc(20px + var(--dy, 0px)), calc(100dvh - var(--aura-button-size, 60px) - 20px));
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Dynamic Effective Width for Boundary Safety */
    --aura-eff-width: var(--aura-button-size, 60px);
}

/* Increase effective width for pill styles and tooltips to prevent side overflow */
.aura-widget-container:has(.style-3),
.aura-widget-container:has(.style-4),
.aura-widget-container:has(.aura-tooltip-vis-always) {
    --aura-eff-width: calc(var(--aura-button-size, 60px) * 2.8);
}

.aura-widget-container.right-position {
    right: clamp(0px, calc(20px + var(--dx, 0px)), calc(100vw - var(--aura-eff-width)));
}

.aura-widget-container.left-position {
    left: clamp(0px, calc(20px + var(--dx, 0px)), calc(100vw - var(--aura-eff-width)));
}


/* FAB Button - Size controlled by inline style from admin panel */
/* Default/fallback styles for buttons without specific style class */
.aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4) {
    border-radius: 50%;
    background: linear-gradient(145deg, var(--aura-brand), var(--aura-brand-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4)::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4)::after {
    display: none;
}

@media (hover: hover) {
    .aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4):hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: inset 0 -3px 12px rgba(0, 0, 0, 0.2), inset 0 3px 6px rgba(255, 255, 255, 0.4);
    }

    .aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4):hover::after {
        display: none;
    }
}

.aura-fab:not(.style-1):not(.style-2):not(.style-3):not(.style-4):active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 -1px 4px rgba(255, 255, 255, 0.2);
}

/* Style 3 (Premium Pill) */
.aura-fab.style-3 {
    width: auto;
    height: var(--aura-button-size, 60px);
    border-radius: var(--aura-button-size, 60px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0 10px;
}


@media (hover: hover) {
    .aura-fab.style-3:hover {
        transform: translateY(-4px) scale(1.05);
    }
}

.aura-fab.style-3:active {
    transform: translateY(-2px) scale(0.98);
}

/* Style 4 (Business Pill) */
.aura-fab.style-4 {
    width: auto;
    height: var(--aura-button-size, 60px);
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0 10px;
}

@media (hover: hover) {
    .aura-fab.style-4:hover {
        transform: translateY(-4px) scale(1.05);
    }
}

.aura-fab.style-4:active {
    transform: translateY(-2px) scale(0.98);
}

/* Style 6 (Futuristic Glass) */
.aura-fab.style-6 {
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95) 0%, rgba(18, 140, 126, 0.98) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 8px 32px 0 rgba(37, 211, 102, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@media (hover: hover) {
    .aura-fab.style-6:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }
}

.aura-fab.style-6:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* Common Pill Logic */
.aura-fab.style-3 svg.aura-fab-icon-chat,
.aura-fab.style-3 svg.aura-fab-icon-close,
.aura-fab.style-4 svg.aura-fab-icon-chat,
.aura-fab.style-4 svg.aura-fab-icon-close {
    left: 18px !important;
    margin: 0 !important;
}

.aura-fab.style-3 .preview-label-text,
.aura-fab.style-4 .preview-label-text {
    z-index: 10;
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-left: 15px;
    pointer-events: none;
    white-space: nowrap;
}

.aura-fab.style-3.active svg.aura-fab-icon-close,
.aura-fab.style-4.active svg.aura-fab-icon-close {
    left: 50% !important;
}

.aura-fab.style-3.active .preview-label-text,
.aura-fab.style-4.active .preview-label-text {
    display: none;
}

/* Icon container and centering */
.aura-fab-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

svg.aura-fab-icon-chat,
svg.aura-fab-icon-close {
    color: white;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: absolute;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    margin: 0;
    padding: 0;
    top: 50% !important;
    left: 50% !important;
}

svg.aura-fab-icon-chat {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
}

svg.aura-fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(90deg) !important;
}

.aura-fab.active svg.aura-fab-icon-chat {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg) !important;
}

.aura-fab.active svg.aura-fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
}

.aura-fab.active .aura-fab-tooltip {
    opacity: 0;
    visibility: hidden;
}

/* TOOLTIP - COMPACT EXECUTIVE QUALITY */
.aura-fab-tooltip {
    position: absolute;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;

    /* Visibility & Animation */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        background 0.3s ease;

    /* Tooltip - Premium 3D (Anti-Aliased) */
    background: linear-gradient(135deg,
            #5ce89a 0%,
            #48e088 15%,
            #34d77a 35%,
            #2ecc71 50%,
            #27ae60 70%,
            #229954 85%,
            #1a9e4a 100%);
    color: #ffffff;

    /* High-Quality 3D using inset shadows (Fixes choppy corners) */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        /* Top highlight */
        inset 3px 0 0 rgba(255, 255, 255, 0.2),
        /* Left highlight */
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        /* Bottom shadow */
        inset -3px 0 0 rgba(0, 0, 0, 0.1),
        /* Right shadow */
        /* Inner Depth */
        inset 0 0 10px rgba(255, 255, 255, 0.2);

    /* Ultra-Smooth Positioning (do not change gap) */
    transform: scale(0.95);
    transform-origin: right center;
    z-index: 10000;

    /* Executive Text Enhancement */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.15);
}

/* Tooltip Arrow - Hidden */
.aura-fab-tooltip::before {
    display: none !important;
}

/* Hover State - Executive Reveal */
.aura-fab-tooltip.aura-tooltip-vis-none {
    display: none;
}

@media (hover: hover) {

    .aura-fab:hover .aura-fab-tooltip.aura-tooltip-vis-hover,
    .aura-fab-tooltip.aura-tooltip-vis-always {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        box-shadow:
            /* Enhanced Inner Glow - Compact Executive */
            inset 0 4px 10px rgba(255, 255, 255, 0.8),
            inset 0 -4px 8px rgba(0, 0, 0, 0.35),

            /* Enhanced Directional Lighting */
            inset 6px 0 8px rgba(255, 255, 255, 0.6),
            inset -6px 0 8px rgba(0, 0, 0, 0.3);
    }
}

/* ========== PURPLE TOOLTIP STYLE ========== */
.aura-fab-tooltip.tooltip-purple {
    background: linear-gradient(145deg, #B85F9C 0%, #A84D8C 20%, #8C3573 50%, #6B2858 80%, #5A2049 100%);
    border: 3px solid;
    border-top-color: #B85F9C;
    border-left-color: #B85F9C;
    border-bottom-color: #6B2858;
    border-right-color: #6B2858;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2),
        inset 2px 0 3px rgba(255, 255, 255, 0.3),
        inset -2px 0 3px rgba(0, 0, 0, 0.15);
}

@media (hover: hover) {

    .aura-fab:hover .aura-fab-tooltip.tooltip-purple.aura-tooltip-vis-hover,
    .aura-fab-tooltip.tooltip-purple.aura-tooltip-vis-always {
        box-shadow:
            inset 0 3px 8px rgba(255, 255, 255, 0.6),
            inset 0 -3px 8px rgba(0, 0, 0, 0.25),
            inset 3px 0 6px rgba(255, 255, 255, 0.4),
            inset -3px 0 6px rgba(0, 0, 0, 0.2);
    }
}

/* ========== END PURPLE TOOLTIP STYLE ========== */

/* ========== ORANGE TOOLTIP STYLE ========== */
.aura-fab-tooltip.tooltip-gold {
    background: linear-gradient(145deg, #FF8A4D 0%, #FF7326 20%, #FF5C00 50%, #D94E00 80%, #B34000 100%);
    border: 3px solid;
    border-top-color: #FF8A4D;
    border-left-color: #FF8A4D;
    border-bottom-color: #D94E00;
    border-right-color: #D94E00;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2),
        inset 2px 0 3px rgba(255, 255, 255, 0.3),
        inset -2px 0 3px rgba(0, 0, 0, 0.15);
}

@media (hover: hover) {

    .aura-fab:hover .aura-fab-tooltip.tooltip-gold.aura-tooltip-vis-hover,
    .aura-fab-tooltip.tooltip-gold.aura-tooltip-vis-always {
        box-shadow:
            inset 0 3px 8px rgba(255, 255, 255, 0.6),
            inset 0 -3px 8px rgba(0, 0, 0, 0.25),
            inset 3px 0 6px rgba(255, 255, 255, 0.4),
            inset -3px 0 6px rgba(0, 0, 0, 0.2);
    }
}

/* ========== END GOLD TOOLTIP STYLE ========== */

/* ========== BUTTON STYLE SPECIFIC TOOLTIP EFFECTS ========== */

/* Style-1 Tooltip - ULTRA PREMIUM 3D EMBOSSED EFFECT */
.aura-fab.style-1 .aura-fab-tooltip.tooltip-style-1,
.aura-fab-tooltip.tooltip-style-1 {
    /* Ultra Premium Metallic Background - Dynamic Color Theme */
    background:
        /* Layer 1: Premium Base Gradient */
        linear-gradient(145deg,
            var(--aura-darker-color) 0%,
            var(--aura-dark-color) 20%,
            var(--aura-main-color) 40%,
            var(--aura-light-color) 60%,
            var(--aura-lighter-color) 80%,
            var(--aura-lighter-color) 100%),
        /* Layer 2: Subtle Metallic Overlay */
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 50%,
            rgba(0, 0, 0, 0.08) 70%,
            rgba(0, 0, 0, 0.15) 100%),
        /* Layer 3: Depth Enhancement */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.1) 100%);

    /* Ultra Premium 3D Border - Dynamic Theme Frame */
    border: 5px solid;
    border-top-color: var(--aura-lighter-color);
    border-left-color: var(--aura-light-color);
    border-bottom-color: var(--aura-darker-color);
    border-right-color: var(--aura-dark-color);

    /* Premium 3D Shadows - Dynamic Color Theme (Inset Only) */
    box-shadow:
        /* Primary embossed depth */
        inset 0 8px 20px var(--aura-dark-color),
        inset 0 -6px 16px var(--aura-light-color),
        /* Directional lighting */
        inset 12px 0 20px var(--aura-dark-color),
        inset -12px 0 20px var(--aura-light-color),
        /* Top embossed highlight */
        inset 0 12px 18px var(--aura-dark-color),
        /* Bottom embossed shadow */
        inset 0 -8px 14px var(--aura-light-color),
        /* Corner depth enhancement */
        inset 8px 8px 16px var(--aura-dark-color),
        inset -8px -8px 16px var(--aura-light-color);

    /* Ultra Premium Text Shadow - Dynamic Theme */
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(255, 255, 255, 0.4),
        0 0 24px var(--aura-main-color);

    /* Premium 3D Transform */
    transform: scale(0.95) translateZ(0) perspective(1000px) rotateX(2deg);
    border-radius: 18px;
}

@media (hover: hover) {

    .aura-fab.style-1:hover .aura-fab-tooltip.tooltip-style-1.aura-tooltip-vis-hover,
    .aura-fab-tooltip.tooltip-style-1.aura-tooltip-vis-always {
        transform: scale(1) translateZ(0) perspective(1000px) rotateX(0deg);
        box-shadow:
            /* Enhanced premium embossing */
            inset 0 10px 25px var(--aura-dark-color),
            inset 0 -8px 20px var(--aura-lighter-color),
            /* Enhanced directional lighting */
            inset 15px 0 25px var(--aura-dark-color),
            inset -15px 0 25px var(--aura-lighter-color),
            /* Enhanced top highlight */
            inset 0 15px 22px var(--aura-dark-color),
            /* Enhanced bottom shadow */
            inset 0 -10px 18px var(--aura-lighter-color),
            /* Enhanced corner depth */
            inset 10px 10px 20px var(--aura-dark-color),
            inset -10px -10px 20px var(--aura-lighter-color);
        border-top-color: var(--aura-lighter-color);
        border-left-color: var(--aura-lighter-color);
        border-bottom-color: var(--aura-darker-color);
        border-right-color: var(--aura-darker-color);
    }
}

/* Style-2 Tooltip - KATMAN (Layered) Premium Effect */
.aura-fab.style-2 .aura-fab-tooltip.tooltip-style-2,
.aura-fab-tooltip.tooltip-style-2 {
    /* Premium Layered Background - Multi-Layer Effect */
    background:
        /* Layer 1 - Top highlight */
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 20%, transparent 40%),
        /* Layer 2 - Main gradient MATCHING BUTTON STYLE 2 */
        linear-gradient(145deg,
            #2ecc71 0%,
            #27ae60 50%,
            #229954 100%),
        /* Layer 3 - Base shadow */
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);

    /* Premium Layered Border - Multi-Layer Frame */
    border: 5px solid;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(0, 0, 0, 0.4);
    border-right-color: rgba(0, 0, 0, 0.35);

    /* Inner layered border */
    box-shadow:
        /* Layer 1 - Top highlight */
        inset 0 3px 10px rgba(255, 255, 255, 0.6),
        /* Layer 2 - Middle depth */
        inset 0 0 0 2px rgba(255, 255, 255, 0.3),
        /* Layer 3 - Bottom shadow */
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        /* Layer 4 - Side highlights */
        inset 6px 0 10px rgba(255, 255, 255, 0.4),
        inset -6px 0 10px rgba(0, 0, 0, 0.25),
        /* Layer 5 - Corner depth */
        inset 4px 4px 8px rgba(255, 255, 255, 0.2),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2);

    /* Premium Text Shadow for Layered Effect */
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.25),
        0 -1px 2px rgba(255, 255, 255, 0.2);

    /* Layered transform */
    transform: scale(0.95);
    z-index: 9999;
}

.aura-fab.style-2 .aura-fab-tooltip.tooltip-style-2::after,
.aura-fab-tooltip.tooltip-style-2::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    border: 2px solid;
    border-top-color: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(255, 255, 255, 0.35);
    border-bottom-color: rgba(0, 0, 0, 0.2);
    border-right-color: rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: -1;
}

@media (hover: hover) {

    .aura-fab.style-2:hover .aura-fab-tooltip.tooltip-style-2.aura-tooltip-vis-hover,
    .aura-fab-tooltip.tooltip-style-2.aura-tooltip-vis-always {
        transform: scale(1);
        box-shadow:
            /* Enhanced layer highlights */
            inset 0 4px 14px rgba(255, 255, 255, 0.75),
            inset 0 0 0 3px rgba(255, 255, 255, 0.4),
            inset 0 -6px 14px rgba(0, 0, 0, 0.35),
            inset 8px 0 14px rgba(255, 255, 255, 0.5),
            inset -8px 0 14px rgba(0, 0, 0, 0.3),
            inset 6px 6px 12px rgba(255, 255, 255, 0.3),
            inset -6px -6px 12px rgba(0, 0, 0, 0.25);
        z-index: 10000;
    }
}

/* Ensure Style-2 tooltip stays behind button */
.aura-fab.style-2 .aura-fab-tooltip.tooltip-style-2 {
    z-index: 9999;
}

.aura-fab.style-2:hover .aura-fab-tooltip.tooltip-style-2.aura-tooltip-vis-hover,
.aura-fab-tooltip.tooltip-style-2.aura-tooltip-vis-always {
    z-index: 10002;
}

/* Tooltip positioning logic (retained if needed for consistency) */

/* ========== END BUTTON STYLE SPECIFIC TOOLTIP EFFECTS ========== */

.aura-chat-box {
    position: absolute;
    bottom: 80px;
    width: 360px;
    /* Ultra-Premium Glass Material */
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-radius: 28px;
    overflow: hidden;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(30px) scale(0.92) rotateX(10deg);
    transform-origin: bottom right;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    /* Bouncy open */

    /* Premium 3D Beveled Edges */
    box-shadow:
        /* Deep ambient shadow */
        0 30px 60px -12px rgba(0, 0, 0, 0.25),
        0 18px 36px -18px rgba(0, 0, 0, 0.25),
        /* White top/left light reflection */
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
        inset 1px 0 0 0 rgba(255, 255, 255, 0.8),
        /* Dark bottom/right shadow for thickness */
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.05),
        inset -1px 0 0 0 rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.6);
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: 99999;
}

.aura-chat-box.active {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    visibility: visible;
}

.aura-chat-box::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, rgba(35, 199, 93, 0.02) 0%, rgba(26, 158, 74, 0.01) 100%);
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1),
        inset 2px 0 6px rgba(255, 255, 255, 0.3),
        inset -2px 0 6px rgba(0, 0, 0, 0.08);
    opacity: 0.7;
    pointer-events: none;
    border-radius: 21px;
    z-index: 1;
}

.aura-chat-box::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2), rgba(35, 199, 93, 0.1));
    border-radius: 27px;
    z-index: -1;
    opacity: 0.8;
    box-shadow:
        0 0 20px rgba(35, 199, 93, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.aura-chat-header {
    /* Rich 3D Gradient */
    background: linear-gradient(135deg, #23c75d 0%, #1a9e4a 50%, #168a3f 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    z-index: 10;
    /* 3D Depth Separator */
    box-shadow:
        0 4px 12px rgba(22, 138, 63, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform-style: preserve-3d;
}

/* Glossy overlay */
.aura-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.aura-chat-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.aura-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.aura-avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.aura-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Clean Modern Avatar */
.aura-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-sizing: border-box;
    display: block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Floating Avatar Shadow */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aura-header-avatar:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Clean Modern Avatar Placeholder */
.aura-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d77a 0%, #168a3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aura-avatar-placeholder:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.aura-online-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    background: #4ade80;
    border: 3px solid #1a9e4a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    z-index: 10;
    animation: pulseOnline 2s ease-in-out infinite;
    transform: translate(25%, 25%);
}

/* Offline Indicator - Gray color for offline status */
.aura-offline-indicator {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    background: #9ca3af;
    border: 3px solid #6b7280;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    z-index: 10;
    transform: translate(25%, 25%);
}

/* ========== OFFLINE MODE STYLES ========== */
.aura-offline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
}

.aura-offline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #6b7280, #4b5563);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.aura-offline-icon i {
    font-size: 24px;
    color: #fbbf24;
}

.aura-offline-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
}

.aura-offline-hours {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aura-offline-hours i {
    color: #9ca3af;
}

.aura-offline-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 12px 0 0 0;
}



/* Offline Form */
.aura-offline-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aura-offline-input,
.aura-offline-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f3f6f9;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Recessed 3D Field */
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8);
    color: #334155;
}

.aura-offline-input:focus,
.aura-offline-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #23c75d;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.03),
        0 0 0 4px rgba(35, 199, 93, 0.15);
}

.aura-offline-textarea {
    resize: none;
    min-height: 60px;
}

/* ========== END OFFLINE MODE STYLES ========== */

.aura-online-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #4ade80;
    opacity: 0;
    animation: rippleOnline 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes pulseOnline {

    0%,
    100% {
        transform: translate(25%, 25%) scale(1);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9),
            0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    50% {
        transform: translate(25%, 25%) scale(1.1);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9),
            0 0 0 3px rgba(74, 222, 128, 0.3);
    }
}

@keyframes rippleOnline {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}


.aura-avatar-placeholder i {
    font-size: 22px;
    color: white;
    filter: none;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.aura-header-info {
    flex: 1;
}

.aura-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;

    /* Ultra-Luxury Premium 3D Text Effects */
    background: linear-gradient(135deg,
            #ffffff 0%,
            #f8fafc 15%,
            #ffffff 30%,
            #f1f5f9 45%,
            #ffffff 60%,
            #e8f4f8 75%,
            #ffffff 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Ultra-Premium 3D Text Shadows - Maximum Depth */
    text-shadow:
        /* Primary embossed layers - Ultra White */
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 0 rgba(255, 255, 255, 0.85),
        0 3px 0 rgba(255, 255, 255, 0.75),
        0 4px 0 rgba(255, 255, 255, 0.65),
        0 5px 0 rgba(255, 255, 255, 0.55),
        0 6px 0 rgba(255, 255, 255, 0.45),

        /* Secondary depth layers - Premium Dark */
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.10),
        0 3px 9px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 5px 15px rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(0, 0, 0, 0.02),

        /* Directional lighting - Left/Right shadows */
        1px 1px 2px rgba(0, 0, 0, 0.08),
        -1px 1px 2px rgba(255, 255, 255, 0.15),

        /* Ultra-Luxury Ambient Glow */
        0 0 20px rgba(35, 199, 93, 0.25),
        0 0 40px rgba(35, 199, 93, 0.15),
        0 0 60px rgba(35, 199, 93, 0.08),

        /* Premium Inner Glow */
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);

    /* Ultra-Premium 3D Transform with Enhanced Perspective */
    transform: translateZ(0) perspective(1200px) rotateX(3deg) rotateY(-1deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;

    /* Luxury Animation */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: aura-luxury-pulse 3s ease-in-out infinite;
}

.aura-title:hover {
    /* Ultra-Enhanced 3D effect on hover */
    transform: translateZ(0) perspective(1200px) rotateX(0deg) rotateY(0deg) translateY(-2px) scale(1.02);
    text-shadow:
        /* Maximum enhanced depth layers */
        0 1px 0 rgba(255, 255, 255, 1),
        0 2px 0 rgba(255, 255, 255, 0.9),
        0 3px 0 rgba(255, 255, 255, 0.8),
        0 4px 0 rgba(255, 255, 255, 0.7),
        0 5px 0 rgba(255, 255, 255, 0.6),
        0 6px 0 rgba(255, 255, 255, 0.5),

        /* Ultra-enhanced dark depth */
        0 1px 4px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 3px 12px rgba(0, 0, 0, 0.10),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 5px 20px rgba(0, 0, 0, 0.06),
        0 6px 24px rgba(0, 0, 0, 0.04),

        /* Enhanced directional lighting */
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px 2px 4px rgba(255, 255, 255, 0.2),

        /* Ultra-Luxury enhanced glow */
        0 0 30px rgba(35, 199, 93, 0.35),
        0 0 60px rgba(35, 199, 93, 0.2),
        0 0 90px rgba(35, 199, 93, 0.1),

        /* Enhanced inner effects */
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

/* Ultra-Luxury Pulse Animation */
@keyframes aura-luxury-pulse {

    0%,
    100% {
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95),
            0 2px 0 rgba(255, 255, 255, 0.85),
            0 3px 0 rgba(255, 255, 255, 0.75),
            0 4px 0 rgba(255, 255, 255, 0.65),
            0 5px 0 rgba(255, 255, 255, 0.55),
            0 6px 0 rgba(255, 255, 255, 0.45),
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.10),
            0 3px 9px rgba(0, 0, 0, 0.08),
            0 4px 12px rgba(0, 0, 0, 0.06),
            0 5px 15px rgba(0, 0, 0, 0.04),
            0 6px 18px rgba(0, 0, 0, 0.02),
            1px 1px 2px rgba(0, 0, 0, 0.08),
            -1px 1px 2px rgba(255, 255, 255, 0.15),
            0 0 20px rgba(35, 199, 93, 0.25),
            0 0 40px rgba(35, 199, 93, 0.15),
            0 0 60px rgba(35, 199, 93, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    }

    50% {
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.98),
            0 2px 0 rgba(255, 255, 255, 0.88),
            0 3px 0 rgba(255, 255, 255, 0.78),
            0 4px 0 rgba(255, 255, 255, 0.68),
            0 5px 0 rgba(255, 255, 255, 0.58),
            0 6px 0 rgba(255, 255, 255, 0.48),
            0 1px 3px rgba(0, 0, 0, 0.14),
            0 2px 6px rgba(0, 0, 0, 0.11),
            0 3px 9px rgba(0, 0, 0, 0.09),
            0 4px 12px rgba(0, 0, 0, 0.07),
            0 5px 15px rgba(0, 0, 0, 0.05),
            0 6px 18px rgba(0, 0, 0, 0.03),
            1px 1px 2px rgba(0, 0, 0, 0.09),
            -1px 1px 2px rgba(255, 255, 255, 0.18),
            0 0 25px rgba(35, 199, 93, 0.3),
            0 0 50px rgba(35, 199, 93, 0.18),
            0 0 75px rgba(35, 199, 93, 0.09),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    }
}



.aura-close-btn {
    /* Glass Orb Effect */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    backdrop-filter: blur(4px);

    /* 3D Pearl Shine */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.aura-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.5),
        0 6px 14px rgba(0, 0, 0, 0.15);
}

.aura-close-btn:active {
    transform: scale(0.95);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.aura-close-btn:focus {
    outline: none;
}

.aura-close-btn .aura-icon,
.aura-close-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.aura-chat-body {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2300a884' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 160px;
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 -2px 6px rgba(255, 255, 255, 0.1),
        inset 2px 0 8px rgba(0, 0, 0, 0.05),
        inset -2px 0 8px rgba(255, 255, 255, 0.05);
}

/* Premium Scrollbar */
.aura-chat-body::-webkit-scrollbar {
    width: 6px;
}

.aura-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.aura-chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.aura-chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.aura-message-bubble {
    /* High Definition 3D Surface */
    background: linear-gradient(145deg, #ffffff 0%, #f3f6f8 100%);
    padding: 16px 20px;
    border-radius: 4px 20px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    position: relative;
    max-width: 85%;
    animation: auraSlideIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;

    /* Tangible Card Effect */
    box-shadow:
        /* Soft distant shadow for float */
        0 8px 20px -4px rgba(0, 0, 0, 0.1),
        /* Crisp ambient shadow */
        0 4px 8px -2px rgba(0, 0, 0, 0.05),
        /* Top light highlight (Bevel) */
        inset 0 2px 0 rgba(255, 255, 255, 1),
        /* Bottom shadow (Bevel) */
        inset 0 -2px 0 rgba(0, 0, 0, 0.02),
        /* Border definition */
        0 0 0 1px rgba(0, 0, 0, 0.03);

    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.aura-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 10px 0;
    border-color: transparent #ffffff transparent transparent;
    /* Enhanced 3D shadow for premium look */
    filter: drop-shadow(-3px 3px 8px rgba(0, 0, 0, 0.15)) drop-shadow(-1px 1px 4px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.08));
}

.aura-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 500;
}

.aura-chat-footer {
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
    /* Upward glowing shadow */
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.aura-start-chat-btn {
    width: 100%;
    /* Jewel-like Gradient */
    background: linear-gradient(135deg, #34d77a 0%, #23c75d 40%, #1a9e4a 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;

    /* 3D Button Depth */
    box-shadow:
        0 10px 20px -5px rgba(35, 199, 93, 0.4),
        /* Glow */
        0 4px 0 #168a3f,
        /* Physical bottom lip */
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    /* Top highlight */

    transform: translateY(0);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.aura-start-chat-btn:hover {
    background: linear-gradient(135deg, #48e088 0%, #34d77a 40%, #23c75d 100%);
    transform: translateY(-2px);
    box-shadow:
        0 15px 30px -8px rgba(35, 199, 93, 0.5),
        0 6px 0 #168a3f,
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.aura-start-chat-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #168a3f,
        inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes auraSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Positioning for left and right */
.right-position .aura-chat-box {
    right: 0;
    transform-origin: bottom right;
}

.left-position .aura-chat-box {
    left: 0;
    right: auto;
    transform-origin: bottom left;
}

.right-position .aura-fab-tooltip {
    /* Tooltip positioned to the LEFT of button when button is on RIGHT side */
    right: calc(100% + var(--aura-tooltip-gap));
    left: auto;
    transform-origin: right center;
}

.left-position .aura-fab-tooltip {
    /* Tooltip positioned to the RIGHT of button when button is on LEFT side */
    left: calc(100% + var(--aura-tooltip-gap));
    right: auto;
    transform-origin: left center;
}

/* Keep same positioning on hover/always (gap stays constant) */
.right-position .aura-fab:hover .aura-fab-tooltip.aura-tooltip-vis-hover,
.right-position .aura-fab-tooltip.aura-tooltip-vis-always {
    right: calc(100% + var(--aura-tooltip-gap));
    left: auto;
}

.left-position .aura-fab:hover .aura-fab-tooltip.aura-tooltip-vis-hover,
.left-position .aura-fab-tooltip.aura-tooltip-vis-always {
    left: calc(100% + var(--aura-tooltip-gap));
    right: auto;
}

@media (max-width: 768px) {

    /* Standard corner-based positioning for mobile */
    .aura-widget-container {
        position: fixed !important;
        bottom: clamp(0px, calc(20px + var(--my, 0px)), calc(100dvh - var(--aura-button-size-mobile, 55px) - 10px)) !important;
        z-index: 2147483640 !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        pointer-events: none !important;

        /* Mobile Dynamic Effective Width */
        --aura-eff-width-mobile: var(--aura-button-size-mobile, 55px);
    }

    .aura-widget-container:has(.style-3),
    .aura-widget-container:has(.style-4),
    .aura-widget-container:has(.aura-tooltip-vis-always) {
        --aura-eff-width-mobile: calc(var(--aura-button-size-mobile, 55px) * 2.5);
    }

    .aura-widget-container.right-position {
        right: clamp(0px, calc(20px + var(--mx, 0px)), calc(100vw - var(--aura-eff-width-mobile))) !important;
        align-items: flex-end !important;
        left: auto !important;
    }

    .aura-widget-container.left-position {
        left: clamp(0px, calc(20px + var(--mx, 0px)), calc(100vw - var(--aura-eff-width-mobile))) !important;
        right: auto !important;
        align-items: flex-start !important;
    }

    .aura-widget-container.center-position {
        left: 50% !important;
        transform: translateX(calc(-50% + var(--mx, 0px))) !important;
        align-items: center !important;
    }

    /* THE CHAT BOX: Aligned above the button */
    .aura-chat-box {
        position: absolute !important;
        bottom: calc(var(--aura-button-size-mobile, 55px) + 15px) !important;
        transform: translateY(20px) scale(0.95) !important;
        width: calc(100vw - 40px) !important;
        max-width: 360px !important;
        pointer-events: auto !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        z-index: 2147483647 !important;
    }

    .right-position .aura-chat-box {
        right: 0 !important;
        transform-origin: bottom right !important;
    }

    .left-position .aura-chat-box {
        left: 0 !important;
        right: auto !important;
        transform-origin: bottom left !important;
    }

    .center-position .aura-chat-box {
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) scale(0.95) !important;
        transform-origin: bottom center !important;
    }

    .aura-chat-box.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .aura-chat-box.active:not(.center-position .aura-chat-box) {
        transform: translateY(0) scale(1) !important;
    }

    .center-position .aura-chat-box.active {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }

    /* THE BUTTON: Standard mobile sizing */
    .aura-fab {
        position: relative !important;
        width: var(--aura-button-size-mobile, 55px) !important;
        height: var(--aura-button-size-mobile, 55px) !important;
        margin: 0 !important;
        pointer-events: auto !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    }

    /* TOOLTIP: Side positioning restored */
    .aura-fab-tooltip {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) scale(0.9) !important;
        opacity: 0;
        visibility: hidden;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        z-index: 2147483648 !important;
    }

    .right-position .aura-fab-tooltip {
        right: calc(100% + 12px) !important;
        left: auto !important;
    }

    .left-position .aura-fab-tooltip {
        left: calc(100% + 12px) !important;
        right: auto !important;
    }

    .aura-fab-tooltip.aura-tooltip-vis-always,
    .aura-fab:hover .aura-fab-tooltip.aura-tooltip-vis-hover {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) scale(1) !important;
    }

    .aura-fab.active .aura-fab-tooltip {
        display: none !important;
    }

    .aura-widget-container.hide-on-mobile {
        display: none !important;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {

    /* Touch-Friendly Button Sizes */
    .aura-fab {
        min-width: 50px !important;
        min-height: 50px !important;
    }

    /* Touch-Friendly Tap Targets */
    .aura-fab-tooltip {
        padding: 8px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0.1px !important;
        min-width: 100px !important;
    }

    /* Touch-Friendly Chat Button */
    .aura-start-chat-btn {
        min-height: 48px !important;
        padding: 14px 20px !important;
    }
}

/* Mobile-Specific Icon Centering Fix */
@media (max-width: 768px) {

    /* Ensure Perfect Icon Centering on Mobile */
    .aura-fab-icon-chat,
    .aura-fab-icon-close {
        position: absolute !important;
        top: 50% !important;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* Mobile-Specific Styles Fix */
@media (max-width: 768px) {

    /* Fix Style Borders on Mobile */
    .aura-fab.style-7,
    .aura-fab.style-8,
    .aura-fab.style-11,
    .aura-fab.style-12 {
        border: 3px solid !important;
    }
}

/* MOBILE BUTTON SCALING FIX - CRITICAL FOR INTERACTIVITY */
@media (max-width: 768px) {

    /* Mobile Active Effects - Allow Button Reduction */
    .aura-fab:active,
    .aura-fab.style-1:active,
    .aura-fab.style-2:active,
    .aura-fab.style-3:active,
    .aura-fab.style-4:active,
    .aura-fab.style-5:active,
    .aura-fab.style-6:active {
        transform: translateY(-2px) scale(0.98) !important;
    }

    /* Mobile Style 2 Specific Scaling */
    .aura-fab.style-2:active {
        transform: translateY(-1px) scale(0.98) !important;
    }


    /* Mobile Styles Scaling */
    .aura-fab.style-7:active,
    .aura-fab.style-8:active,
    .aura-fab.style-11:active,
    .aura-fab.style-12:active {
        transform: translateY(-1px) scale(0.98) !important;
    }

    /* Mobile Gold Styles Scaling */
    .aura-fab.style-9:active,
    .aura-fab.style-10:active {
        transform: translateY(-2px) scale(0.98) !important;
    }
}

/* Mobile Transition Optimization for Smooth Scaling */
@media (max-width: 768px) {

    /* Ensure Smooth Transitions on Mobile */
    .aura-fab,
    .aura-fab.style-1,
    .aura-fab.style-2,
    .aura-fab.style-3,
    .aura-fab.style-4,
    .aura-fab.style-5,
    .aura-fab.style-6 {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
}

/* Mobile Performance Optimization for Scaling */
@media (max-width: 768px) {

    /* Enable Hardware Acceleration for Smooth Scaling */
    .aura-fab,
    .aura-fab.style-1,
    .aura-fab.style-2,
    .aura-fab.style-3,
    .aura-fab.style-4,
    .aura-fab.style-5,
    .aura-fab.style-6 {
        will-change: transform, box-shadow !important;
        backface-visibility: hidden !important;
        transform-style: preserve-3d !important;
    }
}

/* Mobile Touch Feedback Enhancement */
@media (hover: none) and (pointer: coarse) {

    /* Enhanced Touch Feedback for Mobile */
    .aura-fab.style-3:active,
    .aura-fab.style-4:active,
    .aura-fab.style-5:active,
    .aura-fab.style-6:active {
        transform: scale(0.95) !important;
        transition: transform 0.15s ease !important;
    }
}

/* Mobile iOS Specific Scaling Optimization */
@supports (-webkit-touch-callout: none) {
    /* iOS Specific Scaling */
    @media (max-width: 768px) {

        .aura-fab:active {
            transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        }
    }
}

/* Mobile Android Specific Scaling Optimization */
@media not all and (min-resolution: 0.001dpcm) {
    @media (max-width: 768px) {

        /* Android Ripple Effect with Scaling */
        .aura-fab:active {
            transform: scale(0.95) !important;
            transition: transform 0.1s ease !important;
        }
    }
}

/* ========================================
   SVG ICON STYLES - FRONTEND
   ======================================== */

.aura-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.aura-fab.style-1 svg {
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* FAB Button Icons */
.aura-fab.style-1 svg.aura-fab-icon-chat,
.aura-fab.style-1 svg.aura-fab-icon-close,
.aura-fab.style-2 svg.aura-fab-icon-chat,
.aura-fab.style-2 svg.aura-fab-icon-close {
    color: white;
    fill: white;
}

.aura-fab svg.aura-fab-icon-chat {
    opacity: 1;
}

.aura-fab svg.aura-fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(90deg);
}

.aura-fab.active svg.aura-fab-icon-chat {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
}

.aura-fab.active svg.aura-fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Chat Header Icons */
.aura-avatar-placeholder .aura-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.aura-close-btn .aura-icon {
    width: 14px;
    height: 14px;
}

/* Offline Mode Icons */
.aura-offline-icon .aura-icon {
    width: 24px;
    height: 24px;
    color: #fbbf24;
}

.aura-offline-hours .aura-icon {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

/* Chat Button Icons */
.aura-start-chat-btn .aura-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}