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

:root {
    --bg: #081910;
    --bg-raised: #0D2419;
    --bg-card: #112E20;
    --bg-hover: #163A28;
    --primary: #34D399;
    --primary-dim: #267A56;
    --primary-glow: rgba(52, 211, 153, 0.07);
    --primary-border: rgba(52, 211, 153, 0.12);
    --accent: #E8634A;
    --accent-hover: #F07560;
    --accent-glow: rgba(232, 99, 74, 0.25);
    --text: #EAF2ED;
    --text-secondary: #92ADA0;
    --text-muted: #4E7360;
    --border: #1A3D2B;
    --border-hover: #285C3E;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grain texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.45;
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.35s, backdrop-filter 0.35s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(8, 25, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo span { color: var(--primary); }

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* --- HERO --- */
.hero {
    padding: 11rem 2.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Ambient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(52, 211, 153, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero-tag-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 1.35rem;
    position: relative;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--accent-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    color: var(--text);
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

/* --- PROOF BAR --- */
.proof-bar {
    max-width: 860px;
    margin: 2rem auto 0;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.proof-item { text-align: center; }

.proof-num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.proof-num span { color: var(--primary); }

.proof-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* --- SERVICES --- */
.services {
    padding: 6rem 2.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2.75rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.85rem;
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.svc-card:hover::after { transform: scaleX(1); }

/* Grid spans — asymmetric, not uniform */
.svc-card:nth-child(1) { grid-column: span 7; min-height: 220px; }
.svc-card:nth-child(2) { grid-column: span 5; min-height: 220px; }
.svc-card:nth-child(3) { grid-column: span 4; }
.svc-card:nth-child(4) { grid-column: span 4; }
.svc-card:nth-child(5) { grid-column: span 4; }

.svc-marker {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-glow);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.svc-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.svc-card:nth-child(1) h3,
.svc-card:nth-child(2) h3 { font-size: 1.4rem; }

.svc-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
}

.svc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid var(--primary-border);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    width: fit-content;
}

/* --- AUDIENCE --- */
.audience {
    padding: 0 2.5rem 6rem;
    max-width: 1060px;
    margin: 0 auto;
}

.audience-flex {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.aud-card {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.aud-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.aud-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--primary-glow);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1rem;
    color: var(--primary);
}

.aud-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.aud-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- QUOTE --- */
.quote-section {
    padding: 3rem 2.5rem 4rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.quote-text em {
    font-style: italic;
    color: var(--primary);
    font-weight: 700;
}

.quote-attr {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- CTA --- */
.cta-section {
    padding: 1rem 2.5rem 5rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3.25rem 2.75rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
.footer {
    padding: 2rem 2.5rem;
    max-width: 1060px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-left {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-left strong {
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--text); }

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-card:nth-child(1),
    .svc-card:nth-child(2),
    .svc-card:nth-child(3),
    .svc-card:nth-child(4),
    .svc-card:nth-child(5) {
        grid-column: span 1;
        min-height: auto;
    }
    .svc-card:nth-child(5) { grid-column: span 2; }

    .audience-flex { gap: 0.6rem; }
    .aud-card { min-width: 120px; }

    .proof-bar { gap: 2rem; padding: 2rem; }
}

@media (max-width: 640px) {
    .nav { padding: 0 1.25rem; }
    .nav-link { display: none; }

    .hero { padding: 8rem 1.25rem 2.5rem; }

    .proof-bar {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 1.75rem;
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }

    .proof-item { min-width: 70px; }

    .services, .audience, .quote-section, .cta-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .svc-grid { grid-template-columns: 1fr; }
    .svc-card:nth-child(1),
    .svc-card:nth-child(2),
    .svc-card:nth-child(3),
    .svc-card:nth-child(4),
    .svc-card:nth-child(5) {
        grid-column: span 1;
    }

    .audience-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .aud-card:last-child { grid-column: span 2; }

    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { justify-content: center; }

    .cta-card { padding: 2.5rem 1.5rem; }

    .footer-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== CHATBOT ===== */

/* Floating Action Button */
.chatbot-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #d4553d 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(232, 99, 74, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1100;
}

.chatbot-fab::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.chatbot-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 8px 24px rgba(232, 99, 74, 0.5),
        0 16px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.chatbot-fab:hover::before {
    opacity: 0.3;
}

.chatbot-fab.active {
    transform: scale(0.95);
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.chatbot-fab svg {
    width: 26px;
    height: 26px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.chatbot-fab.active svg {
    transform: rotate(135deg);
    color: var(--text-muted);
}

/* Chat Panel */
.chatbot-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 400px;
    max-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.92);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1099;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chatbot-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    padding: 1.125rem 1.25rem;
    background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(52, 211, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.chatbot-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.chatbot-avatar svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.chatbot-header-text {
    flex: 1;
    min-width: 0;
}

.chatbot-header-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.chatbot-header-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Close button in header */
.chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-muted);
    flex-shrink: 0;
}

.chatbot-close:hover {
    background: var(--bg-raised);
    border-color: var(--border);
    color: var(--text);
}

.chatbot-close svg {
    width: 18px;
    height: 18px;
}

/* Message Body */
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
    max-height: 380px;
    scroll-behavior: smooth;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Messages */
.chat-message {
    max-width: 88%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: messageSlideIn 0.3s ease-out;
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-text {
    padding: 0.875rem 1.125rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.chat-message.bot .message-text {
    background: var(--bg-raised);
    color: var(--text-secondary);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, var(--accent) 0%, #d4553d 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow:
        0 4px 12px rgba(232, 99, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.375rem;
    padding-right: 0.5rem;
}

.quick-reply {
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.quick-reply:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}

.quick-reply:active {
    transform: translateY(0) scale(0.98);
}

/* Selection Badge */
.selection-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    background: var(--primary-glow);
    border-radius: 100px;
    align-self: flex-start;
    border: 1px solid var(--primary-border);
}

/* Input Area */
.chat-input-area {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-hover) 100%);
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.4;
    transition: all 0.2s;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chat-input-area textarea::placeholder {
    color: var(--text-muted);
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow:
        0 4px 12px rgba(52, 211, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.chat-input-area button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow:
        0 6px 16px rgba(52, 211, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chat-input-area button:active:not(:disabled) {
    transform: scale(0.98);
}

.chat-input-area button:disabled {
    background: var(--border);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.chat-input-area button svg {
    color: #fff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Typing Indicator */
.chatbot-typing {
    display: none;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 0.75rem 1rem;
    background: var(--bg-raised);
    border-radius: 16px;
    border-bottom-left-radius: 6px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Session Ended */
.session-ended {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.session-ended span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.session-ended button {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    flex-shrink: 0;
}

.session-ended button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-1px);
}

/* Mobile Styles */
@media (max-width: 900px) {
    .chatbot-fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .chatbot-fab.active {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.5);
    }

    .chatbot-fab svg {
        width: 24px;
        height: 24px;
    }

    .chatbot-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        overflow: hidden;
    }

    .chatbot-panel.open {
        transform: translateY(0);
    }

    .chatbot-header {
        padding: 1rem 1.25rem;
        padding-top: 1.5rem;
        flex-shrink: 0;
    }

    /* Drag handle for mobile */
    .chatbot-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
    }

    .chatbot-body {
        flex: 1;
        min-height: 0;
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .chat-input-area {
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
    }

    .quick-replies {
        gap: 0.5rem;
    }

    .quick-reply {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .message-text {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .chatbot-typing {
        padding: 0.5rem 1rem;
    }

    .session-ended {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .session-ended button {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}
