/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-lighter: #f5f3ff;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --info-color: #3b82f6;
    --info-light: #dbeafe;

    /* Grays / Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --dark-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
    --call-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Original Light Purpleish Font Color */
    --text-light-purple: #e9d5ff;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Improve scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Prevent horizontal overflow */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Scroll margin for anchor links to account for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 70px; /* Slightly less on mobile */
    }
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    /* Ensure body is centered and contained */
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    /* Improve touch targets on mobile */
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.2);
    tap-highlight-color: rgba(139, 92, 246, 0.2);
    /* Remove touch delay on mobile */
    touch-action: manipulation;
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent zoom on input focus (iOS) */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure containers don't overflow - EXCLUDE nav-menu which needs fixed positioning */
    .container, section, main, header, footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Center all sections properly */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}

/* =========================================
   2. COMPONENTS
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--gray-50);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Call & WhatsApp Buttons */
.btn-call {
    background: var(--call-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-call::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.btn-call:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-whatsapp-inline {
    background: var(--whatsapp-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    white-space: nowrap;
}

.btn-whatsapp-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pro {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
}

.badge-free {
    background: var(--success-light);
    color: var(--success-color);
}

/* Text Gradients */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-icon-wrapper {
    width: 40px;
    height: 40px;
}

.logo-icon-wrapper.small {
    width: 32px;
    height: 32px;
}

/* Ensure logo icons are white in header and footer for contrast */
.header .zentix-logo-icon,
.footer .zentix-logo-icon {
    color: #ffffff;
    fill: #ffffff;
}

.header .logo-icon-wrapper,
.footer .logo-icon-wrapper {
    color: #ffffff;
}

.logo-text {
    letter-spacing: -0.02em;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo-accent {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    pointer-events: none;
}

/* Language Toggle - Moved to top-right to avoid widget overlap */
.lang-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 3px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
}

.lang-btn {
    padding: 0.35rem 0.65rem;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
}

.lang-btn:hover {
    background: var(--gray-100);
}

.lang-btn.active {
    background: var(--gray-900);
    color: var(--white);
}

/* Responsive adjustments for language toggle */
@media (max-width: 768px) {
    .lang-toggle {
        top: 0.75rem;
        right: 0.75rem;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.7rem;
        min-width: 32px;
    }
}

@media (max-width: 480px) {
    .lang-toggle {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        min-width: 30px;
    }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-phone-demo {
    padding: 8rem 0 4rem;
    background: var(--dark-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 { 
    width: 400px; 
    height: 400px; 
    background: #7c3aed; 
    top: -100px; 
    right: -100px; 
}
.hero-orb-2 { 
    width: 300px; 
    height: 300px; 
    background: #ec4899; 
    bottom: -50px; 
    left: -50px; 
}

/* Hero Decorative Images */
.hero-decorative-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.hero-img-1,
.hero-img-2,
.hero-img-3 {
    position: absolute;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.1);
    animation: float-image 20s ease-in-out infinite;
    opacity: 0.7;
    z-index: 1;
    transition: all 0.5s ease;
}

.hero-img-1 {
    width: 450px;
    height: 450px;
    top: 10%;
    right: 5%;
    border-radius: 30px;
    animation-delay: 0s;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.hero-img-2 {
    width: 400px;
    height: 400px;
    bottom: 15%;
    left: 8%;
    border-radius: 30px;
    animation-delay: 5s;
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.3);
}

.hero-img-3 {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    border-radius: 30px;
    animation: float-image-center 18s ease-in-out infinite;
    animation-delay: 10s;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    opacity: 0.65;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0) scale(1.1) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) scale(1.15) rotate(5deg);
    }
}

@keyframes float-image-center {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -60%) scale(1.15) rotate(-5deg);
    }
}

@media (max-width: 768px) {
    .hero-img-1,
    .hero-img-2,
    .hero-img-3 {
        width: 250px;
        height: 250px;
        opacity: 0.5;
        filter: blur(5px);
    }
    
    .hero-img-1 {
        top: 5%;
        right: -5%;
    }
    
    .hero-img-2 {
        bottom: 10%;
        left: -5%;
    }
    
    .hero-img-3 {
        display: none; /* Hide on mobile to avoid clutter */
    }
}

/* Reduce orb sizes on mobile to prevent overflow */
@media (max-width: 768px) {
    .hero-orb-1 { 
        width: 200px; 
        height: 200px; 
        right: -50px; 
        top: -50px;
    }
    .hero-orb-2 { 
        width: 150px; 
        height: 150px; 
        left: -30px; 
        bottom: -30px;
    }
}

.hero-content-top {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Scroll Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(236, 72, 153, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll-triggered animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Parallax effect */
.parallax-slow {
    transition: transform 0.3s ease-out;
}

.parallax-medium {
    transition: transform 0.2s ease-out;
}

.parallax-fast {
    transition: transform 0.1s ease-out;
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Gradient animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Particle effects */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-200px) translateX(-30px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-100px) translateX(-50px);
        opacity: 0.5;
    }
}

/* Magnetic effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #e9d5ff;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light-purple);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        animation: fadeInUp 0.8s ease-out 0.1s both;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-purple);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.15rem);
        padding: 0 1rem;
    }
}

/* Phone Demo Card */
.phone-demo-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
}

.phone-demo-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 70px -10px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.phone-demo-content {
    flex: 1;
    min-width: 300px;
}

.phone-demo-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.phone-demo-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light-purple);
}

.phone-demo-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-purple);
    margin-bottom: 2rem;
}

.text-gradient-phone {
    background: linear-gradient(to right, #4ade80, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.phone-number-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.phone-number-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 1px;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light-purple);
    font-family: monospace;
}

.phone-demo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-hint {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.demo-modes {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-mode {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    background: rgba(139, 92, 246, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light-purple);
}

.mode-info p {
    font-size: 0.85rem;
    color: var(--text-light-purple);
}

.phone-demo-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.phone-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light-purple);
    flex: 1;
    min-width: 140px;
}

.phone-feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.phone-feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-feature-content span {
    font-weight: 600;
    color: var(--text-light-purple);
    font-size: 0.95rem;
}

.phone-feature-content small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.whatsapp-cta-inline {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-content-inline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(37, 211, 102, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-icon-inline {
    font-size: 2rem;
    color: #25D366;
    flex-shrink: 0;
}

.whatsapp-text-inline {
    flex: 1;
    min-width: 0;
}

.whatsapp-text-inline h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light-purple);
    line-height: 1.3;
}

.whatsapp-text-inline p {
    font-size: 0.9rem;
    color: var(--text-light-purple);
    margin: 0;
    line-height: 1.4;
}

.btn-whatsapp-inline {
    flex-shrink: 0;
}

/* Mobile Responsive WhatsApp CTA */
@media (max-width: 768px) {
    .whatsapp-content-inline {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .whatsapp-icon-inline {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .whatsapp-text-inline {
        margin-bottom: 0.75rem;
    }
    
    .whatsapp-text-inline h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .whatsapp-text-inline p {
        font-size: 0.85rem;
    }
    
    .btn-whatsapp-inline {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-cta-inline {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .whatsapp-content-inline {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .whatsapp-icon-inline {
        font-size: 2.25rem;
    }
    
    .whatsapp-text-inline h4 {
        font-size: 0.95rem;
    }
    
    .whatsapp-text-inline p {
        font-size: 0.8rem;
    }
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 50px;
    border: 12px solid #2a2a2a;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.call-interface {
    text-align: center;
    color: white;
    width: 100%;
    padding: 2rem;
}

.caller-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.pulse-call {
    animation: pulse-ring-shadow 2s infinite;
}

@keyframes pulse-ring-shadow {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.call-interface h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.call-status {
    color: var(--gray-400);
    margin-bottom: 3rem;
}

.call-wave span {
    display: inline-block;
    width: 6px;
    height: 20px;
    background: var(--success-color);
    margin: 0 3px;
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% { height: 10px; opacity: 0.5; }
    50% { height: 40px; opacity: 1; }
}

/* Hero Stats */
.hero-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 200px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light-purple);
}

/* =========================================
   5. FEATURE SECTIONS
   ========================================= */
.features, .agent-types, .pricing, .demo, .voices-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Agent Types */
.agent-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.agent-type-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

.agent-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.agent-type-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.agent-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}

.agent-features i {
    color: var(--success-color);
}

/* Voice Personas Section (New Styles) */
.voice-personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.voice-persona-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.voice-persona-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.persona-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.persona-avatar.sofia { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.persona-avatar.carlos { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.persona-avatar.luna { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.persona-avatar.marco { background: linear-gradient(135deg, #10B981, #34D399); }
.persona-avatar.isabella { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.persona-avatar.diego { background: linear-gradient(135deg, #3B82F6, #60A5FA); }

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.05);
    z-index: -1;
}

.voice-persona-card:hover .avatar-ring {
    border-color: var(--primary-color);
    animation: pulse-border 2s infinite;
}

.persona-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.persona-role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.persona-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.persona-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.persona-traits span {
    font-size: 0.75rem;
    background: var(--gray-50);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
}

.persona-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-latency {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-play-voice {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.btn-play-voice:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Features Section Background Image */
.features-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.features-decorative-img {
    position: absolute;
    width: 650px;
    height: 650px;
    object-fit: cover;
    top: 50%;
    right: -80px;
    transform: translateY(-50%) rotate(-15deg);
    filter: blur(10px);
    border-radius: 30px;
    animation: float-features 25s ease-in-out infinite;
    opacity: 0.6;
    z-index: 1;
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.25);
}

@keyframes float-features {
    0%, 100% {
        transform: translateY(-50%) rotate(-15deg) scale(1);
    }
    50% {
        transform: translateY(-60%) rotate(-10deg) scale(1.1);
    }
}

@media (max-width: 768px) {
    .features-decorative-img {
        width: 350px;
        height: 350px;
        right: -40px;
        opacity: 0.4;
        filter: blur(6px);
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Agent Types Background Image */
.agent-types-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.agent-types-decorative-img {
    position: absolute;
    width: 550px;
    height: 550px;
    object-fit: cover;
    top: 20%;
    left: -60px;
    transform: rotate(20deg);
    filter: blur(10px);
    border-radius: 30px;
    animation: float-agent-types 30s ease-in-out infinite;
    opacity: 0.65;
    z-index: 1;
    box-shadow: 0 25px 70px rgba(236, 72, 153, 0.25);
}

@keyframes float-agent-types {
    0%, 100% {
        transform: rotate(20deg) scale(1);
    }
    50% {
        transform: rotate(25deg) scale(1.15);
    }
}

@media (max-width: 768px) {
    .agent-types-decorative-img {
        width: 300px;
        height: 300px;
        left: -30px;
        opacity: 0.4;
        filter: blur(6px);
    }
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =========================================
   6. DASHBOARD & LAYOUT
   ========================================= */
.dashboard-body {
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f4f6 50%, #fdf2f8 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Mobile Dashboard Header */
.mobile-dashboard-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 99;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-dashboard-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-dashboard-header .logo-icon-wrapper {
    width: 32px;
    height: 32px;
}

.mobile-dashboard-header .logo-text {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .mobile-dashboard-header {
        display: flex;
    }
    
    .dashboard-body .main-content {
        padding-top: 80px; /* Account for mobile header */
    }
}

/* Dashboard Welcome Banner */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #6366F1 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.dashboard-welcome-banner h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-welcome-banner p {
    opacity: 0.9;
    font-size: 1rem;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    transition: var(--transition-base);
}

.nav-item:hover, .nav-item.active {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.nav-item.active {
    font-weight: 600;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
    top: 0;
    align-items: flex-start;
}

/* Content Sections - Base (will be overridden by consolidated version) */
.content-section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.stat-primary:hover {
    box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.25);
}

.stat-card.stat-success:hover {
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.25);
}

.stat-card.stat-warning:hover {
    box-shadow: 0 12px 24px -8px rgba(245, 158, 11, 0.25);
}

.stat-card.stat-info:hover {
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.25);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-trend.up { color: var(--success-color); }
.stat-trend.down { color: var(--danger-color); }

/* Dashboard Main Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Dashboard Section Header */
.dashboard-body .section-header {
    text-align: left;
    max-width: 100%;
    margin: 0 0 2rem 0;
}

.dashboard-body .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.dashboard-body .section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

.section-header-left {
    flex: 1;
}

.section-header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Stat Card Styles */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stat-card.stat-primary .stat-icon {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
}

.stat-card.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-card.stat-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: auto;
}

.stat-trend.up {
    color: var(--success-color);
}

.stat-trend.down {
    color: var(--danger-color);
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin: -8px;
    margin-left: auto;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Sidebar Collapse Button (Desktop) */
.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    transition: all 0.3s ease;
    color: var(--gray-600);
    font-size: 0.75rem;
}

.sidebar-collapse-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.sidebar.collapsed .sidebar-collapse-btn {
    transform: translateY(-50%) rotate(180deg);
}

/* Auto-hide sidebar on desktop */
.sidebar.auto-hide {
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s ease, 
                opacity 0.3s ease;
}

.sidebar.auto-hide:hover,
.sidebar.auto-hide.show {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar trigger - Always visible tiny tab on desktop */
.sidebar-trigger {
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    z-index: 101;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden on mobile, shown on desktop via JS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Show on desktop only */
@media (min-width: 769px) {
    .sidebar.auto-hide ~ .sidebar-trigger {
        display: block;
    }
}

.sidebar-trigger::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    background: -webkit-linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    background: -moz-linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    border-radius: 0 4px 4px 0;
    opacity: 0.4;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(139, 92, 246, 0.2);
    -webkit-box-shadow: 2px 0 8px rgba(139, 92, 246, 0.2);
}

.sidebar-trigger:hover {
    width: 12px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
    background: -webkit-linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
    background: -moz-linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
}

.sidebar-trigger:hover::before {
    opacity: 1;
    width: 6px;
    height: 80px;
    box-shadow: 2px 0 12px rgba(139, 92, 246, 0.4);
    -webkit-box-shadow: 2px 0 12px rgba(139, 92, 246, 0.4);
}

/* Main content adjustment when sidebar is auto-hidden */
.sidebar.auto-hide ~ .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.sidebar.auto-hide:hover ~ .main-content,
.sidebar.auto-hide.show ~ .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
}

/* Auto-hide toggle button */
.auto-hide-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auto-hide-toggle:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.auto-hide-toggle.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.auto-hide-toggle i {
    font-size: 0.875rem;
}

/* Collapsed Sidebar State */
.sidebar {
    position: relative;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .user-info {
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 0.75rem;
}

.sidebar.collapsed .sidebar-nav {
    padding: 1rem 0.75rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
    position: relative;
}

.sidebar.collapsed .nav-icon {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar.collapsed .nav-item:hover .nav-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.sidebar.collapsed .nav-item.active .nav-icon {
    background: var(--primary-color);
    color: white;
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
}

.sidebar.collapsed .auto-hide-toggle {
    padding: 0.5rem;
    margin: 0.5rem auto;
    justify-content: center;
}

.sidebar.collapsed .auto-hide-toggle .nav-text {
    display: none;
}

/* Hover tooltip for collapsed sidebar nav items */
.sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-900);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed .nav-item::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--gray-900);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.sidebar.collapsed .nav-item:hover::after,
.sidebar.collapsed .nav-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Adjust main content for collapsed sidebar */
.main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-content {
    margin-left: 72px;
    width: calc(100% - 72px);
    max-width: calc(100% - 72px);
}

/* Nav Item Styles */
.nav-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.nav-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

/* Language Toggle in Sidebar */
.lang-toggle-sidebar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    justify-content: center;
}

.lang-btn-sidebar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.lang-btn-sidebar:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.lang-btn-sidebar.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.lang-btn-sidebar i {
    font-size: 0.875rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Link */
.card-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.card-link.icon-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.card-link.icon-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-icon-bg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-400);
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.spinner-container {
    margin-bottom: 1rem;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: var(--gray-100);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.9375rem;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Recent Leads List */
.recent-leads-list {
    min-height: 200px;
}

/* Settings Container */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
    margin-bottom: 2rem;
}

.settings-tab {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: -2px;
}

.settings-tab:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.settings-content {
    position: relative;
}

.settings-panel {
    display: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: none;
    border: none;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.settings-panel.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

/* Enhanced settings panel for pro look */
.settings-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.settings-tabs {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.settings-tab {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.875rem;
    white-space: nowrap;
    text-align: center;
}

.settings-tab:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
    background: var(--white);
}

.settings-content {
    padding: 1.5rem;
    min-height: 400px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure settings section doesn't overflow */
#settings-section {
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 3rem;
}

#settings-section .section-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

#settings-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

#settings-section .section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

#settings-section .settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tutorial Section Alignment */
#tutorial-section .section-header {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 100%;
}

#tutorial-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

#tutorial-section .section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

/* Knowledge Base Section Alignment */
#knowledge-base-section .section-header {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 100%;
}

#knowledge-base-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

#knowledge-base-section .section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.settings-form .form-group input {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.settings-form .form-group input:disabled {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Plan Selector */
.plan-selector {
    margin-bottom: 2rem;
}

.plan-selector h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.plan-option {
    position: relative;
    cursor: pointer;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option-content {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all 0.2s ease;
}

.plan-option input[type="radio"]:checked + .plan-option-content {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.plan-option-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.plan-option-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* API Key Section */
.api-key-section {
    margin-top: 2rem;
}

.api-key-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.api-hint {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.info-box p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-left: 0.75rem;
}

.api-status.status-success {
    color: var(--success-color);
}

.api-status.status-error {
    color: var(--danger-color);
}

/* Billing Info */
.billing-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.plan-card.current {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-600);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1rem 0 0.5rem 0;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Leads Section */
.lead-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.lead-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.lead-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lead-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.lead-stat-icon.new {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.lead-stat-icon.contacted {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.lead-stat-icon.qualified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.lead-stat-icon.converted {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
}

.lead-stat-info {
    flex: 1;
    min-width: 0;
}

.lead-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.lead-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* Leads Filters */
.leads-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-search {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    transition: all 0.2s ease;
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-search::placeholder {
    color: var(--gray-400);
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Leads Table */
.leads-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.leads-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leads-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.leads-table tbody tr:hover {
    background: var(--gray-50);
}

.leads-table tbody tr.empty-row {
    border-bottom: none;
}

.leads-table tbody tr.empty-row:hover {
    background: transparent;
}

.leads-table td {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-900);
}

.empty-state.large {
    padding: 4rem 2rem;
}

.empty-state.large .empty-icon-bg.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.empty-state.large h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state.large p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-card.full-width {
        grid-column: span 2;
    }
    
    .lead-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
    
    .lead-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leads-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .lead-stats-row {
        grid-template-columns: 1fr;
    }
    
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .settings-tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .phone-demo-content-card {
        gap: 1rem;
    }
    
    .phone-demo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .phone-demo-info h4 {
        font-size: 1.125rem;
    }
    
    .phone-demo-info p {
        font-size: 0.875rem;
    }
    
    .phone-number-card {
        font-size: 1.25rem;
    }
    
    .btn-call-demo {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    
    /* Hide collapse button on mobile - use hamburger instead */
    .sidebar-collapse-btn {
        display: none !important;
    }
    
    /* Hide auto-hide toggle on mobile */
    .auto-hide-toggle {
        display: none !important;
    }
    
    /* Reset collapsed state on mobile */
    .sidebar.collapsed {
        width: 280px;
    }
    
    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .nav-badge,
    .sidebar.collapsed .user-info {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar.collapsed .sidebar-header {
        justify-content: flex-start;
        padding: 0 1.5rem;
    }
    
    .sidebar.collapsed .sidebar-nav {
        padding: 1.5rem;
    }
    
    .sidebar.collapsed .nav-item {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .sidebar.collapsed .nav-item::after,
    .sidebar.collapsed .nav-item::before {
        display: none;
    }
    
    .sidebar.open,
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    /* Overlay when sidebar is open */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Reset main content width when sidebar is collapsed on mobile */
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Settings responsive fixes */
    .settings-container {
        border-radius: var(--radius-md);
    }
    
    .settings-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .settings-tab {
        min-width: 80px;
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }
    
    .settings-content {
        padding: 1rem;
    }
    
    .settings-panel {
        padding: 1rem;
    }
    
    .training-section .form-group textarea {
        min-height: 100px;
    }
    
    .dashboard-card.full-width {
        grid-column: span 1;
    }
    
    .section-header-right {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================
   7. MODALS
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

/* Agent Creation Modal */
.agent-creation-modal {
    max-width: 700px !important;
    padding: 0 !important;
}

.agent-creation-modal .modal-body {
    padding: 1.5rem;
}

.agent-type-chip {
    border: 2px solid var(--gray-200) !important;
    background: transparent;
    transition: all 0.2s ease !important;
}

.agent-type-chip:hover {
    border-color: var(--gray-300) !important;
    background: var(--gray-50);
}

.agent-type-chip.active {
    border-color: var(--primary-color) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

.agent-type-chip.active i {
    transform: scale(1.1);
}

.wizard-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.wizard-section:last-of-type {
    border-bottom: none;
}

/* Modal responsive */
@media (max-width: 768px) {
    .agent-creation-modal {
        width: 95% !important;
        max-height: 85vh !important;
        margin: 1rem;
    }
    
    .agent-creation-modal .modal-body {
        padding: 1rem;
    }
    
    .agent-type-chip {
        padding: 0.5rem !important;
    }
    
    .agent-type-chip span {
        font-size: 0.7rem !important;
    }
    
    .wizard-section .form-group {
        margin-bottom: 1rem;
    }
    
    .wizard-section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .wizard-section div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s ease;
    padding: 0.25rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 0;
}

/* Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid #EF4444;
    color: #DC2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-error::before {
    content: '⚠';
    font-size: 1.125rem;
}

.auth-form .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    transition: all 0.2s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Auth Required Overlay Styles */
.auth-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(8px);
}

.auth-required-overlay.active {
    display: flex;
}

.auth-required-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.auth-required-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.auth-required-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.auth-required-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.auth-required-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-required-actions .btn {
    min-width: 150px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-home:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .auth-required-content {
        padding: 2rem 1.5rem;
    }
    
    .auth-required-content h2 {
        font-size: 1.5rem;
    }
    
    .auth-required-actions {
        flex-direction: column;
    }
    
    .auth-required-actions .btn {
        width: 100%;
    }
}

.auth-form .form-group input::placeholder {
    color: var(--gray-400);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    background: var(--white);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.auth-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    color: var(--white) !important;
}

/* =========================================
   AGENT TRAINING SECTION STYLES
   ========================================= */
.form-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
}

.form-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
}

.form-section h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.training-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.training-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.training-info-banner i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.training-info-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.form-section .form-group {
    margin-bottom: 1.25rem;
}

.form-section .form-group:last-child {
    margin-bottom: 0;
}

.form-section .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-section .form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-section textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    resize: vertical;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-section textarea::placeholder {
    color: var(--gray-400);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-label span:last-child {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    color: var(--gray-900);
}

.btn-outline i {
    font-size: 1.125rem;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-link {
    display: block;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray-500);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal .footer-link {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   9. DASHBOARD UI IMPROVEMENTS (v2)
   ========================================= */

/* Dashboard Cards - Enhanced */
.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card.full-width {
    grid-column: span 3;
}

/* Phone Demo Card Special Styling */
.dashboard-card.phone-demo-card {
    background: linear-gradient(135deg, #f8f5ff 0%, #fdf2f8 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.dashboard-card.phone-demo-card .card-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.dashboard-card.phone-demo-card .card-header h3 {
    color: var(--gray-800);
}

.dashboard-card.phone-demo-card:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Phone Demo Card in Dashboard - Additional Styles */
.phone-demo-card .phone-number-display-card {
    background: white;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.phone-demo-card .demo-note {
    color: var(--gray-600);
}

.phone-demo-content-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.phone-demo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
}

.phone-demo-info {
    text-align: center;
}

.phone-demo-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.text-gradient-phone {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phone-demo-info p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.phone-number-display-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.phone-label-card {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phone-number-card {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.phone-demo-actions-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-call-demo {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-call-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.demo-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Quick Actions - Modern Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
    color: var(--gray-700);
    text-decoration: none;
    height: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

.quick-action-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom right, #fff, #f5f3ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.action-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.quick-action-btn:hover .action-icon-bg {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-icon-bg {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

/* Deployed Agents List */
.deployed-agents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deployed-agent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.2s ease;
}

.deployed-agent-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
}

.agent-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* Agent Item Styles */
.agent-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.2s ease;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.agent-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.agent-item .agent-info {
    flex: 1;
    min-width: 0;
}

.agent-item .agent-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-item .agent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.agent-item .agent-actions button {
    white-space: nowrap;
    min-width: 120px;
}

/* No Agents Message */
.no-agents-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}

.no-agents-message p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.no-agents-message p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Agent Creation Options */
.agent-creation-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.create-agent-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}

.spinner-container {
    margin-bottom: 1rem;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Link and Icon Button */
.card-link {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #EC4899);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

/* Recent Leads List */
.recent-leads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Voice Agents Section */
.voice-agents-container {
    max-width: 1200px;
    margin: 0 auto;
}

.voice-agents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.voice-agents-header .header-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.voice-agents-header .header-info p {
    margin: 0;
    color: var(--gray-600);
}

.voice-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Web Agent Cards */
.web-agent-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.web-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

/* Agent Training Preview Styles */
.agent-training-preview {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-bottom: 1px solid var(--gray-100);
}

.training-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.training-status.trained {
    color: #10B981;
}

.training-status.trained i {
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem;
    border-radius: 4px;
}

.training-status.untrained {
    color: #F59E0B;
}

.training-status.untrained i {
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem;
    border-radius: 4px;
}

.training-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.training-detail:last-child {
    margin-bottom: 0;
}

.training-detail i {
    color: var(--primary-color);
    width: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.training-label {
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}

.training-value {
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-status .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.inactive {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.agent-card-body {
    padding: 1.25rem;
}

.agent-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.agent-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.agent-stats .stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.agent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent-actions .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Edit Agent Modal Styles */
#edit-agent-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#edit-agent-modal .form-group {
    margin-bottom: 1.25rem;
}

#edit-agent-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

#edit-agent-modal .form-group input,
#edit-agent-modal .form-group select,
#edit-agent-modal .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#edit-agent-modal .form-group input:focus,
#edit-agent-modal .form-group select:focus,
#edit-agent-modal .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#edit-agent-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Training Methods Styles */
.training-methods {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.training-method-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray-200);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.training-method-btn:hover {
    border-color: var(--primary-lighter);
    background: rgba(139, 92, 246, 0.05);
}

.training-method-btn.active {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
}

.training-content {
    display: none;
}

.training-content.active {
    display: block;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scrape Results */
#scrape-results textarea,
#file-content-preview textarea {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Training Methods */
@media (max-width: 768px) {
    .training-methods {
        flex-direction: column;
    }
    
    .training-method-btn {
        justify-content: center;
    }
}

.empty-voice-agents {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-lighter), #FCE7F3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
}

.empty-voice-agents h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.empty-voice-agents p {
    margin: 0 0 2rem 0;
    color: var(--gray-600);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.chatbot-redirect {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.chatbot-redirect p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Analytics Section */
.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.analytics-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.analytics-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.analytics-trend.up {
    color: #10B981;
}

.analytics-trend.down {
    color: #EF4444;
}

.analytics-chart-container {
    margin-top: 2rem;
}

.analytics-chart-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analytics-chart-card h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.chart-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 8px;
    border: 2px dashed var(--gray-200);
}

.chart-placeholder p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Phone Integration Info */
.phone-integration-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #EC4899);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.info-content p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.deploy-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-lighter), #FCE7F3);
    border-radius: 12px;
    margin-top: 2rem;
}

.deploy-cta p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--gray-700);
}

/* Chatbot Redirect Card */
.chatbot-redirect-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.redirect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.redirect-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.redirect-text h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.redirect-text p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-600);
    max-width: 600px;
}

.redirect-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    text-align: left;
    max-width: 500px;
}

.redirect-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.redirect-features li i {
    color: #10B981;
    font-size: 1.1rem;
}

/* Button Large */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .voice-agents-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .voice-agents-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Web Agent Cards - MOVED TO UNIFIED SECTION (line ~7947) */
/* Keeping agent-info styles here for backwards compatibility */

.agent-info {
    flex: 1;
}

.agent-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.agent-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: #10B981;
    color: white;
}

.agent-card-body {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.agent-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.agent-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.agent-stats .stat-item i {
    color: var(--primary-color);
}

.agent-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.free-tier-info-card {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 2px solid #10B981;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    top: 0;
}

.free-tier-info-card .info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.free-tier-info-card .info-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--gray-900);
}

.free-tier-info-card .info-content p {
    margin: 0 0 1rem 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.free-tier-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-badge i {
    color: #10B981;
}

.btn-voice-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-voice-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   10. CTA SECTION
   ========================================= */
.cta-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-card.full-width {
        grid-column: span 2;
    }
    
    /* Tablet breakpoint (769px - 1024px) */
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100; /* Standardized z-index scale */
    }
    
    .nav-menu {
        display: none !important; /* Hidden by default */
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 0.75rem !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        z-index: 200 !important; /* Standardized z-index scale */
        border-top: 1px solid var(--gray-100) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu .nav-link {
        padding: 1rem 1.25rem !important;
        border-radius: var(--radius-md);
        font-size: 1.1rem !important;
        width: 100% !important;
        text-align: left !important;
        transition: all 0.2s ease;
        display: block !important;
        color: var(--gray-800) !important;
        background: var(--gray-50);
        min-height: 48px;
        line-height: 1.4;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: var(--primary-lighter) !important;
        color: var(--primary-color) !important;
    }
    
    .nav-menu .btn-primary,
    .nav-menu .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 300 !important; /* Above the nav menu - standardized z-index */
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .mobile-menu-toggle span {
        transition: all 0.3s ease;
        background: #ffffff !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: none; /* Toggle logic needed */
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.full-width {
        grid-column: span 1;
    }
    
    .voice-personas-grid {
        grid-template-columns: 1fr;
    }
    
    /* Landing page mobile improvements */
    .hero-phone-demo {
        padding: calc(5rem + 60px) 0 3rem; /* Add header height (60px) to prevent overlap */
        min-height: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Fix pricing cards for small screens */
    .pricing-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .phone-demo-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .phone-demo-left,
    .phone-demo-right {
        width: 100%;
        max-width: 100%;
    }
    
    .phone-mockup-wrapper {
        transform: scale(0.85);
        margin: -2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn-xl {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .capability-chips {
        justify-content: center;
    }
    
    .capability-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .suggestion-chips {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .suggestion-chip {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-phone-demo {
        padding: calc(4rem + 60px) 0 2rem; /* Add header height for fixed header */
    }
    
    /* Ensure pricing cards are single column on very small screens */
    .pricing-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .phone-mockup-wrapper {
        transform: scale(0.75);
        margin: -3rem 0;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .btn-call-demo {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .voice-demo-modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* =========================================
   11. INTERACTIVE DEMO SECTION
   ========================================= */
.demo-showcase {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Agent Carousel/Selector */
.demo-agents-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 300px;
    flex-shrink: 0;
}

.demo-agent-card {
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.demo-agent-card input[type="radio"] {
    display: none;
}

.agent-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.demo-agent-card:hover .agent-card-inner {
    border-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.demo-agent-card.active .agent-card-inner {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.agent-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: all 0.2s ease;
}

.demo-agent-card.active .agent-card-glow.sofia { background: #ec4899; }
.demo-agent-card.active .agent-card-glow.carlos { background: #6366f1; }
.demo-agent-card.active .agent-card-glow.luna { background: #06b6d4; }
.demo-agent-card.active .agent-card-glow.marco { background: #10b981; }

.agent-card-avatar {
    width: 50px;
    height: 50px;
    position: relative;
    flex-shrink: 0;
}

.avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    color: white;
}

.avatar-badge.pro { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.avatar-badge.free { background: var(--success-color); }

.agent-card-info {
    flex: 1;
}

.agent-card-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-900);
}

.agent-card-info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.agent-traits {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.trait {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.5);
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.demo-agent-card.active .trait {
    background: white;
    border-color: var(--primary-light);
}

.latency-badge {
    font-size: 0.7rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.latency-badge.ultra { color: var(--success-color); }

/* Demo Player */
.demo-player-container {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-player {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.player-visualization {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.player-avatar-large {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 1rem;
}

.avatar-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #EC4899, #F43F5E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.avatar-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(236, 72, 153, 0.5);
    opacity: 0;
    z-index: 1;
}

.demo-player.playing .avatar-pulse-ring {
    animation: pulse-out 2s infinite;
}

.demo-player.playing .avatar-pulse-ring.delay-1 { animation-delay: 0.5s; }
.demo-player.playing .avatar-pulse-ring.delay-2 { animation-delay: 1s; }

@keyframes pulse-out {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.sound-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
}

.sound-wave span {
    display: block;
    width: 4px;
    height: 10%;
    background: var(--gray-300);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.demo-player.playing .sound-wave span {
    background: var(--primary-color);
    animation: audio-wave 0.5s infinite ease-in-out;
}

.demo-player.playing .sound-wave span:nth-child(odd) { animation-duration: 0.4s; }
.demo-player.playing .sound-wave span:nth-child(2n) { animation-duration: 0.6s; }
.demo-player.playing .sound-wave span:nth-child(3n) { animation-duration: 0.3s; }

@keyframes audio-wave {
    0%, 100% { height: 10%; }
    50% { height: 100%; }
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.player-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.demo-transcript-box {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 1.5rem;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transcript-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
    font-style: italic;
}

.play-demo-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.play-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.play-demo-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Demo CTA Box */
.demo-cta-box {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b4e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.demo-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.demo-cta-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #e9d5ff;
    flex-shrink: 0;
}

.demo-cta-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: white;
}

.demo-cta-text p {
    font-size: 0.9rem;
    color: #e9d5ff;
    line-height: 1.4;
}

.demo-cta-box .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Demo */
@media (max-width: 768px) {
    .demo-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-agents-carousel {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .demo-agent-card {
        min-width: 260px;
    }
    
    .demo-player-container {
        width: 100%;
    }
}

/* ============================================
   DEMO CALL MODAL STYLES
   ============================================ */

.demo-call-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.demo-call-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.demo-call-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    overflow: hidden;
}

.demo-call-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-call-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-demo-call {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.close-demo-call:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.demo-call-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    gap: 1.5rem;
}

.call-status {
    text-align: center;
    padding: 2rem 1rem;
}

.call-indicator {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #8B5CF6;
    animation: pulseRing 2s ease-in-out infinite;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    animation: pulseRing 2s ease-in-out infinite 0.5s;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.call-indicator i {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#demo-call-status-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.demo-call-messages {
    flex: 1;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-call-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-call-message.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border-bottom-right-radius: 4px;
}

.demo-call-message.agent-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 4px;
}

.demo-call-transcription {
    min-height: 80px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listening-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
}

.listening-waves {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.listening-waves span {
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, #8B5CF6, #EC4899);
    border-radius: 4px;
    animation: wave 1.4s ease-in-out infinite;
}

.listening-waves span:nth-child(1) {
    animation-delay: 0s;
}

.listening-waves span:nth-child(2) {
    animation-delay: 0.2s;
}

.listening-waves span:nth-child(3) {
    animation-delay: 0.4s;
}

.listening-waves span:nth-child(4) {
    animation-delay: 0.6s;
}

.listening-waves span:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.listening-indicator span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: #8B5CF6;
}

.demo-call-controls {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-call-controls .btn {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.demo-call-controls .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
}

.demo-call-controls .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.demo-call-controls .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-call-controls .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.demo-call-controls .btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Scrollbar styling for messages */
.demo-call-messages::-webkit-scrollbar {
    width: 6px;
}

.demo-call-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.demo-call-messages::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.demo-call-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Responsive styles */
@media (max-width: 768px) {
    .demo-call-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .demo-call-header {
        padding: 1rem;
    }

    .demo-call-header h3 {
        font-size: 1.25rem;
    }

    .demo-call-content {
        padding: 1rem;
    }

    .call-indicator {
        width: 80px;
        height: 80px;
    }

    .call-indicator i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .demo-call-messages {
        max-height: 200px;
    }

    .demo-call-controls {
        flex-direction: column;
    }

    .demo-call-controls .btn {
        width: 100%;
    }
}

/* ============================================
   OPTIMIZED VOICE DEMO MODAL
   ============================================ */
.optimized-voice-demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.optimized-voice-demo-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

.voice-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.voice-demo-title-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voice-demo-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.close-voice-demo {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-voice-demo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.voice-demo-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.voice-demo-visualization {
    text-align: center;
    margin-bottom: 2rem;
}

.voice-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.voice-avatar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.voice-avatar-core {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    z-index: 1;
}

.voice-status-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    z-index: 2;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: blink 2s ease-in-out infinite;
}

.voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-top: 1rem;
}

.voice-waveform .wave-bar {
    width: 4px;
    height: 20px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.voice-waveform.active .wave-bar {
    animation: wave 1s ease-in-out infinite;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.voice-waveform.active .wave-bar:nth-child(1) { animation-delay: 0s; }
.voice-waveform.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-waveform.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-waveform.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-waveform.active .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.voice-waveform.active .wave-bar:nth-child(6) { animation-delay: 0.5s; }
.voice-waveform.active .wave-bar:nth-child(7) { animation-delay: 0.6s; }
.voice-waveform.active .wave-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

.voice-demo-conversation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.conversation-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.conversation-message.user {
    flex-direction: row-reverse;
}

.conversation-message .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.conversation-message.user .message-avatar {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.conversation-message .message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: white;
}

.conversation-message.user .message-content {
    background: rgba(139, 92, 246, 0.2);
}

.conversation-message .message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

/* Test Agent Modal Styles */
.test-agent-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.test-agent-chat .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-agent-chat .message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

.test-agent-chat .message.agent-message {
    align-self: flex-start;
}

.test-agent-chat .message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    color: white;
    line-height: 1.6;
}

.test-agent-chat .message-content p {
    margin: 0;
    color: white;
}

#agent-greeting {
    margin: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversation-message .message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Agent Selector in Voice Demo */
.voice-demo-agent-selector {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-select-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.demo-agent-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.demo-agent-selector-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-agent-selector-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selector-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.demo-agent-selector-card:hover .selector-card-content {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.demo-agent-selector-card.active .selector-card-content {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.selector-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.selector-avatar.sofia {
    background: linear-gradient(135deg, #EC4899, #F43F5E);
}

.selector-avatar.carlos {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.selector-avatar.luna {
    background: linear-gradient(135deg, #06B6D4, #22D3EE);
}

.selector-avatar.marco {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.selector-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.selector-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.selector-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.voice-demo-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-voice-primary,
.btn-voice-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-voice-primary {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
}

.btn-voice-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-voice-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-voice-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.voice-demo-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item i {
    font-size: 1.5rem;
    color: #8B5CF6;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =========================================
   UNIFIED DEMO SECTION STYLES
   ========================================= */

.demo-unified {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 30%, #fdf2f8 100%);
    position: relative;
    overflow: hidden;
}

.demo-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* Live Demo CTA Card */
.demo-live-cta {
    margin: 3rem 0;
}

.demo-live-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 60px -15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.demo-live-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.demo-live-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sofia-avatar-large {
    width: 120px;
    height: 120px;
    position: relative;
}

.sofia-avatar-large .avatar-ring {
    position: absolute;
    inset: -10px;
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: pulse-ring-scale 2s ease-out infinite;
}

.sofia-avatar-large .avatar-ring.animated {
    animation: pulse-ring-scale 2s ease-out infinite 0.5s;
}

.sofia-avatar-large .avatar-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

@keyframes pulse-ring-scale {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes wave-pulse {
    0%, 100% { height: 8px; }
    50% { height: 24px; }
}

.call-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
}

.call-wave span {
    display: block;
    width: 4px;
    height: 10px;
    background: linear-gradient(to top, #8B5CF6, #EC4899);
    border-radius: 4px;
}

.call-wave.live span {
    background: linear-gradient(to top, #8B5CF6, #EC4899);
    animation: wave-pulse 1.2s ease-in-out infinite;
}

.call-wave.live span:nth-child(1) { animation-delay: 0s; }
.call-wave.live span:nth-child(2) { animation-delay: 0.1s; }
.call-wave.live span:nth-child(3) { animation-delay: 0.2s; }
.call-wave.live span:nth-child(4) { animation-delay: 0.3s; }
.call-wave.live span:nth-child(5) { animation-delay: 0.4s; }

.demo-live-content {
    flex: 1;
    color: white;
}

.demo-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f472b6;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.demo-live-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.demo-live-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.demo-actions-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-call-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-call-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.btn-call-primary i {
    font-size: 1.25rem;
}

.btn-call-primary span {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-call-primary strong {
    font-size: 1rem;
}

.btn-call-primary small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Use Cases Section */
.use-cases-section {
    margin: 4rem 0;
}

.use-cases-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2.5rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.25rem;
}

.use-case-icon.real-estate { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.use-case-icon.ecommerce { background: linear-gradient(135deg, #F59E0B, #D97706); }
.use-case-icon.healthcare { background: linear-gradient(135deg, #EF4444, #DC2626); }
.use-case-icon.services { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.use-case-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.use-case-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.use-case-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.use-case-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-stat .stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Example Conversations */
.example-conversations {
    margin: 4rem 0;
}

.examples-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2.5rem;
}

.conversations-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.conversation-example {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.conv-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.conv-avatar.sales { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.conv-avatar.support { background: linear-gradient(135deg, #8B5CF6, #6366F1); }

.conv-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.conv-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.conv-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.conv-msg {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    max-width: 85%;
}

.conv-msg p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.conv-msg.agent {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.conv-msg.agent p { color: var(--gray-800); }

.conv-msg.user {
    background: var(--gray-100);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.conv-msg.user p { color: var(--gray-700); }

.conv-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
}

.conv-result i {
    color: #10B981;
}

/* Demo Final CTA */
.demo-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    margin-top: 3rem;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive for Demo Section */
@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-live-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .demo-live-content p {
        max-width: 100%;
    }
    
    .demo-actions-row {
        justify-content: center;
    }
    
    .demo-final-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .demo-unified {
        padding: 3rem 0;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .conversations-carousel {
        grid-template-columns: 1fr;
    }
    
    .demo-live-content h3 {
        font-size: 1.5rem;
    }
    
    .demo-actions-row {
        flex-direction: column;
    }
    
    .btn-call-primary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
    
    .demo-final-cta {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.35rem;
    }
}

/* Legacy Demo Scenarios (keep for backwards compatibility) */
.demo-scenarios {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.scenario-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
    border-color: #8B5CF6;
}

.scenario-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.scenario-icon.sales {
    background: linear-gradient(135deg, #EC4899, #F43F5E);
}

.scenario-icon.support {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

.scenario-icon.technical {
    background: linear-gradient(135deg, #10B981, #059669);
}

.scenario-icon.accounts {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
}

.scenario-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.scenario-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.scenario-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.75rem;
    color: #8B5CF6;
}

@media (max-width: 768px) {
    .demo-scenarios {
        padding: 2rem 0;
    }
    
    .demo-agent-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .voice-demo-controls {
        flex-direction: column;
    }
    
    .btn-voice-primary,
    .btn-voice-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .optimized-voice-demo-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .voice-demo-header {
        padding: 1.5rem;
    }
    
    .voice-demo-content {
        padding: 1.5rem;
    }
    
    .voice-demo-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Demo Scenarios Mobile */
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .scenario-card {
        padding: 1.5rem;
    }
    
    .scenario-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .scenario-card h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile Navigation Improvements */
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile Hero Section */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    /* Mobile Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Mobile Pricing Cards */
    .pricing-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pricing-card {
        width: 100%;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-large {
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* ============================================
   ENHANCED DASHBOARD - PRO AI SaaS STYLES
   ============================================ */

/* Modern Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card .card-body {
    padding: 1.5rem 2rem;
}

/* Modern Agent Cards - CONSOLIDATED IN UNIFIED SECTION BELOW */

.agent-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.agent-card-body {
    padding: 1.25rem 1.5rem;
}

.agent-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.agent-stats .stat {
    text-align: center;
}

.agent-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.agent-stats .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-card-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.75rem;
}

.agent-card-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Training Section Styles */
.training-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.training-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
}

.training-section .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.training-section .form-group .label-hint {
    font-weight: 400;
    color: var(--gray-400);
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.training-section input,
.training-section textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.training-section input:focus,
.training-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.training-section textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.training-section .form-actions {
    flex-wrap: wrap;
}

.training-section .training-tips {
    max-width: 100%;
    box-sizing: border-box;
}

.training-section .training-tips ul {
    padding-left: 1rem;
}

/* Share Agent Styles */
.share-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Copy Notification */
@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.copy-notification {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Preview Agent Styles */
.preview-agent {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 1.5rem;
    color: white;
}

.preview-chat-body {
    padding: 1.5rem;
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
    background: var(--gray-50);
}

.preview-chat-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    background: var(--white);
}

/* Enhanced Empty States */
.empty-voice-agents {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03));
    border-radius: var(--radius-xl);
    border: 2px dashed var(--gray-200);
}

.empty-voice-agents .empty-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.empty-voice-agents h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    color: var(--gray-800);
}

.empty-voice-agents p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-500);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.upgrade-banner h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.upgrade-banner p {
    margin: 0;
    opacity: 0.9;
}

.upgrade-banner .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success-color);
}

.status-badge.inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--warning-color);
}

/* ============================================
   IMPROVED PHONE DEMO STYLES
   ============================================ */

/* Phone Demo Badge */
.phone-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 1.5rem;
}

.phone-demo-badge i {
    color: #ec4899;
    animation: phonePulse 2s ease-in-out infinite;
}

/* Nav Phone Demo Link - Highlight Style */
.nav-phone-demo {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.nav-phone-demo:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Primary Call CTA */
.phone-cta-primary {
    margin: 2rem 0;
}

.btn-call-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-call-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-call-hero:hover::before {
    left: 100%;
}

.btn-call-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}

.call-icon-pulse {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255,255,255,0); }
}

.call-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.call-action {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.call-number {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.call-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Demo Alternative Section */
.demo-alternative {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.demo-divider {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    position: relative;
    padding: 0 1.5rem;
}

.demo-divider::before,
.demo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.demo-divider::before { right: 100%; }
.demo-divider::after { left: 100%; }

.btn-web-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-web-demo:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Demo Capabilities */
.demo-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.capability-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.capability-chip i {
    color: #4ade80;
}

/* Demo Suggestions */
.demo-suggestions {
    margin-top: 2rem;
    text-align: center;
}

.suggestions-title {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn-call-hero {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .call-icon-pulse {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    .call-text {
        align-items: center;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .call-status {
        margin-top: 0.5rem;
    }
    
    .demo-capabilities {
        gap: 0.5rem;
    }
    
    .capability-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* =========================================
   DASHBOARD COMPREHENSIVE RESPONSIVE FIXES
   ========================================= */

/* Base Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f4f6 50%, #fdf2f8 100%);
}

/* Sidebar collapsed state */
.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
}

/* Dashboard Stats Grid - Ensure Responsive */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stat Card Enhancements */
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card .stat-info {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-card .stat-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.dashboard-card.full-width {
    grid-column: span 3;
}

.dashboard-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Agent Cards - Unified Style */
.web-agent-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.web-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.web-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-agent-card:hover::before {
    opacity: 1;
}

.web-agent-card .agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.web-agent-card .agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.web-agent-card .agent-info {
    flex: 1;
    min-width: 0;
}

.web-agent-card .agent-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web-agent-card .agent-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web-agent-card .agent-card-body {
    padding: 1.25rem;
}

.web-agent-card .agent-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.web-agent-card .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.web-agent-card .agent-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.web-agent-card .agent-actions .btn {
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

/* Drag and Drop Styles */
.web-agent-card[draggable="true"],
.agent-item[draggable="true"] {
    position: relative;
    cursor: move;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.web-agent-card[draggable="true"]:hover,
.agent-item[draggable="true"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.web-agent-card.dragging,
.agent-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.web-agent-card.drag-over,
.agent-item.drag-over {
    border-top: 3px solid var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Voice Agents Grid */
.voice-agents-grid,
#web-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Settings Container */
.settings-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 100%;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--white);
}

.settings-content {
    padding: 2rem;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Training Section */
.training-section {
    max-width: 100%;
}

.training-section .form-group {
    margin-bottom: 1.5rem;
}

.training-section .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--gray-800);
}

.training-section .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.training-section .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-left {
    flex: 1;
    min-width: 200px;
}

.section-header-right {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

/* Leads Table */
.leads-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.leads-table th,
.leads-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.leads-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leads-table td {
    font-size: 0.9rem;
    color: var(--gray-800);
}

.leads-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.02);
}

/* Enhanced Leads Table */
.leads-table.enhanced {
    min-width: 900px;
}

.leads-table.enhanced th {
    white-space: nowrap;
}

.lead-row.hot {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 30%);
}

.lead-row.warm {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, transparent 30%);
}

.lead-cell-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lead-name-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lead-name-info .lead-name {
    font-weight: 600;
    color: var(--gray-900);
}

.lead-name-info .lead-company {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.lead-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    flex-shrink: 0;
}

.lead-avatar.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.lead-avatar.warm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lead-avatar.cold {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.lead-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border-radius: 16px;
}

.lead-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.lead-contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lead Score Cell */
.lead-score-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-interest-badge {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
}

.lead-interest-badge.hot {
    background: rgba(239, 68, 68, 0.1);
}

.lead-interest-badge.warm {
    background: rgba(245, 158, 11, 0.1);
}

.lead-interest-badge.cold {
    background: rgba(107, 114, 128, 0.1);
}

.lead-score-bar {
    width: 50px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.lead-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.lead-score-fill.score-high {
    background: linear-gradient(90deg, #10b981, #059669);
}

.lead-score-fill.score-medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.lead-score-fill.score-low {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.lead-score-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 20px;
}

/* Lead Source Badge */
.lead-source-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.lead-source-badge i {
    font-size: 0.875rem;
}

/* Lead Actions */
.lead-actions {
    display: flex;
    gap: 0.25rem;
}

.lead-actions .action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.lead-actions .action-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.lead-actions .action-btn.view:hover {
    color: var(--primary-color);
}

.lead-actions .action-btn.edit:hover {
    color: #3b82f6;
}

.lead-actions .action-btn.status:hover {
    color: #10b981;
}

/* Leads Filters Enhancement */
.leads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.leads-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

.leads-filters .search-group {
    flex: 2;
    position: relative;
}

.leads-filters .filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.leads-filters .search-group .filter-search {
    padding-left: 2.5rem;
}

.leads-filters .filter-result {
    flex: 0 0 auto;
}

.leads-filters .filter-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Lead Detail Modal Enhanced */
.lead-detail.enhanced {
    padding: 0;
}

.lead-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.lead-header-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.lead-company-name {
    display: block;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.lead-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.interest-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.interest-badge.hot {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.interest-badge.warm {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.interest-badge.cold {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

/* Lead Score Circle */
.lead-score-display {
    margin-left: auto;
    text-align: center;
}

.score-circle {
    position: relative;
    width: 70px;
    height: 70px;
}

.score-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 3;
}

.score-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.lead-score-display.high .score-fill {
    stroke: #10b981;
}

.lead-score-display.medium .score-fill {
    stroke: #f59e0b;
}

.lead-score-display.low .score-fill {
    stroke: #6b7280;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.score-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Lead Detail Grid */
.lead-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.lead-detail-section {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 12px;
}

.lead-detail-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-detail-section h4 i {
    color: var(--primary-color);
}

.lead-detail-section .info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.lead-detail-section .info-row:last-child {
    border-bottom: none;
}

.lead-detail-section .info-row i {
    width: 20px;
    color: var(--gray-400);
    text-align: center;
}

.lead-detail-section .info-row a {
    color: var(--primary-color);
    text-decoration: none;
}

.lead-detail-section .info-row a:hover {
    text-decoration: underline;
}

.lead-detail-section .no-data {
    color: var(--gray-400);
}

/* Lead Conversation Preview */
.lead-conversation-preview {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.lead-conversation-preview h4 {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conv-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: white;
}

.conv-msg.user {
    background: rgba(139, 92, 246, 0.05);
}

.conv-msg.assistant {
    background: white;
    border: 1px solid var(--gray-200);
}

.conv-role {
    font-size: 1.25rem;
}

.conv-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
}

.transcript-preview {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
}

/* Lead Interests */
.lead-interests,
.lead-pain-points {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interest-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pain-points-list {
    margin: 0;
    padding-left: 1.25rem;
}

.pain-points-list li {
    padding: 0.25rem 0;
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* Lead Activity Timeline */
.lead-activity-timeline {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
}

.activity-type {
    font-size: 1rem;
}

.activity-desc {
    flex: 1;
    color: var(--gray-700);
}

.activity-time {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Lead Notes Section */
.lead-notes-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.lead-notes-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.lead-notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Lead Actions Footer */
.lead-actions-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.lead-actions-footer .btn {
    flex: 1;
    min-width: 120px;
}

/* Lead Edit Form */
.lead-edit-form {
    padding: 0;
}

.lead-edit-form h3 {
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-900);
}

.lead-edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lead-edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.lead-edit-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.lead-edit-form input,
.lead-edit-form select,
.lead-edit-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
}

.lead-edit-form input:focus,
.lead-edit-form select:focus,
.lead-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.lead-edit-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Recent Leads Enhancement */
.recent-lead-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.recent-lead-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.recent-lead-item.hot {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
}

.recent-lead-item .lead-info {
    flex: 1;
    min-width: 0;
}

.recent-lead-item .lead-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-lead-item .lead-email {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-lead-item .lead-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.recent-lead-item .lead-interest-icon {
    font-size: 1rem;
}

.recent-lead-item .lead-status-mini {
    font-size: 0.65rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.lead-status-mini.new { background: rgba(139, 92, 246, 0.1); color: var(--primary-color); }
.lead-status-mini.contacted { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.lead-status-mini.qualified { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.lead-status-mini.converted { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.lead-status-mini.lost { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Mobile Responsive for Leads */
@media (max-width: 768px) {
    .lead-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .lead-score-display {
        margin: 1rem 0 0 0;
    }
    
    .lead-edit-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .leads-filters {
        flex-direction: column;
    }
    
    .leads-filters .filter-group {
        width: 100%;
    }
    
    .lead-actions-footer {
        flex-direction: column;
    }
    
    .lead-actions-footer .btn {
        width: 100%;
    }
}

/* Lead Stats Row */
.lead-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lead-stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.lead-stat-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.lead-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.lead-stat-icon.new { background: rgba(139, 92, 246, 0.1); color: var(--primary-color); }
.lead-stat-icon.contacted { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.lead-stat-icon.qualified { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.lead-stat-icon.converted { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.lead-stat-info {
    flex: 1;
}

.lead-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: block;
}

.lead-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Leads Filters */
.leads-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-search,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-search:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

/* Empty States */
.empty-voice-agents,
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-600);
}

.empty-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.empty-voice-agents h3,
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.empty-voice-agents p,
.empty-state p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================
   DASHBOARD TABLET RESPONSIVE (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-card.full-width {
        grid-column: span 2;
    }
    
    .lead-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   DASHBOARD MOBILE RESPONSIVE (≤768px)
   ========================================= */
@media (max-width: 768px) {
    /* Mobile Header */
    .mobile-dashboard-header {
        display: flex;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-dashboard-header .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-dashboard-header .logo-text {
        font-size: 1.1rem;
        font-weight: 700;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .mobile-dashboard-header .sidebar-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .mobile-dashboard-header .sidebar-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gray-700);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        transition: transform 0.3s ease;
        z-index: 1001;
        width: 280px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Sidebar overlay */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Main Content */
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        padding-top: 80px;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Section Headers - Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats - Mobile Optimized */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        border-radius: 12px;
    }
    
    .stat-card .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .stat-card .stat-info {
        flex: 1;
    }
    
    .stat-card .stat-info h3 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .stat-card .stat-info p {
        font-size: 0.75rem;
    }
    
    /* Dashboard Grid - Single Column */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        border-radius: 12px;
    }
    
    .dashboard-card .card-header {
        padding: 1rem;
    }
    
    .dashboard-card .card-body {
        padding: 1rem;
    }
    
    /* Agent Cards - Mobile */
    .voice-agents-grid,
    .web-agents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .web-agent-card {
        border-radius: 12px;
    }
    
    .agent-card-header {
        padding: 1rem;
    }
    
    .agent-training-preview {
        padding: 0.75rem 1rem;
    }
    
    .training-value {
        max-width: 150px;
    }
    
    .agent-card-body {
        padding: 1rem;
    }
    
    .agent-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .agent-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .agent-actions .btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .agent-actions .btn span {
        display: none;
    }
    
    .agent-actions .btn i {
        margin: 0;
    }
    
    /* Modal Responsive */
    .modal-content {
        width: 95% !important;
        max-height: 90vh;
        margin: 1rem auto;
    }
    
    .modal-content.large {
        max-width: 100%;
    }
    
    /* Settings Mobile */
    .settings-container {
        border-radius: 12px;
    }
    
    .settings-tabs {
        overflow-x: auto;
        padding: 0;
    }
    
    .settings-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Hide collapse button on mobile */
    .sidebar-collapse-btn {
        display: none;
    }
    
    .dashboard-card.full-width {
        grid-column: span 1;
    }
    
    /* Agent Cards Grid */
    .voice-agents-grid,
    #web-agents-grid {
        grid-template-columns: 1fr;
    }
    
    /* Lead Stats */
    .lead-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .lead-stat-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    /* Leads Filters */
    .leads-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header-right {
        width: 100%;
    }
    
    .section-header-right .btn {
        flex: 1;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Settings */
    .settings-container {
        border-radius: 12px;
    }
    
    .settings-tabs {
        gap: 0;
    }
    
    .settings-tab {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .settings-content {
        padding: 1.25rem;
    }
    
    /* Training Section */
    .training-section .form-group textarea {
        min-height: 100px;
    }
    
    /* Welcome Banner */
    .dashboard-welcome-banner {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .dashboard-welcome-banner h1 {
        font-size: 1.5rem;
    }
    
    /* Agent Card Actions */
    .web-agent-card .agent-actions {
        flex-direction: column;
    }
    
    .web-agent-card .agent-actions .btn {
        width: 100%;
    }
}

/* =========================================
   DASHBOARD SMALL MOBILE (≤480px)
   ========================================= */
@media (max-width: 480px) {
    /* Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Lead Stats */
    .lead-stats-row {
        grid-template-columns: 1fr;
    }
    
    /* Settings Tabs */
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .settings-tab {
        flex: 1;
        min-width: 50%;
        text-align: center;
        justify-content: center;
    }
    
    /* Agent Card Stats */
    .web-agent-card .agent-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* =========================================
   MODAL RESPONSIVE FIXES
   ========================================= */
.modal {
    padding: 1rem;
}

.modal-content {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-content.large {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* Edit Modal Tabs */
    .edit-agent-tabs {
        flex-wrap: wrap;
    }
    
    .edit-agent-tabs button {
        flex: 1;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }
    
    /* Form Rows */
    .form-row,
    .modal-body [style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Agent Type Chips in Modal */
    .modal-body [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================
   ROBOT ICONS & AI DECORATIONS
   ========================================= */

/* Robot Icon Base Styles */
.robot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.robot-icon svg {
    width: 100%;
    height: 100%;
}

/* Robot Icon Sizes */
.robot-icon.xs { width: 24px; height: 24px; }
.robot-icon.sm { width: 32px; height: 32px; }
.robot-icon.md { width: 48px; height: 48px; }
.robot-icon.lg { width: 64px; height: 64px; }
.robot-icon.xl { width: 96px; height: 96px; }
.robot-icon.xxl { width: 128px; height: 128px; }

/* Floating Robot Decorations */
.robot-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.robot-decoration.animated {
    animation: float-gentle 6s ease-in-out infinite;
}

.robot-decoration.animated-alt {
    animation: float-gentle-alt 8s ease-in-out infinite;
}

.robot-decoration.animated-slow {
    animation: float-gentle 10s ease-in-out infinite;
}

/* =========================================
   COOL ANIMATIONS
   ========================================= */

/* Float Animations */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float-gentle-alt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(-2deg); }
    66% { transform: translateY(-8px) rotate(3deg); }
}

/* Bounce Animation */
@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

/* Glowing Pulse */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.3),
                    0 0 10px rgba(139, 92, 246, 0.2),
                    0 0 15px rgba(139, 92, 246, 0.1);
    }
    50% { 
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5),
                    0 0 20px rgba(139, 92, 246, 0.3),
                    0 0 30px rgba(139, 92, 246, 0.2);
    }
}

/* Robot Eye Blink */
@keyframes robot-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Antenna Glow */
@keyframes antenna-glow {
    0%, 100% { 
        fill: #EC4899;
        filter: drop-shadow(0 0 3px rgba(236, 72, 153, 0.5));
    }
    50% { 
        fill: #F472B6;
        filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.8));
    }
}

/* Thinking Animation */
@keyframes thinking-dots {
    0%, 80%, 100% { opacity: 0; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* Circuit Flow Animation */
@keyframes circuit-flow {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* Spark Animation */
@keyframes spark {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Shake Animation */
@keyframes shake-subtle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Scale Pop Animation */
@keyframes scale-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Rotate Animation */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Slide In Animations */
@keyframes slide-in-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-down {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-left {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Fade Scale Animation */
@keyframes fade-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Morphing Background */
@keyframes morph-bg {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* =========================================
   AGENT CARD ANIMATIONS
   ========================================= */

/* Agent Card Entrance */
.web-agent-card,
.agent-type-card,
.voice-persona-card {
    animation: fade-scale-in 0.5s ease forwards;
}

.web-agent-card:nth-child(1) { animation-delay: 0s; }
.web-agent-card:nth-child(2) { animation-delay: 0.1s; }
.web-agent-card:nth-child(3) { animation-delay: 0.2s; }
.web-agent-card:nth-child(4) { animation-delay: 0.3s; }
.web-agent-card:nth-child(5) { animation-delay: 0.4s; }

/* Agent Avatar Animations */
.agent-avatar-animated {
    position: relative;
}

.agent-avatar-animated::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate-slow 3s linear infinite;
}

.agent-avatar-animated:hover::before {
    opacity: 0.5;
}

/* Robot Head Animation */
.robot-head-bounce:hover {
    animation: bounce-in 0.6s ease;
}

/* Agent Status Indicator Pulse */
.agent-online-indicator {
    position: relative;
}

.agent-online-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%);
    animation: pulse-ring-shadow 2s infinite;
    opacity: 0;
}

/* =========================================
   WIDGET ANIMATIONS
   ========================================= */

/* Widget Button Entrance */
.widget-floating-btn {
    animation: bounce-in 0.6s ease 0.3s backwards;
}

/* Widget Button Pulse */
.widget-floating-btn.pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Widget Open Animation */
.widget-container.open {
    animation: slide-in-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Widget Close Animation */
.widget-container.closing {
    animation: slide-out-down 0.3s ease forwards;
}

@keyframes slide-out-down {
    to { transform: translateY(30px); opacity: 0; }
}

/* Widget Header Robot Animation */
.widget-header .robot-icon {
    transition: transform 0.3s ease;
}

.widget-header:hover .robot-icon {
    animation: shake-subtle 0.5s ease;
}

/* Widget Message Animations */
.widget-message {
    animation: slide-in-left 0.3s ease;
}

.widget-message.user {
    animation: slide-in-right 0.3s ease;
}

/* Widget Typing Indicator */
.widget-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.widget-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: thinking-dots 1.4s ease-in-out infinite;
}

.widget-typing-indicator span:nth-child(1) { animation-delay: 0s; }
.widget-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.widget-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* =========================================
   WINDOW WIDGET AGENT ANIMATIONS
   ========================================= */

/* Agent Window Entrance */
.agent-window {
    animation: fade-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Agent Window Header Gradient Animation */
.agent-window-header {
    background: linear-gradient(-45deg, #8B5CF6, #EC4899, #6366F1, #A855F7);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Agent Avatar in Window */
.agent-window .agent-avatar {
    position: relative;
    overflow: visible;
}

.agent-window .agent-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    animation: rotate-slow 4s linear infinite;
}

/* Talking Animation for Agent */
.agent-window.talking .agent-avatar {
    animation: scale-pop 0.5s ease infinite;
}

/* Sound Wave Animation */
.agent-sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
}

.agent-sound-wave span {
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: sound-wave 0.5s ease-in-out infinite alternate;
}

.agent-sound-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.agent-sound-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.agent-sound-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.agent-sound-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.agent-sound-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes sound-wave {
    from { height: 4px; }
    to { height: 20px; }
}

/* Mic Recording Animation */
.mic-recording {
    position: relative;
}

.mic-recording::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--danger-color);
    animation: pulse-ring-shadow 1s infinite;
}

/* =========================================
   LANDING PAGE ROBOT DECORATIONS
   ========================================= */

/* Hero Section Robot Decorations */
.hero-robot-left {
    position: absolute;
    left: 5%;
    top: 20%;
    opacity: 0.1;
    animation: float-gentle 8s ease-in-out infinite;
}

.hero-robot-right {
    position: absolute;
    right: 5%;
    bottom: 20%;
    opacity: 0.1;
    animation: float-gentle-alt 10s ease-in-out infinite;
}

/* Section Robot Accent */
.section-robot-accent {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

/* Features Grid Robot Icons */
.feature-robot-icon {
    position: relative;
}

.feature-robot-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover .feature-robot-icon::after {
    opacity: 0.2;
}

/* Robot Particles Background */
.robot-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.robot-particle {
    position: absolute;
    opacity: 0.05;
    animation: float-particle 20s linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* =========================================
   DASHBOARD ROBOT DECORATIONS
   ========================================= */

/* Stat Card Robot Animation */
.stat-card .stat-icon.animated {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon.animated {
    animation: bounce-in 0.5s ease;
}

/* Dashboard Welcome Robot */
.welcome-robot {
    animation: float-gentle 5s ease-in-out infinite;
}

/* Empty State Robot Animation */
.empty-state .robot-icon {
    animation: float-gentle 4s ease-in-out infinite;
}

.empty-state:hover .robot-icon {
    animation: shake-subtle 0.5s ease, float-gentle 4s ease-in-out infinite;
}

/* Loading Robot Spinner */
.robot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.robot-loading .robot-icon {
    animation: bounce-in 1s ease infinite;
}

.robot-loading-text {
    color: var(--text-secondary);
    animation: thinking-dots 1.5s ease infinite;
}

/* =========================================
   INTERACTIVE ROBOT ELEMENTS
   ========================================= */

/* Clickable Robot Button */
.robot-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.robot-btn:hover {
    transform: scale(1.1);
}

.robot-btn:active {
    transform: scale(0.95);
}

/* Robot Toggle */
.robot-toggle {
    position: relative;
    cursor: pointer;
}

.robot-toggle.active .robot-icon {
    animation: bounce-in 0.4s ease;
}

/* Robot Tooltip */
.robot-tooltip {
    position: relative;
}

.robot-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.robot-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* =========================================
   AI CIRCUIT PATTERNS
   ========================================= */

.circuit-pattern {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
}

.circuit-pattern path {
    stroke: var(--primary-color);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 10;
    animation: circuit-flow 3s linear infinite;
}

/* =========================================
   ROBOT MASCOT ANIMATIONS
   ========================================= */

.robot-mascot {
    position: relative;
}

/* Eyes Animation */
.robot-mascot .robot-eyes {
    animation: robot-blink 4s ease-in-out infinite;
}

/* Antenna Animation */
.robot-mascot .robot-antenna {
    animation: antenna-glow 2s ease-in-out infinite;
}

/* Hover State */
.robot-mascot:hover {
    animation: float-gentle 0.5s ease;
}

.robot-mascot:hover .robot-eyes {
    animation: robot-blink 0.5s ease;
}

/* =========================================
   RESPONSIVE ANIMATION ADJUSTMENTS
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .robot-decoration {
        display: none;
    }
    
    .hero-robot-left,
    .hero-robot-right {
        display: none;
    }
}

/* =========================================
   KNOWLEDGE BASE STYLES
   ========================================= */

.knowledge-base-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.kb-search-container {
    margin-bottom: 2rem;
}

.kb-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    transition: var(--transition-base);
}

.kb-search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.kb-search-box i {
    color: var(--gray-400);
    margin-right: 1rem;
    font-size: 1.1rem;
}

.kb-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--gray-700);
}

.kb-search-box input::placeholder {
    color: var(--gray-400);
}

.kb-search-clear {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.kb-search-clear:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.kb-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kb-category-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.kb-category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.kb-category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
}

.kb-category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.kb-category-name {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 1rem;
}

.kb-articles-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.kb-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.kb-articles-header h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin: 0;
}

.kb-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.kb-view-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition-base);
}

.kb-view-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kb-articles {
    display: grid;
    gap: 1.5rem;
}

.kb-articles.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.kb-articles.list-view {
    grid-template-columns: 1fr;
}

.kb-article-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.kb-article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.kb-article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.kb-article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-700);
}

.kb-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0.5rem 0;
}

.kb-article-preview {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.kb-article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kb-article-tag {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Knowledge Base Modal */
.kb-article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.kb-article-modal.active {
    display: flex;
}

.kb-article-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.kb-article-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-100);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition-base);
    z-index: 10;
}

.kb-article-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.kb-article-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.kb-article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-lighter);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.kb-article-body {
    padding: 2rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.kb-article-body h3,
.kb-article-body h4 {
    color: var(--gray-800);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.kb-article-body ul,
.kb-article-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.kb-article-body li {
    margin: 0.5rem 0;
}

.kb-article-body .tip-box,
.kb-article-body .warning-box {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.kb-article-body .tip-box {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
}

.kb-article-body .warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
}

.kb-article-body .persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.kb-article-body .persona-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
}

.kb-article-body .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.kb-article-body .badge-pro {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
}

.kb-article-body .badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.kb-article-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.kb-article-helpful {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.kb-helpful-btn {
    background: var(--gray-100);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    color: var(--gray-700);
}

.kb-helpful-btn:hover {
    background: var(--gray-200);
}

.kb-helpful-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* =========================================
   TUTORIAL STYLES
   ========================================= */

.tutorial-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.tutorial-progress {
    margin-bottom: 2rem;
}

.tutorial-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.tutorial-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: var(--progress-width, 0%);
    position: absolute;
    top: 0;
    left: 0;
}

.tutorial-progress-text {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.tutorial-steps {
    min-height: 400px;
    margin-bottom: 2rem;
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tutorial-step.active {
    display: block;
}

.tutorial-step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tutorial-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.tutorial-step-title {
    font-size: 1.75rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.tutorial-step-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tutorial-step-content {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tutorial-step-content ol,
.tutorial-step-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.tutorial-step-content li {
    margin: 0.75rem 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.tutorial-step-content code {
    background: var(--gray-200);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.tutorial-navigation button {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tutorial-navigation button[style*="display: none"] {
    display: none !important;
}

/* =========================================
   GUIDED TOUR STYLES
   ========================================= */

.guided-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.guided-tour-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guided-tour-header {
    margin-bottom: 1.5rem;
}

.guided-tour-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.guided-tour-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin: 0;
}

.guided-tour-body {
    margin-bottom: 2rem;
}

.guided-tour-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.guided-tour-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.guided-tour-actions button {
    min-width: 120px;
}

/* Tour Step Indicator */
.tour-step-indicator {
    position: fixed;
    z-index: 5000;
    pointer-events: none;
}

.tour-step-highlight {
    position: absolute;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.5);
    pointer-events: none;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.8);
    }
}

.tour-step-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    position: relative;
    z-index: 1;
}

.tour-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tour-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tour-step-title {
    flex: 1;
    font-size: 1.1rem;
    color: var(--gray-800);
    margin: 0;
}

.tour-step-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.tour-step-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.tour-step-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tour-step-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.tour-step-actions .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .kb-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kb-articles.grid-view {
        grid-template-columns: 1fr;
    }
    
    .kb-article-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .tutorial-container {
        padding: 1.5rem;
    }
    
    .guided-tour-content {
        padding: 2rem 1.5rem;
    }
    
    .tour-step-content {
        max-width: 90vw;
    }
    
    .tour-step-actions {
        flex-direction: column;
    }
    
    .tour-step-actions button {
        width: 100%;
    }
}

/* =========================================
   DASHBOARD REFACTORED - CONSOLIDATED STYLES
   This section consolidates all dashboard styles
   to ensure consistency and override duplicates
   ========================================= */

/* Dashboard Container - Unified */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Main Content - Consolidated */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f4f6 50%, #fdf2f8 100%);
}

/* Sidebar - Consolidated */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0;
    top: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Ensure sidebar is completely hidden when auto-hidden */
.sidebar.auto-hide {
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border-right: none;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s ease, 
                opacity 0.3s ease,
                border 0.3s ease,
                box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        visibility 0.3s ease, 
                        opacity 0.3s ease,
                        border 0.3s ease,
                        box-shadow 0.3s ease;
    -moz-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                     visibility 0.3s ease, 
                     opacity 0.3s ease,
                     border 0.3s ease,
                     box-shadow 0.3s ease;
}

.sidebar.auto-hide:hover,
.sidebar.auto-hide.show {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    border-right: 1px solid var(--gray-200);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    transition: var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.nav-item.active {
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Content Sections - Consolidated */
.content-section {
    display: none;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 2rem;
    padding-top: 0;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    top: 0;
    width: 100%;
    box-sizing: border-box;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
    position: relative;
    top: 0;
}

/* Ensure specific sections are properly displayed when active */
#knowledge-base-section.active,
#tutorial-section.active,
#settings-section.active,
#dashboard-section.active,
#leads-section.active,
#voice-agents-section.active,
#analytics-section.active,
#website-embed-section.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers - Consolidated */
.section-header {
    text-align: left;
    max-width: 100%;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.section-header-left {
    flex: 1;
    min-width: 0;
}

.section-header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

/* Dashboard Stats Grid - Consolidated */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stat Cards - Consolidated */
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 0;
}

.stat-card.stat-primary .stat-icon {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
}

.stat-card.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-card.stat-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.stat-trend.up {
    color: var(--success-color);
}

.stat-trend.down {
    color: var(--danger-color);
}

/* Dashboard Grid - Consolidated */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Dashboard Cards - Consolidated */
.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card.full-width {
    grid-column: span 3;
}

.dashboard-card.phone-demo-card {
    background: linear-gradient(135deg, #f8f5ff 0%, #fdf2f8 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.dashboard-card.phone-demo-card .card-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.dashboard-card.phone-demo-card .card-header h3 {
    color: var(--gray-800);
}

.dashboard-card.phone-demo-card:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--primary-dark);
}

/* Sidebar Collapsed State - Consolidated */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 0 1rem;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav {
    padding: 1.5rem 0.75rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
}

/* Sidebar Auto-hide - Consolidated */
.sidebar.auto-hide {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border-right: none !important;
    box-shadow: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s ease, 
                opacity 0.3s ease,
                border 0.3s ease,
                box-shadow 0.3s ease;
}

.sidebar.auto-hide:hover,
.sidebar.auto-hide.show {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-right: 1px solid var(--gray-200) !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-trigger {
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    z-index: 101;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden on mobile, shown on desktop via JS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Show on desktop only */
@media (min-width: 769px) {
    .sidebar.auto-hide ~ .sidebar-trigger {
        display: block;
    }
}

.sidebar-trigger::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    background: -webkit-linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    background: -moz-linear-gradient(180deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%);
    border-radius: 0 4px 4px 0;
    opacity: 0.4;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(139, 92, 246, 0.2);
    -webkit-box-shadow: 2px 0 8px rgba(139, 92, 246, 0.2);
}

.sidebar-trigger:hover {
    width: 12px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
    background: -webkit-linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
    background: -moz-linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
}

.sidebar-trigger:hover::before {
    opacity: 1;
    width: 6px;
    height: 80px;
    box-shadow: 2px 0 12px rgba(139, 92, 246, 0.4);
    -webkit-box-shadow: 2px 0 12px rgba(139, 92, 246, 0.4);
}

.sidebar.auto-hide ~ .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.sidebar.auto-hide:hover ~ .main-content,
.sidebar.auto-hide.show ~ .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
}

/* Responsive Dashboard - Consolidated */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card.full-width {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mobile-dashboard-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        z-index: 1000;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .sidebar.active {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
    }

    .sidebar.active::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .sidebar.collapsed ~ .main-content,
    .sidebar.auto-hide ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-card.full-width {
        grid-column: span 1;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Ensure content sections are visible on mobile */
    .content-section.active {
        display: block !important;
        visibility: visible;
        opacity: 1;
    }

    #knowledge-base-section.active,
    #tutorial-section.active,
    #settings-section.active,
    #dashboard-section.active,
    #leads-section.active,
    #voice-agents-section.active,
    #analytics-section.active,
    #website-embed-section.active {
        display: block !important;
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .main-content {
        padding: 0.75rem;
    }
}