
/* Floating Launcher Button (Unified across index.html and nonprofit.html) */
.floating-btn {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 10000;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
[dir="ltr"] .floating-btn {
    left: auto;
    right: 26px;
}
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(231, 192, 113, 0.6);
    animation: pulseRing 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
    pointer-events: none;
}
.pulse-ring.delay {
    animation-delay: 1.25s;
}
@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.9; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}
.float-core {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E7C071 0%, #ECD6AC 50%, #E5E4DF 100%);
    color: #0f1b33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(231, 192, 113, 0.4);
    border: 2px solid rgba(231, 192, 113, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}
.float-core:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(231, 192, 113, 0.55);
}
.live-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #25d366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/**
 * Vestra Tech — Smart AI Business Assistant Styles
 * WhatsApp Flows-inspired interactive UI, fully responsive for desktop & mobile.
 */

:root {
    --v-ast-primary: #0f1b33;
    --v-ast-primary-dark: #080e1a;
    --v-ast-primary-light: #f1f5f9;
    --v-ast-gold: #E7C071;
    --v-ast-gold-dark: #d4a956;
    --v-ast-navy: #0f1b33;
    --v-ast-whatsapp: #25d366;
    --v-ast-whatsapp-dark: #1da851;
    --v-ast-bg: #f8fafc;
    --v-ast-card: #ffffff;
    --v-ast-border: #e2e8f0;
    --v-ast-text: #0f1b33;
    --v-ast-muted: #64748b;
    --v-ast-shadow: 0 16px 48px rgba(15, 28, 36, 0.2), 0 4px 16px rgba(15, 28, 36, 0.08);
    --v-ast-radius: 20px;
    --v-ast-bubble-user: #f1f5f9;
    --v-ast-bubble-bot: #ffffff;
}

/* Backdrop Overlay for Assistant */
.v-ast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 27, 51, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.v-ast-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Floating Launcher Overlay & Panel */
.v-assistant-container {
    position: fixed;
    bottom: 96px;
    left: 26px;
    z-index: 10000;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: 680px;
    max-height: calc(100vh - 120px);
    background: var(--v-ast-bg);
    border: 1px solid var(--v-ast-border);
    border-radius: var(--v-ast-radius);
    box-shadow: var(--v-ast-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    transform: scale(0.94) translateY(20px);
    opacity: 0;
}

[dir="ltr"] .v-assistant-container,
.v-assistant-container.is-ltr {
    left: auto;
    right: 26px;
}

.v-assistant-container.is-active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Header */
.v-ast-header {
    background: #ffffff;
    border-bottom: 1px solid var(--v-ast-border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.v-ast-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.v-ast-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f1b33 0%, #1e293b 100%);
    color: #E7C071;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 27, 51, 0.25);
    border: 1px solid rgba(231, 192, 113, 0.35);
}

.v-ast-online-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--v-ast-whatsapp);
    border: 2px solid #ffffff;
}

.v-ast-titles {
    min-width: 0;
}

.v-ast-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--v-ast-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.v-ast-subtitle {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--v-ast-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.v-ast-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Language selector in header */
.v-ast-lang-wrap {
    position: relative;
}

.v-ast-lang-btn {
    background: var(--v-ast-primary-light);
    border: 1px solid #e2e8f0;
    color: var(--v-ast-primary-dark);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.v-ast-lang-btn:hover {
    background: #f1f5f9;
}

.v-ast-lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid var(--v-ast-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    min-width: 140px;
    z-index: 10010;
    display: none;
    flex-direction: column;
    padding: 4px;
}

[dir="ltr"] .v-ast-lang-menu,
.v-assistant-container.is-ltr .v-ast-lang-menu {
    left: auto;
    right: 0;
}

.v-ast-lang-menu.show {
    display: flex;
}

.v-ast-lang-menu button {
    background: none;
    border: none;
    text-align: inherit;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v-ast-navy);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v-ast-lang-menu button:hover {
    background: var(--v-ast-primary-light);
    color: var(--v-ast-primary);
}

.v-ast-lang-menu button.active {
    background: var(--v-ast-primary);
    color: #ffffff;
}

.v-ast-icon-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-ast-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.v-ast-icon-btn:hover {
    background: #f1f5f9;
    color: var(--v-ast-navy);
}

/* Chat & Content Body */
.v-ast-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fbfdfc;
    scroll-behavior: smooth;
}

/* Message Bubbles */
.v-ast-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 90%;
    animation: vAstFadeIn 0.25s ease-out;
}

.v-ast-msg-bot {
    align-self: flex-start;
}

.v-ast-msg-user {
    align-self: flex-end;
}

.v-ast-bubble {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.v-ast-msg-bot .v-ast-bubble {
    background: var(--v-ast-bubble-bot);
    color: var(--v-ast-navy);
    border: 1px solid #e2e8f0;
    border-top-right-radius: 4px;
}

[dir="ltr"] .v-ast-msg-bot .v-ast-bubble,
.v-assistant-container.is-ltr .v-ast-msg-bot .v-ast-bubble {
    border-top-right-radius: 16px;
    border-top-left-radius: 4px;
}

.v-ast-msg-user .v-ast-bubble {
    background: var(--v-ast-bubble-user);
    color: var(--v-ast-navy);
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
}

[dir="ltr"] .v-ast-msg-user .v-ast-bubble,
.v-assistant-container.is-ltr .v-ast-msg-user .v-ast-bubble {
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.v-ast-time {
    font-size: 10px;
    color: #94a3b8;
    padding: 0 4px;
}

.v-ast-msg-bot .v-ast-time {
    text-align: right;
}

.v-ast-msg-user .v-ast-time {
    text-align: left;
}

[dir="ltr"] .v-ast-msg-bot .v-ast-time,
.v-assistant-container.is-ltr .v-ast-msg-bot .v-ast-time {
    text-align: left;
}

[dir="ltr"] .v-ast-msg-user .v-ast-time,
.v-assistant-container.is-ltr .v-ast-msg-user .v-ast-time {
    text-align: right;
}

/* WhatsApp Flows Navigation Menu */
.v-ast-flows-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.v-ast-flow-card {
    background: #ffffff;
    border: 1px solid var(--v-ast-border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: inherit;
    width: 100%;
}

.v-ast-flow-card:hover {
    border-color: var(--v-ast-primary);
    background: var(--v-ast-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 136, 106, 0.08);
}

.v-ast-flow-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--v-ast-primary-light);
    color: var(--v-ast-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.v-ast-flow-card:hover .v-ast-flow-icon {
    background: var(--v-ast-primary);
    color: #ffffff;
}

.v-ast-flow-info {
    flex: 1;
    min-width: 0;
}

.v-ast-flow-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--v-ast-navy);
    margin: 0 0 2px;
}

.v-ast-flow-desc {
    font-size: 11.5px;
    color: var(--v-ast-muted);
    margin: 0;
    line-height: 1.4;
}

.v-ast-flow-chevron {
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
}

/* Interactive Flow Step Card */
.v-ast-step-card {
    background: #ffffff;
    border: 1px solid var(--v-ast-border);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: vAstSlideUp 0.25s ease-out;
}

.v-ast-progress-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v-ast-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--v-ast-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v-ast-progress-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.v-ast-progress-fill {
    height: 100%;
    background: var(--v-ast-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.v-ast-step-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--v-ast-navy);
    margin: 0;
}

/* Form inputs inside flow */
.v-ast-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v-ast-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--v-ast-navy);
}

.v-ast-input,
.v-ast-select,
.v-ast-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--v-ast-navy);
    background: #ffffff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v-ast-input:focus,
.v-ast-select:focus,
.v-ast-textarea:focus {
    border-color: var(--v-ast-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(64, 136, 106, 0.15);
}

.v-ast-textarea {
    resize: none;
    min-height: 70px;
}

/* Selectable options grid */
.v-ast-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.v-ast-option-pill {
    background: #f8fafc;
    border: 1px solid var(--v-ast-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--v-ast-navy);
    cursor: pointer;
    text-align: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.v-ast-option-pill:hover,
.v-ast-option-pill.active {
    background: var(--v-ast-primary-light);
    border-color: var(--v-ast-primary);
    color: var(--v-ast-primary-dark);
}

.v-ast-option-pill.active {
    font-weight: 700;
}

/* Action Buttons inside Card */
.v-ast-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.v-ast-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.v-ast-btn-primary {
    background: var(--v-ast-primary);
    color: #ffffff;
    flex: 1;
}

.v-ast-btn-primary:hover {
    background: var(--v-ast-primary-dark);
}

.v-ast-btn-whatsapp {
    background: var(--v-ast-whatsapp);
    color: #ffffff;
    flex: 1;
    font-weight: 800;
}

.v-ast-btn-whatsapp:hover {
    background: var(--v-ast-whatsapp-dark);
}

.v-ast-btn-ghost {
    background: #f1f5f9;
    color: var(--v-ast-muted);
}

.v-ast-btn-ghost:hover {
    background: #f1f5f9;
    color: var(--v-ast-navy);
}

/* Review Summary Card */
.v-ast-review-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-ast-review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.v-ast-review-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.v-ast-review-key {
    color: var(--v-ast-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.v-ast-review-val {
    color: var(--v-ast-navy);
    font-weight: 700;
    text-align: end;
    word-break: break-word;
}

/* Success Confirmation Banner */
.v-ast-success-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.v-ast-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--v-ast-whatsapp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.v-ast-ref-badge {
    background: var(--v-ast-primary-light);
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: 800;
    color: var(--v-ast-primary-dark);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Quick Inquiry Chips */
.v-ast-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.v-ast-chip {
    background: #ffffff;
    border: 1px solid var(--v-ast-border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v-ast-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.v-ast-chip:hover {
    border-color: var(--v-ast-primary);
    color: var(--v-ast-primary);
    background: var(--v-ast-primary-light);
}

/* Footer & Input Bar */
.v-ast-footer {
    background: #ffffff;
    border-top: 1px solid var(--v-ast-border);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.v-ast-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-ast-chat-input {
    flex: 1;
    min-height: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 13.5px;
    background: #f8fafc;
    color: var(--v-ast-navy);
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.v-ast-chat-input:focus {
    border-color: var(--v-ast-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(64, 136, 106, 0.12);
}

.v-ast-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--v-ast-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.v-ast-send-btn:hover {
    background: var(--v-ast-primary-dark);
    transform: scale(1.05);
}

.v-ast-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--v-ast-muted);
}

.v-ast-footer-meta a {
    color: var(--v-ast-primary);
    text-decoration: none;
    font-weight: 700;
}

/* Animations */
@keyframes vAstFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive adjustments for Mobile & All Screen Resolutions */
@media (max-width: 600px) {
    /* Launcher button positioning on mobile */
    .floating-btn {
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        left: 16px;
    }
    [dir="ltr"] .floating-btn {
        left: auto;
        right: 16px;
    }
    .float-core {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .pulse-ring {
        width: 50px;
        height: 50px;
    }

    /* Hide floating button while modal is open to avoid overlapping */
    body.v-ast-active .floating-btn {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.85);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    /* Mobile Assistant Container: Sleek, high-end floating bottom sheet (NOT raw full-screen) */
    .v-assistant-container {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
        top: auto !important;
        width: auto !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        /* Dynamic viewport height handles browser address bar collapse/expand cleanly */
        height: min(620px, calc(86dvh - 18px), calc(86vh - 18px)) !important;
        max-height: calc(100dvh - 28px) !important;
        background: #ffffff !important;
        border-radius: 22px !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        box-shadow: 0 16px 48px rgba(15, 27, 51, 0.35), 0 4px 16px rgba(15, 27, 51, 0.12) !important;
        transform: translateY(22px) scale(0.97) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease !important;
        overflow: hidden !important;
        z-index: 10000 !important;
    }

    .v-assistant-container.is-active {
        display: flex !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
    }

    /* Header adjustments on mobile */
    .v-ast-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    .v-ast-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
    }

    .v-ast-title {
        font-size: 13.5px !important;
        max-width: 135px !important;
    }

    .v-ast-subtitle {
        font-size: 10px !important;
    }

    .v-ast-header-actions {
        gap: 5px !important;
    }

    .v-ast-lang-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    /* Thumb-friendly, prominent close button */
    .v-ast-icon-btn#v-ast-close-btn {
        width: 36px !important;
        height: 36px !important;
        background: #f1f5f9 !important;
        color: #0f1b33 !important;
        border-radius: 50% !important;
        font-size: 15px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .v-ast-icon-btn#v-ast-close-btn:active {
        background: #e2e8f0 !important;
        transform: scale(0.92) !important;
    }

    /* Body on mobile */
    .v-ast-body {
        padding: 12px 14px !important;
        gap: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .v-ast-bubble {
        padding: 11px 13px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    /* Flow cards on mobile */
    .v-ast-flow-card {
        padding: 11px 12px !important;
        border-radius: 12px !important;
    }

    .v-ast-flow-title {
        font-size: 13px !important;
    }

    .v-ast-flow-desc {
        font-size: 11px !important;
    }

    /* Footer: respects safe areas, never hidden beneath mobile address bars */
    .v-ast-footer {
        padding: 10px 12px max(10px, env(safe-area-inset-bottom, 10px)) 12px !important;
        gap: 6px !important;
    }

    .v-ast-chat-input {
        min-height: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
    }

    .v-ast-send-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    .v-ast-footer-meta {
        font-size: 9.5px !important;
    }
}

/* Extra small mobile screens (320px - 380px) */
@media (max-width: 380px) {
    .v-assistant-container {
        left: 6px !important;
        right: 6px !important;
        bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
        height: min(580px, calc(88dvh - 12px), calc(88vh - 12px)) !important;
        border-radius: 18px !important;
    }

    .v-ast-header {
        padding: 10px 12px !important;
    }

    .v-ast-avatar {
        width: 34px !important;
        height: 34px !important;
    }

    .v-ast-title {
        font-size: 12.5px !important;
        max-width: 110px !important;
    }

    .v-ast-flow-card {
        padding: 9px 10px !important;
    }

    .v-ast-flow-title {
        font-size: 12px !important;
    }

    .v-ast-flow-desc {
        font-size: 10px !important;
    }
}

/* Mobile landscape view */
@media (max-height: 520px) and (orientation: landscape) {
    .v-assistant-container {
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        bottom: 8px !important;
    }
}

.v-ast-flow-icon { display: none !important; }
