@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* DEFAULT THEME: Premium White, Yellow & Orange mix */
    --bg-dark: #ffffff;
    --bg-card: #fbfbf8;
    --bg-card-hover: #fffbeb;
    --primary: #f97316; /* Bright Orange */
    --primary-rgb: 249, 115, 22;
    --secondary: #eab308; /* Golden Yellow */
    --secondary-rgb: 234, 179, 8;
    --accent: #ea580c; /* Deep Orange */
    --text-primary: #0f172a; /* Slate Charcoal */
    --text-secondary: #4b5563; /* Medium Slate */
    --text-muted: #6b7280;
    --border: #fef08a; /* Soft Yellow border */
    --border-hover: #fdba74; /* Warm Orange border */
    --glow-green: rgba(249, 115, 22, 0.08); /* Orange glow */
    --glow-cyan: rgba(234, 179, 8, 0.08); /* Yellow glow */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body.dark-mode {
    /* DARK MODE: Obsidian warm orange-yellow theme */
    --bg-dark: #0f0b07; /* Charcoal with warm tint */
    --bg-card: #18130e; /* Deep warm brown-black */
    --bg-card-hover: #221a12;
    --text-primary: #fffbeb; /* Warm cream text */
    --text-secondary: #fed7aa; /* Amber cream */
    --text-muted: #a1a1aa;
    --border: rgba(254, 240, 138, 0.08);
    --border-hover: rgba(253, 186, 116, 0.35);
    --glow-green: rgba(249, 115, 22, 0.15);
    --glow-cyan: rgba(234, 179, 8, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #fed7aa; /* soft orange thumb */
    border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #2e251b;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode h1 {
    background: linear-gradient(to right, #fef08a 0%, #fdba74 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2, h3 {
    color: var(--text-primary);
}

.section-header h2 {
    background: linear-gradient(135deg, #ea580c, #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode .section-header h2 {
    background: linear-gradient(135deg, #fef08a, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Effects */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-green) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
body.dark-mode .glow-bg {
    background: radial-gradient(circle, var(--glow-green) 0%, rgba(15, 11, 7, 0) 70%);
}
.glow-bg-cyan {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-cyan) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
body.dark-mode .glow-bg-cyan {
    background: radial-gradient(circle, var(--glow-cyan) 0%, rgba(15, 11, 7, 0) 70%);
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}
body.dark-mode .glass-panel {
    background: rgba(24, 19, 14, 0.45);
}
.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.12), 0 0 20px 0 var(--glow-green);
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}
body.dark-mode header {
    background: rgba(15, 11, 7, 0.8);
    border-bottom: 1px solid var(--border);
}
header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(249, 115, 22, 0.03);
}
body.dark-mode header.scrolled {
    background: rgba(15, 11, 7, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.logo:hover img {
    transform: scale(1.03);
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.btn-cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 0;
}
body.dark-mode .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
}
.theme-toggle-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow-green);
    transform: scale(1.05);
}
body.dark-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-canvas-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.badge {
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.18);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--text-secondary);
}
body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.03);
}
body.dark-mode .feature-card {
    background: rgba(24, 19, 14, 0.45);
    box-shadow: none;
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.feature-card p {
    color: var(--text-secondary);
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
body.dark-mode .filter-btn {
    background: rgba(255, 255, 255, 0.03);
}
.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Products Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(249, 115, 22, 0.15), 0 0 25px 0 var(--glow-green);
}
.product-image-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
body.dark-mode .product-image-container {
    background: radial-gradient(circle, rgba(46, 37, 27, 0.5) 0%, rgba(15, 11, 7, 0.85) 100%);
}
.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 10px 15px rgba(249, 115, 22, 0.05));
}
body.dark-mode .product-img {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}
.product-card:hover .product-img {
    transform: translateZ(30px) scale(1.08);
}
.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.composition-tag {
    font-size: 0.8rem;
    background: rgba(249, 115, 22, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.btn-view {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-view:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 160px 0 100px 0;
    min-height: 100vh;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-detail-visuals {
    position: sticky;
    top: 120px;
}
.product-detail-img-box {
    width: 100%;
    height: 480px;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 0 15px 30px -10px rgba(249, 115, 22, 0.08);
}
body.dark-mode .product-detail-img-box {
    background: radial-gradient(circle, rgba(46, 37, 27, 0.6) 0%, rgba(15, 11, 7, 0.9) 100%);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}
.product-detail-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(249, 115, 22, 0.05));
}
body.dark-mode .product-detail-img-box img {
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}
.product-detail-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-detail-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}
.specs-row {
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 16px 0;
}
.specs-label {
    width: 150px;
    font-weight: 600;
    color: var(--primary);
}
.specs-val {
    flex-grow: 1;
    color: var(--text-primary);
}
.btn-whatsapp-inquiry {
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: #20ba5a;
}

/* About Page & Layout */
.about-hero {
    padding: 160px 0 80px 0;
    text-align: center;
}
.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 179, 8, 0.08));
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Search Bar (Products Page) */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
}
.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 16px 28px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
body.dark-mode .search-input {
    background: rgba(15, 11, 7, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border);
    background: #0f1015;
    padding: 80px 0 30px 0;
    color: #94a3b8;
}
body.dark-mode footer {
    background: #05060b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.footer-brand h3 span {
    color: var(--primary);
}
.footer-brand p {
    max-width: 320px;
    margin-bottom: 24px;
}
.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-canvas-container {
        display: none;
    }
    .hero {
        padding-top: 120px;
        min-height: auto;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .product-detail-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-detail-visuals {
        position: relative;
        top: 0;
    }
    .product-detail-img-box {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        z-index: 99;
    }
    .nav-links.active {
        display: flex !important;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-buttons .btn-cta, .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Admin panel mobile layout */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL, WHATSAPP, AI CHAT) & CHATBOT PANEL
   ========================================================================== */

/* Floating Actions Container */
.floating-actions-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column; /* Stacked vertically as requested */
    gap: 12px;
    z-index: 9998;
    align-items: center;
}

/* Base Floating Action Button (FAB) */
.fab-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.fab-btn svg {
    transition: transform 0.3s ease;
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.fab-btn:hover svg {
    transform: scale(1.05);
}

/* Call Button - Solid Blue matching user image */
.fab-call {
    background: #007aff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35);
    animation: pulse-call 2s infinite;
}
.fab-call:hover {
    background: #0062cc;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

/* WhatsApp Button - Solid Green matching user image */
.fab-whatsapp {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    animation: pulse-whatsapp 2s infinite 0.6s;
}
.fab-whatsapp:hover {
    background: #1ebea5;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* AI Assistant Button - Solid Magenta/Pink matching user image */
.fab-ai {
    background: #ec4899;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
    animation: pulse-ai 2s infinite 1.2s;
}
.fab-ai:hover {
    background: #db2777;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

/* Staggered Pulsing Keyframe Animations */
@keyframes pulse-call {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulse-ai {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* Tooltip implementation (Desktop only) - Slides left */
@media (min-width: 769px) {
    .fab-btn::after {
        content: attr(title);
        position: absolute;
        right: 65px; /* Align to the left of the button */
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.72rem;
        font-weight: 500;
        font-family: var(--font-body);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    .fab-btn:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* AI Chat Container Widget */
#ai-chat-container {
    position: fixed;
    bottom: 24px;
    right: 90px; /* Opens directly to the left of the vertical stack */
    width: 360px;
    height: 500px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

#ai-chat-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chat Header styling */
.ai-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-logo-container {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-header-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.ai-chat-status {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.ai-chat-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ai-chat-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.ai-chat-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Chat Messages Container */
.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-card-hover);
    scroll-behavior: smooth;
}

/* Scrollbar styling for chat container */
.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 3px;
}
.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Message Bubble styling */
.ai-msg {
    align-self: flex-start;
    max-width: 85%;
    background: var(--border);
    border-radius: 14px;
    border-top-left-radius: 2px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    animation: msg-slide-up 0.3s ease;
}

.user-msg {
    align-self: flex-end;
    max-width: 85%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-radius: 14px;
    border-top-right-radius: 2px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
    animation: msg-slide-up 0.3s ease;
}

@keyframes msg-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.dark-mode .ai-msg {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Quick Replies chips styling */
.quick-replies-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.ai-chat-quick-reply {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: left;
    font-size: 0.76rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

body.dark-mode .ai-chat-quick-reply {
    background: rgba(24, 19, 14, 0.4);
    color: var(--text-secondary);
}

.ai-chat-quick-reply:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
    color: var(--primary);
    transform: translateX(3px);
}

/* Chat Input styling */
.ai-chat-input-area {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.ai-chat-input-field {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.ai-chat-input-field:focus {
    border-color: var(--primary);
}

.ai-chat-send-btn {
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ai-chat-send-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ai-chat-send-btn:active {
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
    .floating-actions-group {
        bottom: 16px;
        right: 16px;
        flex-direction: row-reverse; /* Switch to horizontal on mobile to save vertical space */
        gap: 10px;
    }
    .fab-btn {
        width: 46px;
        height: 46px;
    }
    #ai-chat-container {
        bottom: 80px; /* Sits cleanly above horizontal buttons on tablet/mobile */
        right: 16px;
        width: 320px;
        height: 440px;
    }
}

@media (max-width: 480px) {
    #ai-chat-container {
        width: calc(100% - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 80px !important;
    }
}

