:root {
            --bg-base: #030305;
            --glass-bg: rgba(255, 255, 255, 0.02);
            --glass-border: rgba(255, 255, 255, 0.06);
            --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.1);
            --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
            --accent-glow: rgba(168, 85, 247, 0.4);
            --text-main: #ffffff;
            --text-muted: #94a3b8;
            --success: #34d399;
            --warning: #fbbf24;
            --danger: #f87171;
            --radius-pill: 9999px;
            --radius-card: 24px;
            --radius-input: 14px;
            /* APPLE'S EXACT SPRING ANIMATION */
            --transition-spring: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
        }

        /* Light Mode Liquid Glass Variables */
        body.light-mode {
            --bg-base: #f8fafc;
            --glass-bg: rgba(255, 255, 255, 0.75);
            --glass-border: rgba(0, 0, 0, 0.06);
            --glass-highlight: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 32px 0 rgba(0, 0, 0, 0.04);
            --text-main: #0f172a;
            --text-muted: #64748b;
        }

        body.light-mode .custom-input,
        body.light-mode select,
        body.light-mode textarea {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(0, 0, 0, 0.1);
            color: #0f172a;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        body.light-mode .sidebar {
            background: rgba(255, 255, 255, 0.85);
        }

        html {
            top: 0 !important;
            scroll-behavior: smooth;
        }

        *[style*="-webkit-background-clip: text"] {
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-base);
            color: var(--text-main);
            margin: 0;
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            transition: var(--transition-spring);
        }

        /* Deep Aurora Mesh Gradients */
        body::before {
            content: '';
            position: fixed;
            width: 80vw;
            height: 80vw;
            border-radius: 50%;
            filter: blur(140px);
            background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 65%);
            top: -18vw;
            left: -18vw;
            z-index: -2;
            pointer-events: none;
            transition: var(--transition-spring);
        }

        body::after {
            content: '';
            position: fixed;
            width: 80vw;
            height: 80vw;
            border-radius: 50%;
            filter: blur(140px);
            background: radial-gradient(circle, rgba(236, 72, 153, 0.09) 0%, transparent 70%);
            bottom: -18vw;
            right: -18vw;
            z-index: -2;
            pointer-events: none;
            transition: var(--transition-spring);
        }

        /* Drifting Stars Layer */
        .stars-layer-1 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='40' cy='80' r='1' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='160' cy='40' r='1.5' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='280' cy='120' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='350' cy='300' r='2' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='100' cy='350' r='1.2' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='200' cy='250' r='1' fill='%23fff' opacity='0.6'/%3E%3C/svg%3E");
            animation: drift 30s linear infinite;
        }

        .stars-layer-2 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Ccircle cx='50' cy='150' r='1' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='180' cy='50' r='1.5' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='220' cy='200' r='1' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='100' cy='80' r='2' fill='%23fff' opacity='0.3'/%3E%3C/svg%3E");
            animation: drift 20s linear infinite;
        }

        @keyframes drift {
            from {
                background-position: 0 0;
            }

            to {
                background-position: 0 -1000px;
            }
        }

        * {
            box-sizing: border-box;
        }

        .screen {
            display: none;
            opacity: 0;
            transform: scale(0.98);
            transition: var(--transition-spring);
            min-height: 100vh;
            flex-direction: column;
        }

        .screen.active {
            display: flex;
            opacity: 1;
            transform: scale(1);
        }

        .center-container {
            align-items: center;
            justify-content: center;
            flex: 1;
            padding: 20px;
        }

        button {
            font-family: inherit;
            transition: var(--transition-spring);
            cursor: pointer;
            outline: none;
        }

        button:active {
            transform: scale(0.95) !important;
        }

        .btn-primary {
            background: var(--accent-gradient);
            color: white;
            padding: 14px 28px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-pill);
            font-weight: 700;
            font-size: 1rem;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 20px var(--accent-glow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 30px var(--accent-glow);
        }

        .btn-outline {
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-main);
            border: 1px solid var(--glass-border);
            padding: 14px 28px;
            border-radius: var(--radius-pill);
            font-size: 1rem;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .btn-danger {
            background: rgba(248, 113, 113, 0.1);
            color: var(--danger);
            border: 1px solid rgba(248, 113, 113, 0.3);
            padding: 12px 24px;
            border-radius: var(--radius-pill);
            font-weight: 600;
        }

        .btn-danger:hover {
            background: var(--danger);
            color: var(--text-main);
            box-shadow: 0 4px 20px rgba(248, 113, 113, 0.4);
            transform: translateY(-2px);
        }

        .glass-panel {
            background: var(--glass-bg);
            border-radius: var(--radius-card);
            padding: 40px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-highlight), 0 30px 60px rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(30px);
            width: 100%;
            max-width: 600px;
            text-align: left;
            transition: var(--transition-spring);
        }

        .custom-input,
        select {
            width: 100%;
            padding: 16px 20px;
            border-radius: var(--radius-input);
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-main);
            font-size: 1rem;
            font-family: inherit;
            margin-bottom: 20px;
            transition: var(--transition-spring);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .custom-input:focus,
        select:focus {
            outline: none;
            border-color: #a855f7;
            background: rgba(0, 0, 0, 0.8);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(168, 85, 247, 0.15);
        }

        .info-text {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 8px;
            display: block;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Custom Scrollbar for overflow numbers */
        .scrollable-number {
            overflow-x: auto;
            white-space: nowrap;
            max-width: 100%;
            padding-bottom: 4px;
            scrollbar-width: thin;
        }

        .scrollable-number::-webkit-scrollbar {
            height: 6px;
        }

        .scrollable-number::-webkit-scrollbar-track {
            background: transparent;
        }

        .scrollable-number::-webkit-scrollbar-thumb {
            background: rgba(168, 85, 247, 0.5);
            border-radius: 10px;
        }

        /* AI Thinking Animation */
        .ai-thinking {
            display: inline-flex;
            gap: 6px;
            padding: 16px 20px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px 16px 16px 2px;
            align-items: center;
            box-shadow: var(--glass-highlight);
            backdrop-filter: blur(10px);
        }

        .ai-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #c084fc;
            animation: aiPulse 1.4s infinite cubic-bezier(0.32, 0.72, 0, 1) both;
        }

        .ai-dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .ai-dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        @keyframes aiPulse {

            0%,
            80%,
            100% {
                transform: scale(0.6);
                opacity: 0.4;
            }

            40% {
                transform: scale(1.2);
                opacity: 1;
            }
        }

        /* LANDING PAGE CSS */
        .landing-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 5%;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            position: relative;
            z-index: 10;
        }

        .landing-nav a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: var(--transition-spring);
            margin-left: 32px;
            display: none;
        }

        @media(min-width: 768px) {
            .landing-nav a {
                display: inline-block;
            }
        }

        .landing-nav a:hover {
            color: var(--text-main);
            transform: translateY(-2px);
        }

        .landing-hero {
            text-align: center;
            padding: 120px 5% 80px;
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }

        .landing-title {
            font-size: clamp(3rem, 6vw, 5.5rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 24px;
            background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.03em;
        }

        .landing-subtitle {
            font-size: 1.25rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 40px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            font-weight: 500;
        }

        .landing-section {
            padding: 100px 5%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 60px;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .landing-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-highlight), 0 10px 30px rgba(0, 0, 0, 0.5);
            border-radius: 24px;
            padding: 40px 30px;
            backdrop-filter: blur(20px);
            transition: var(--transition-spring);
        }

        .landing-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: var(--glass-highlight), 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.1);
        }

        .landing-card h3 {
            font-size: 1.4rem;
            color: var(--text-main);
            margin: 0 0 12px 0;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .landing-card p {
            font-size: 0.95rem;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.6;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .price-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-highlight), 0 20px 40px rgba(0, 0, 0, 0.5);
            border-radius: 24px;
            padding: 40px;
            text-align: center;
            backdrop-filter: blur(20px);
            transition: var(--transition-spring);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .price-card:hover {
            transform: translateY(-10px);
        }

        .price-card.free {
            border-top: 2px solid rgba(52, 211, 153, 0.5);
        }

        .price-card.free:hover {
            border-color: rgba(52, 211, 153, 0.3);
            box-shadow: var(--glass-highlight), 0 20px 50px rgba(52, 211, 153, 0.1);
        }

        .price-card.basic {
            background: rgba(14, 165, 233, 0.02);
            border-top: 2px solid #38bdf8;
            transform: scale(1.05);
            z-index: 2;
        }

        .price-card.basic:hover {
            transform: scale(1.05) translateY(-10px);
            border-color: rgba(56, 189, 248, 0.3);
            box-shadow: var(--glass-highlight), 0 20px 50px rgba(56, 189, 248, 0.15);
        }

        .price-card.premium {
            border-top: 2px solid #fbbf24;
        }

        .price-card.premium:hover {
            border-color: rgba(251, 191, 36, 0.3);
            box-shadow: var(--glass-highlight), 0 20px 50px rgba(251, 191, 36, 0.1);
        }

        .price-card h3 {
            font-size: 1.5rem;
            color: var(--text-main);
            margin: 0 0 10px 0;
        }

        .price-card .price {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--text-main);
            margin: 20px 0;
            letter-spacing: -0.03em;
        }

        .price-card .price span {
            font-size: 1rem;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: normal;
        }

        .price-card ul {
            list-style: none;
            padding: 0;
            margin: 30px 0;
            text-align: left;
            flex: 1;
        }

        .price-card ul li {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            font-size: 0.95rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .price-card ul li::before {
            content: '✓';
            font-weight: bold;
        }

        .price-card.free ul li::before {
            color: var(--success);
        }

        .price-card.basic ul li::before {
            color: #38bdf8;
        }

        .price-card.premium ul li::before {
            color: #fbbf24;
        }

        /* OWNER DASHBOARD COLLAPSIBLE SIDEBAR */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 250px;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(30px);
            border-right: 1px solid var(--glass-border);
            padding: 30px 10px;
            z-index: 50;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: var(--transition-spring);
            overflow-y: auto;
            overflow-x: hidden;
        }

        .sidebar::-webkit-scrollbar {
            width: 0px;
        }

        .sidebar-link {
            color: var(--text-muted);
            text-decoration: none;
            padding: 14px 16px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: var(--transition-spring);
            cursor: pointer;
            border: 1px solid transparent;
            text-align: left;
            background: transparent;
            width: 100%;
            white-space: nowrap;
        }

        .sidebar-link .icon {
            min-width: 24px;
            text-align: center;
            font-size: 1.1rem;
        }

        .sidebar-link:hover,
        .sidebar-link.active {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        /* SIDEBAR COLLAPSED STATE (Desktop only) */
        @media (min-width: 768px) {
            .sidebar.collapsed {
                width: 80px;
                padding: 30px 10px;
            }

            .sidebar.collapsed .sidebar-text {
                display: none;
                opacity: 0;
            }

            .sidebar.collapsed~.main-content {
                margin-left: 80px;
                width: calc(100% - 80px);
            }

            .sidebar.collapsed .sidebar-link {
                justify-content: center;
                padding: 14px 0;
            }

            .sidebar.collapsed .sidebar-link .icon {
                margin-right: 0;
                font-size: 1.4rem;
            }

            .sidebar.collapsed .sidebar-link:hover,
            .sidebar.collapsed .sidebar-link.active {
                transform: translateY(-2px);
            }
        }

        .main-content {
            margin-left: 250px;
            width: calc(100% - 250px);
            min-height: 100vh;
            padding: 40px;
            transition: var(--transition-spring);
        }

        .theme-dark {
            --bg-base: rgba(8, 8, 12, 0.98);
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .summary-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-card);
            padding: 24px;
            backdrop-filter: blur(20px);
            transition: var(--transition-spring);
        }

        .summary-card:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: var(--glass-highlight), 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        .summary-card h3 {
            margin: 0 0 6px 0;
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 700;
        }

        .summary-card p {
            margin: 0;
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .tenant-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 24px;
        }

        .list-item-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            transition: var(--transition-spring);
        }

        .list-item-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(4px);
        }

        .badge {
            padding: 6px 14px;
            border-radius: var(--radius-pill);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
            border: 1px solid transparent;
        }

        .badge.paid {
            background: rgba(52, 211, 153, 0.15);
            color: var(--success);
            border-color: rgba(52, 211, 153, 0.4);
        }

        .badge.pending {
            background: rgba(251, 191, 36, 0.15);
            color: var(--warning);
            border-color: rgba(251, 191, 36, 0.4);
        }

        .badge.overdue {
            background: rgba(248, 113, 113, 0.15);
            color: var(--danger);
            border-color: rgba(248, 113, 113, 0.4);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(15px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
            opacity: 0;
            transition: var(--transition-spring);
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal {
            background: var(--bg-base);
            padding: 36px;
            border-radius: var(--radius-card);
            width: 100%;
            max-width: 650px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-highlight), 0 30px 80px rgba(0, 0, 0, 0.8);
            transform: scale(0.9) translateY(20px);
            transition: var(--transition-spring);
            opacity: 0;
            position: relative;
        }

        .modal::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            z-index: -1;
        }

        .modal-overlay.active .modal {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        /* Auth Tabs */
        .auth-tab {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            border: none;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition-spring);
            background: transparent;
            color: var(--text-muted);
        }

        .auth-tab.active {
            background: var(--glass-bg);
            color: var(--text-main);
            box-shadow: var(--glass-highlight), 0 4px 10px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--glass-border);
        }

        #appToast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translate(-50%, -20px);
            opacity: 0;
            z-index: 9999;
            transition: var(--transition-spring);
            pointer-events: none;
            background: var(--glass-bg);
            color: var(--text-main);
            border: 1px solid var(--glass-highlight);
            padding: 16px 24px;
            border-radius: 16px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            color: var(--text-main);
            font-size: 1rem;
        }

        #appToast.show {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        /* Mobile Responiveness */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                width: 250px;
            }

            .main-content {
                margin-left: 0 !important;
                width: 100% !important;
                padding: 20px;
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }
        }

        @media (max-width: 768px) {
            .landing-section {
                padding: 60px 20px !important;
            }
            .landing-hero {
                padding: 100px 20px 60px !important;
            }
            .features-grid, .pricing-grid {
                grid-template-columns: 1fr !important;
            }
            .landing-title {
                font-size: 2.5rem !important;
            }
            #who {
                padding-left: 20px !important;
                padding-right: 20px !important;
            }
        }
/* AI Assistant Chat CSS */
.ai-message {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    align-self: flex-start;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 85%;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}


.ai-bubble {
    background: rgba(255, 255, 255, 0.08); /* Lighter background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    padding: 14px 20px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-bubble h2 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
}

.ai-bubble h3 {
    font-size: 1.05rem;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 700;
}

.ai-bubble ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.ai-bubble li {
    margin-bottom: 6px;
}

.ai-bubble p {
    margin-top: 0;
    margin-bottom: 12px;
}

.ai-bubble p:last-child {
    margin-bottom: 0;
}

.ai-bubble strong {
    color: #a855f7;
    font-weight: 700;
}


.ai-greeting .ai-bubble {
    border-left: 2px solid #a855f7;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 85%;
}

.user-bubble {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    padding: 14px 20px;
    border-radius: 18px 18px 4px 18px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 8px 20px rgba(168, 85, 247, 0.3);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.ai-input-wrapper:focus-within {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 4px 20px rgba(168, 85, 247, 0.15);
}

.ai-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    padding: 8px 0;
}

.ai-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.ai-input-wrapper button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 12px;
}

.ai-input-wrapper button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.4);
}

.ai-input-wrapper button:active {
    transform: scale(0.95);
}

/* Driver.js Custom PG Engine Theme overrides */
div.driver-popover {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15) !important;
    color: #e2e8f0 !important;
    padding: 24px !important;
    font-family: inherit !important;
}

div.driver-popover-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

div.driver-popover-description {
    font-size: 0.95rem !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

div.driver-popover-footer button {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: none !important;
    color: white !important;
    text-shadow: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

div.driver-popover-footer button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4) !important;
}

div.driver-popover-footer .driver-popover-close-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

div.driver-popover-footer .driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

/* Make arrow matching */
div.driver-popover-arrow {
    border-color: var(--glass-bg) !important;
}
