/**
 * Hắc Kim AI Property Assistant - Chat Widget Styles
 * Mobile-first, lightweight, scoped to .hk-ai-*
 */

:root {
    --hk-ai-primary: #CA6743;
    --hk-ai-primary-hover: #b55734;
    --hk-ai-primary-light: rgba(202, 103, 67, 0.12);
    --hk-ai-dark: #0F172A;
    --hk-ai-dark-header: #111827;
    --hk-ai-dark-header-sub: #1F2937;
    --hk-ai-gold: #C5A880;
    --hk-ai-bg: #FFFFFF;
    --hk-ai-surface: #F8FAFC;
    --hk-ai-border: #E2E8F0;
    --hk-ai-text: #1E293B;
    --hk-ai-text-muted: #64748B;
    --hk-ai-text-light: #94A3B8;
    --hk-ai-online: #10B981;
    --hk-ai-error-bg: #FEF2F2;
    --hk-ai-error-border: #FCA5A5;
    --hk-ai-error-text: #991B1B;
    --hk-ai-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --hk-ai-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Widget Container
   ========================================================================== */
.hk-ai-widget-container {
    position: fixed;
    right: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    z-index: 99990;
    pointer-events: none;
    font-family: var(--hk-ai-font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-widget-container.is-ready,
.hk-ai-widget-container.hk-ai-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#hk-floating-cluster .hk-ai-widget-container {
    opacity: 1;
    transform: none;
    transition: none;
}

.hk-ai-widget-container button,
.hk-ai-document-lightbox-overlay button {
    touch-action: manipulation;
}

.hk-ai-widget-container.hk-ai-open {
    z-index: 99999;
}

/* Ensure any modal/lightbox on the site is strictly above the chat widget */
body.modal-open .hk-ai-widget-container,
body.fancybox-active .hk-ai-widget-container,
body.has-active-modal .hk-ai-widget-container {
    z-index: 900 !important;
}

/* ==========================================================================
   Launcher Trigger Button (Exclusive Gold Glassmorphism - Style BĐS Độc Quyền)
   ========================================================================== */
.hk-ai-launcher {
    position: relative;
    z-index: 2;
    height: 52px;
    padding: 0 22px 0 18px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 185, 0, 0.75);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
}

.hk-ai-launcher:hover {
    transform: none;
    background: rgba(15, 23, 42, 0.95);
    border-color: #fcb900;
    box-shadow: 0 0 14px rgba(252, 185, 0, 0.7), 0 0 28px rgba(252, 185, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hk-ai-launcher:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hk-ai-launcher:focus-visible {
    outline: 2px solid #fcb900;
    outline-offset: 3px;
}

.hk-ai-widget-container.hk-ai-open .hk-ai-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.75);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Sparkle AI Icon */
.hk-ai-launcher-icon--sparkle {
    width: 20px;
    height: 20px;
    color: #fcb900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(252, 185, 0, 0.6));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.hk-ai-launcher:hover .hk-ai-launcher-icon--sparkle {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(252, 185, 0, 0.95));
}

.hk-ai-launcher-icon--sparkle svg {
    width: 100%;
    height: 100%;
}

/* Text Labels */
.hk-ai-launcher-label {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
    text-shadow: none;
}

.hk-ai-launcher-label--mobile {
    display: none;
}

/* ==========================================================================
   Session Greeting Micro-Bubble (Welcome Tooltip)
   ========================================================================== */
.hk-ai-launcher-bubble {
    position: relative;
    margin-bottom: 12px;
    background: #111827;
    border: 1px solid rgba(213, 184, 117, 0.35);
    border-radius: 14px;
    padding: 12px 34px 12px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(213, 184, 117, 0.12);
    pointer-events: auto;
    cursor: pointer;
    max-width: 280px;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.hk-ai-launcher-bubble.hk-ai-bubble-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hk-ai-widget-container.hk-ai-open .hk-ai-launcher-bubble {
    display: none !important;
}

.hk-ai-launcher-bubble__title {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
    margin-bottom: 3px;
}

.hk-ai-launcher-bubble__text {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
}

.hk-ai-launcher-bubble__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    padding: 0;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.hk-ai-launcher-bubble__close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

#hk-floating-cluster .hk-ai-widget-container {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: auto;
}

body.hk-state-contact-open .hk-ai-launcher-bubble,
.hk-state-contact-open .hk-ai-launcher-bubble {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (min-width: 768px) {
    .hk-ai-launcher-bubble {
        position: absolute;
        right: calc(100% + 14px);
        bottom: 0;
        margin-bottom: 0;
        width: 270px;
        max-width: 290px;
        transform: translateX(10px) scale(0.96);
    }

    .hk-ai-launcher-bubble.hk-ai-bubble-visible {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    .hk-ai-launcher-bubble__arrow {
        position: absolute;
        top: 50%;
        bottom: auto;
        right: -6px;
        width: 12px;
        height: 12px;
        background: #111827;
        border-right: 1px solid rgba(213, 184, 117, 0.35);
        border-top: 1px solid rgba(213, 184, 117, 0.35);
        border-bottom: none;
        transform: translateY(-50%) rotate(45deg);
    }
}

/* Bottom Bar sync on property single pages */
.hk-ai-widget-container.hk-ai-has-bottom-bar {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Chat Panel (Desktop Window)
   ========================================================================== */
.hk-ai-panel {
    position: fixed;
    right: 28px;
    left: auto;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: 410px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: min(620px, calc(100vh - 120px));
    max-height: min(620px, calc(100dvh - 120px));
    background: var(--hk-ai-bg);
    border-radius: 18px;
    box-shadow: var(--hk-ai-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99995;
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
    visibility: hidden;
}

.hk-ai-panel.hk-ai-panel--open,
body.hk-state-chat-open .hk-ai-panel,
.hk-ai-widget-container.hk-ai-open .hk-ai-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.hk-ai-panel.hk-ai-has-bottom-bar,
.hk-ai-widget-container.hk-ai-has-bottom-bar ~ .hk-ai-panel,
.hk-ai-widget-container.hk-ai-has-bottom-bar .hk-ai-panel {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-height: min(640px, calc(100vh - 160px));
    max-height: min(640px, calc(100dvh - 160px));
}

.hk-ai-bottomsheet-handle-wrap {
    display: none;
}

.hk-ai-backdrop {
    display: none;
}

/* ==========================================================================
   Panel Header
   ========================================================================== */
.hk-ai-header {
    background: var(--hk-ai-dark-header);
    color: #FFFFFF;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--hk-ai-primary);
    /* Header copy is readable text; only its controls remain non-selectable. */
    -webkit-user-select: text;
    user-select: text;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.hk-ai-header button,
.hk-ai-header button * {
    -webkit-user-select: none;
    user-select: none;
}

.hk-ai-header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.hk-ai-header-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1.5px solid var(--hk-ai-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hk-ai-gold);
    flex-shrink: 0;
}

.hk-ai-header-avatar svg {
    width: 20px;
    height: 20px;
}

.hk-ai-header-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hk-ai-online);
    border: 2px solid var(--hk-ai-dark-header);
    box-shadow: 0 0 6px var(--hk-ai-online);
}

.hk-ai-header-info {
    display: flex;
    flex-direction: column;
}

.hk-ai-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.hk-ai-header-subrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
    flex-wrap: wrap;
}

.hk-ai-header-subtitle {
    font-size: 11px;
    color: #34D399;
    line-height: 1.2;
    font-weight: 500;
}

.hk-ai-header-dot-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    line-height: 1;
}

.hk-ai-header-hotline {
    color: var(--hk-ai-gold, #D5B875);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hk-ai-header-hotline:hover,
.hk-ai-header-hotline:focus-visible {
    color: #FFFFFF;
    text-decoration: underline;
    outline: none;
}

.hk-ai-header-hotline span,
.hk-ai-header-hotline strong {
    color: inherit;
    font-weight: 700;
}

.hk-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hk-ai-header-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hk-ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.hk-ai-header-btn:focus-visible,
.hk-ai-send-btn:focus-visible,
.hk-ai-qv-close-btn:focus-visible,
.hk-ai-doc-lb-close:focus-visible {
    outline: 2px solid var(--hk-ai-primary);
    outline-offset: 2px;
}

.hk-ai-header-btn svg {
    width: 17px;
    height: 17px;
}

/* Current property context: compact, outside the transcript scroll area. */
.hk-ai-property-context {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 7px 10px 7px 12px;
    background: #FFFAF7;
    border-bottom: 1px solid rgba(202, 103, 67, 0.18);
    box-sizing: border-box;
    flex-shrink: 0;
}

.hk-ai-property-context[hidden] {
    display: none;
}

.hk-ai-property-context__content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    row-gap: 1px;
    min-width: 0;
    flex: 1;
}

.hk-ai-property-context__label {
    grid-row: 1 / span 2;
    align-self: center;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(202, 103, 67, 0.12);
    color: var(--hk-ai-primary);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hk-ai-property-context__title,
.hk-ai-property-context__meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-ai-property-context__title {
    color: var(--hk-ai-text);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
}

.hk-ai-property-context__meta {
    color: var(--hk-ai-text-muted);
    font-size: 10.5px;
    line-height: 1.25;
}

.hk-ai-property-context__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-radius: 8px;
    background: transparent;
    color: var(--hk-ai-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    touch-action: manipulation;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hk-ai-property-context__close:hover {
    border-color: rgba(202, 103, 67, 0.45);
    background: rgba(202, 103, 67, 0.08);
    color: var(--hk-ai-primary);
}

.hk-ai-property-context__close:focus-visible {
    outline: 2px solid var(--hk-ai-primary);
    outline-offset: 2px;
}

.hk-ai-property-context__close svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Messages Area
   ========================================================================== */
.hk-ai-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--hk-ai-surface);
    scroll-behavior: smooth;
}

/*
 * Chat responses are user-owned, copyable content. Keep this explicit on the
 * scroll region and every descendant so theme/plugin rules cannot make cards,
 * markdown, chips, or metadata impossible to select.
 */
.hk-ai-messages,
.hk-ai-messages *,
.hk-ai-property-context,
.hk-ai-property-context * {
    -webkit-user-select: text !important;
    user-select: text !important;
}

.hk-ai-property-context button,
.hk-ai-property-context button * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Custom Scrollbar */
.hk-ai-messages::-webkit-scrollbar {
    width: 5px;
}

.hk-ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

.hk-ai-messages::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.hk-ai-messages::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Older transcript pagination: natural stream placement, never floats or obscures content */
.hk-ai-load-older {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    margin: 4px auto 12px auto;
    padding: 6px 14px;
    border: 1px solid var(--hk-ai-border);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--hk-ai-text-muted);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    font: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hk-ai-load-older svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hk-ai-load-older:hover:not(:disabled) {
    border-color: var(--hk-ai-primary);
    background: #FFFFFF;
    color: var(--hk-ai-primary);
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.15);
    transform: translateY(-1px);
}

.hk-ai-load-older:hover:not(:disabled) svg {
    transform: rotate(-45deg);
}

.hk-ai-load-older:focus-visible {
    outline: 2px solid var(--hk-ai-primary);
    outline-offset: 2px;
}

.hk-ai-load-older:disabled {
    cursor: wait;
    opacity: 0.7;
}

.hk-ai-load-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--hk-ai-border);
    border-top-color: var(--hk-ai-primary);
    border-radius: 50%;
    animation: hkAiSpin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* Welcome Card */
.hk-ai-welcome-card {
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid var(--hk-ai-border);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: hkAiFadeInUp 0.3s ease-out;
}

.hk-ai-welcome-greeting {
    font-size: 13.5px;
    color: var(--hk-ai-text);
    line-height: 1.55;
    margin-bottom: 12px;
}

/* Context Card (Bất động sản hiện tại trên trang) */
.hk-ai-context-card,
.hk-ai-context-card:hover,
.hk-ai-context-card:focus,
.hk-ai-context-card:active,
.hk-ai-context-card:visited,
.hk-ai-context-card * {
    text-decoration: none !important;
}

.hk-ai-context-card {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    align-items: stretch;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    box-sizing: border-box;
}

.hk-ai-context-card:hover {
    background: #FFFFFF;
    border-color: var(--hk-ai-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 103, 67, 0.15);
}

.hk-ai-context-thumb-wrap {
    position: relative;
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    height: 100%;
    background: #E2E8F0;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.hk-ai-context-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    margin: 0;
    transition: transform 0.3s ease;
}

.hk-ai-context-card:hover .hk-ai-context-thumb {
    transform: scale(1.05);
}

.hk-ai-context-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: var(--hk-ai-gold);
    border-radius: 0;
}

.hk-ai-context-thumb-placeholder svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.85;
}

.hk-ai-context-body {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hk-ai-context-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.hk-ai-context-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--hk-ai-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-context-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--hk-ai-text, #0F172A);
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.hk-ai-context-meta {
    font-size: 10.5px;
    color: var(--hk-ai-text-muted, #64748B);
    display: block;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Context Switch Card (Cross-Page Transition) */
.hk-ai-context-switch {
    background: #FFFFFF;
    border: 1px solid var(--hk-ai-border);
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: hkAiFadeInUp 0.3s ease-out;
}

.hk-ai-context-switch .hk-ai-context-card {
    margin-bottom: 10px;
    background: #F8FAFC;
}

.hk-ai-context-switch-icon {
    font-size: 14px;
}

.hk-ai-suggestions-title {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hk-ai-text-muted);
    margin-bottom: 8px;
}

.hk-ai-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hk-ai-suggestion-chip {
    background: var(--hk-ai-surface);
    border: 1px solid var(--hk-ai-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--hk-ai-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.hk-ai-suggestion-chip:hover {
    background: #FFFFFF;
    border-color: var(--hk-ai-primary);
    color: var(--hk-ai-primary);
    box-shadow: 0 2px 6px rgba(202, 103, 67, 0.15);
    transform: translateY(-1px);
}

.hk-ai-suggestion-chip:focus-visible {
    outline: 2px solid var(--hk-ai-primary);
    outline-offset: 2px;
}

.hk-ai-suggestion-chip::after {
    content: '→';
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--hk-ai-primary);
    opacity: 0.7;
    margin-left: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

.hk-ai-suggestion-chip:hover::after {
    transform: translateX(3px);
    opacity: 1;
}

/* Message Rows */
.hk-ai-msg-row {
    display: flex;
    flex-direction: column;
    animation: hkAiFadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-msg-row--user {
    align-items: flex-end;
}

.hk-ai-msg-row--assistant {
    align-items: flex-start;
}

/* Bubbles */
.hk-ai-bubble {
    max-width: 86%;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.hk-ai-msg-row--user .hk-ai-bubble {
    background: var(--hk-ai-primary);
    color: #FFFFFF;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.25);
}

.hk-ai-msg-row--assistant .hk-ai-bubble {
    max-width: 95%;
    background: #FFFFFF;
    color: var(--hk-ai-text);
    border-radius: 16px 16px 16px 4px;
    border: 1px solid var(--hk-ai-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Markdown formatting inside assistant bubble */
.hk-ai-bubble p {
    margin: 0 0 8px 0;
}

.hk-ai-bubble p:last-child {
    margin-bottom: 0;
}

.hk-ai-bubble strong {
    font-weight: 600;
    color: inherit;
}

.hk-ai-bubble ul,
.hk-ai-bubble ol {
    margin: 6px 0 8px 18px;
    padding: 0;
}

.hk-ai-bubble li {
    margin-bottom: 4px;
}

.hk-ai-bubble li:last-child {
    margin-bottom: 0;
}

.hk-ai-bubble a {
    color: var(--hk-ai-primary);
    text-decoration: underline;
    font-weight: 500;
    word-break: break-all;
}

.hk-ai-bubble a:hover {
    color: var(--hk-ai-primary-hover);
}

/* Message Meta (time) */
.hk-ai-msg-meta {
    font-size: 10.5px;
    color: var(--hk-ai-text-light);
    margin-top: 4px;
    padding: 0 4px;
}

/* Typing Indicator */
.hk-ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #FFFFFF;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid var(--hk-ai-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hk-ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hk-ai-primary);
    animation: hkAiBounce 1.2s infinite ease-in-out;
}

.hk-ai-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.hk-ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.hk-ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes hkAiBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Error Card & P0 Retry */
.hk-ai-error-bubble {
    background: var(--hk-ai-error-bg);
    border: 1px solid var(--hk-ai-error-border);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--hk-ai-error-text);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90%;
    animation: hkAiFadeInUp 0.25s ease-out;
}

.hk-ai-error-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.hk-ai-error-header svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.hk-ai-retry-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hk-ai-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(202, 103, 67, 0.25);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hk-ai-retry-btn:hover {
    background: var(--hk-ai-primary-hover);
    transform: translateY(-1px);
}

.hk-ai-retry-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* Transcript Loading State */
.hk-ai-transcript-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 10px;
    color: var(--hk-ai-text-muted);
    font-size: 13px;
}

.hk-ai-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--hk-ai-border);
    border-top-color: var(--hk-ai-primary);
    border-radius: 50%;
    animation: hkAiSpin 0.8s linear infinite;
}

@keyframes hkAiSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hkAiFadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Input Area
   ========================================================================== */
.hk-ai-input-area {
    border-top: 1px solid var(--hk-ai-border);
    background: #FFFFFF;
    padding: 10px 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.05);
}

.hk-ai-input-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--hk-ai-surface);
    border: 1.5px solid var(--hk-ai-border);
    border-radius: 14px;
    padding: 4px 6px 4px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hk-ai-input-form:focus-within {
    border-color: var(--hk-ai-primary);
    box-shadow: 0 0 0 3px var(--hk-ai-primary-light);
    background: #FFFFFF;
}

.hk-ai-textarea {
    flex: 1;
    min-height: 36px;
    max-height: 100px;
    padding: 6px 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--hk-ai-text);
    resize: none;
    line-height: 1.45;
}

.hk-ai-textarea::placeholder {
    color: var(--hk-ai-text-light);
}

.hk-ai-send-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--hk-ai-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hk-ai-send-btn:hover:not(:disabled) {
    background: var(--hk-ai-primary-hover);
    transform: scale(1.05);
}

.hk-ai-send-btn:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.hk-ai-send-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ==========================================================================
   Confirm Dialog Component (Smooth In-Widget Modal)
   ========================================================================== */
.hk-ai-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 18px;
}

.hk-ai-confirm-overlay.hk-ai-confirm-active {
    opacity: 1;
    pointer-events: auto;
}

.hk-ai-confirm-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
    padding: 22px 20px 18px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transform: scale(0.92) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.hk-ai-confirm-overlay.hk-ai-confirm-active .hk-ai-confirm-card {
    transform: scale(1) translateY(0);
}

.hk-ai-confirm-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(202, 103, 67, 0.1);
    border: 1px solid rgba(202, 103, 67, 0.25);
    color: var(--hk-ai-primary, #CA6743);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hk-ai-confirm-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.hk-ai-confirm-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hk-ai-dark, #0F172A);
    line-height: 1.3;
    margin-bottom: 6px;
}

.hk-ai-confirm-desc {
    font-size: 12px;
    color: var(--hk-ai-text-muted, #64748B);
    line-height: 1.45;
    margin: 0 0 18px;
}

.hk-ai-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hk-ai-confirm-btn {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    font-family: inherit;
}

.hk-ai-confirm-btn--cancel {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.hk-ai-confirm-btn--cancel:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.hk-ai-confirm-btn--ok {
    background: var(--hk-ai-primary, #CA6743);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.3);
}

.hk-ai-confirm-btn--ok:hover {
    background: var(--hk-ai-primary-hover, #b55734);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 103, 67, 0.4);
}

.hk-ai-confirm-btn:active {
    transform: scale(0.97);
}

/* ==========================================================================
   Grounded Property Cards & Action Buttons (HKAI-4000)
   ========================================================================== */
.hk-ai-properties-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.hk-ai-roi-card {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hk-ai-border);
    border-radius: 10px;
    background: #f8fafc;
}

.hk-ai-roi-card__title {
    margin-bottom: 6px;
    color: var(--hk-ai-text);
    font-size: 12px;
    font-weight: 700;
}

.hk-ai-roi-card__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--hk-ai-text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.hk-ai-roi-card__row strong {
    color: var(--hk-ai-primary);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Real Estate Cards - Zero Underlines & Compact Layout */
.hk-ai-prop-card,
.hk-ai-prop-card:hover,
.hk-ai-prop-card:focus,
.hk-ai-prop-card:active,
.hk-ai-prop-card:visited,
.hk-ai-prop-card * {
    text-decoration: none !important;
}

.hk-ai-prop-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid var(--hk-ai-border);
    border-radius: 8px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    transform: translateZ(0);
}

.hk-ai-prop-card:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(202, 103, 67, 0.15);
    border-color: var(--hk-ai-primary);
}

.hk-ai-prop-thumb-wrap {
    position: relative;
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    height: 100%;
    background: #E2E8F0;
    overflow: hidden;
    border-radius: 7px 0 0 7px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    flex-shrink: 0;
    display: block;
    transform: translateZ(0);
}

/* Container for Badges / Labels on Property Cards (Matching system's labels-wrap d-flex align-items-center gap-1) */
.hk-ai-prop-thumb-wrap .labels-wrap,
.hk-ai-labels-wrap {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    gap: 3.5px;
    z-index: 2;
    pointer-events: none;
    max-width: calc(100% - 8px);
}

.hk-ai-prop-thumb-wrap .label,
.hk-ai-labels-wrap .label,
.hk-ai-prop-status-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5px 5px 2px;
    border-radius: 3px;
    font-size: 7.5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
    z-index: 2;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.hk-ai-prop-thumb-wrap .label-status.hk-ai-prop-status-tag--sale,
.hk-ai-prop-thumb-wrap .label-status.hk-ai-label--sale,
.hk-ai-prop-status-tag--sale {
    border: 1px solid rgba(16, 185, 129, 0.65);
    color: #FFFFFF;
}

.hk-ai-prop-thumb-wrap .label-status.hk-ai-prop-status-tag--rent,
.hk-ai-prop-thumb-wrap .label-status.hk-ai-label--rent,
.hk-ai-prop-status-tag--rent {
    border: 1px solid rgba(59, 130, 246, 0.65);
    color: #FFFFFF;
}

.hk-ai-prop-thumb-wrap .label-status.hk-ai-prop-status-tag--project,
.hk-ai-prop-thumb-wrap .label-status.hk-ai-label--project,
.hk-ai-prop-status-tag--project {
    border: 1px solid rgba(252, 185, 0, 0.7);
    color: var(--hk-ai-gold, #C5A880);
}

.hk-ai-prop-thumb-wrap .label-exclusive,
.hk-ai-labels-wrap .label-exclusive {
    border: 1px solid rgba(252, 185, 0, 0.75);
    color: #FFFFFF;
    background: rgba(15, 23, 42, 0.85);
}

.hk-ai-prop-thumb-wrap .label-exclusive .exclusive-svg-icon,
.hk-ai-labels-wrap .label-exclusive .exclusive-svg-icon {
    width: 8px;
    height: 8px;
    color: #fcb900;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.hk-ai-prop-role-tag {
    display: none !important;
}

.hk-ai-prop-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.hk-ai-prop-card:hover .hk-ai-prop-thumb {
    transform: scale(1.05) translateZ(0);
}

.hk-ai-prop-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: var(--hk-ai-gold);
    gap: 2px;
}

.hk-ai-prop-thumb-placeholder svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.85;
}

.hk-ai-project-thumb-tag {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--hk-ai-gold);
    text-transform: uppercase;
}

.hk-ai-prop-body {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hk-ai-prop-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--hk-ai-primary) !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
    margin-bottom: 2px;
}

.hk-ai-prop-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--hk-ai-text, #0F172A) !important;
    line-height: 1.25;
    margin-bottom: 2px;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.hk-ai-prop-meta {
    font-size: 10.5px;
    color: var(--hk-ai-text-muted, #64748B) !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-decoration: none !important;
}

.hk-ai-prop-price-per-m2 {
    margin-top: 2px;
    color: var(--hk-ai-muted, #64748b);
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-prop-meta span {
    color: inherit;
    text-decoration: none !important;
}

.hk-ai-prop-btn-link {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hk-ai-primary);
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
}

.hk-ai-prop-card:hover .hk-ai-prop-btn-link {
    transform: translateX(2px);
    color: var(--hk-ai-primary-hover);
}

/* Project Group Card (Horizontal) */
.hk-ai-prop-card--project {
    border: 1.5px solid var(--hk-ai-gold);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.12);
}

.hk-ai-prop-card--project:hover {
    border-color: var(--hk-ai-primary);
    box-shadow: 0 4px 14px rgba(202, 103, 67, 0.18);
}

.hk-ai-project-sale-count {
    color: #059669 !important;
    font-weight: 500;
    text-decoration: none !important;
}

.hk-ai-rep-units {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed var(--hk-ai-border);
    font-size: 10px;
    color: var(--hk-ai-text-muted);
    line-height: 1.35;
}

.hk-ai-rep-label {
    font-weight: 600;
    color: var(--hk-ai-text);
}

.hk-ai-rep-chip {
    display: inline-block;
    background: #F8FAFC;
    border: 1px solid var(--hk-ai-border);
    padding: 0 4px;
    border-radius: 3px;
    font-size: 9px;
    margin: 1px 2px 1px 0;
    color: #334155;
}

/* Action Buttons (Compact & Unboxed) */
.hk-ai-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.hk-ai-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.hk-ai-action-btn,
.hk-ai-action-btn:hover,
.hk-ai-action-btn:focus,
.hk-ai-action-btn span,
.hk-ai-action-btn:hover span {
    text-decoration: none !important;
}

.hk-ai-action-btn span {
    color: inherit;
    text-decoration: none !important;
}

.hk-ai-action-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.hk-ai-action-btn--search_filter {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 3px 0 !important;
    color: var(--hk-ai-primary) !important;
    border-radius: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3;
}

.hk-ai-action-btn--search_filter:hover {
    background: transparent !important;
    color: var(--hk-ai-primary-hover) !important;
    box-shadow: none !important;
}

.hk-ai-action-btn--search_filter:hover span {
    color: var(--hk-ai-primary-hover) !important;
    text-decoration: underline !important;
}

.hk-ai-action-btn--search_filter:hover svg {
    color: var(--hk-ai-primary-hover) !important;
    fill: var(--hk-ai-primary-hover) !important;
    transform: translateX(1px);
}

.hk-ai-action-btn--view_property {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 3px 0 !important;
    color: var(--hk-ai-text) !important;
    font-size: 11.5px !important;
}

.hk-ai-action-btn--view_property:hover span {
    color: var(--hk-ai-primary) !important;
    text-decoration: underline !important;
}

.hk-ai-action-btn--call_hotline {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--hk-ai-online);
    border-radius: 16px;
    padding: 4px 12px;
    color: #065F46 !important;
    font-size: 11.5px;
}

.hk-ai-action-btn--call_hotline:hover {
    background: var(--hk-ai-online) !important;
    color: #FFFFFF !important;
}

.hk-ai-action-btn--call_hotline:hover span,
.hk-ai-action-btn--call_hotline:hover svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* ==========================================================================
   Quickview Modal (Full-Screen Offcanvas Right Drawer Component - Woo Cart Style)
   ========================================================================== */
.hk-ai-quickview-overlay,
.hk-ai-quickview-overlay *,
.hk-ai-quickview-overlay *::before,
.hk-ai-quickview-overlay *::after {
    box-sizing: border-box !important;
}

.hk-ai-quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    max-height: 100dvh;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    z-index: 99999999;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-quickview-overlay.hk-ai-qv-active {
    opacity: 1;
    pointer-events: auto;
}

.hk-ai-quickview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

.hk-ai-quickview-sheet {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    width: 540px;
    max-width: 95vw;
    height: 100%;
    height: 100dvh;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 36px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.hk-ai-quickview-overlay.hk-ai-qv-active .hk-ai-quickview-sheet {
    transform: translateX(0);
}

.hk-ai-qv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
}

.hk-ai-qv-sheet-handle-wrap {
    display: none;
}

.hk-ai-qv-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hk-ai-qv-header-icon {
    width: 20px;
    height: 20px;
    color: var(--hk-ai-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hk-ai-qv-header-icon svg {
    width: 100%;
    height: 100%;
}

.hk-ai-qv-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: 0.2px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-ai-qv-close-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hk-ai-qv-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: translateX(-2px);
}

.hk-ai-qv-close-btn svg {
    width: 16px;
    height: 16px;
}

.hk-ai-qv-body {
    padding: 18px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-body::-webkit-scrollbar {
    width: 5px;
}

.hk-ai-qv-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

/* ==========================================================================
   Quickview Gallery Carousel Component
   ========================================================================== */
.hk-ai-qv-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.hk-ai-qv-gallery-main {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: #0F172A;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.hk-ai-qv-gallery-main:hover .hk-ai-qv-hero-img {
    transform: scale(1.02);
}

.hk-ai-qv-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: var(--hk-ai-gold);
    gap: 6px;
}

.hk-ai-qv-hero-placeholder svg {
    width: 36px;
    height: 36px;
}

.hk-ai-qv-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 3;
    padding: 0;
    backdrop-filter: blur(4px);
}

.hk-ai-qv-gallery-nav svg {
    width: 18px;
    height: 18px;
}

.hk-ai-qv-gallery-nav--prev {
    left: 10px;
}

.hk-ai-qv-gallery-nav--next {
    right: 10px;
}

.hk-ai-qv-gallery-nav:hover {
    background: var(--hk-ai-primary);
    border-color: var(--hk-ai-primary);
    transform: translateY(-50%) scale(1.08);
}

.hk-ai-qv-gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.2px;
}

.hk-ai-qv-gallery-counter svg {
    width: 13px;
    height: 13px;
}

.hk-ai-qv-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 4px 2px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.hk-ai-qv-gallery-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.hk-ai-qv-thumb-btn {
    width: 62px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #E2E8F0;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hk-ai-qv-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hk-ai-qv-thumb-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.hk-ai-qv-thumb-btn.hk-ai-qv-thumb-active {
    border-color: var(--hk-ai-primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.35);
}

/* QuickView Labels Wrapper (Matching system's property-labels-wrap d-flex align-items-center gap-1) */
.hk-ai-qv-gallery-main .labels-wrap,
.hk-ai-qv-labels-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
    max-width: calc(100% - 130px);
    min-width: 0;
    overflow: hidden;
    flex-wrap: wrap;
}

.hk-ai-qv-gallery-main .label,
.hk-ai-qv-labels-wrap .label,
.hk-ai-qv-status-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 8px 3.5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.25;
    z-index: 3;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-qv-gallery-main .label-status.hk-ai-qv-status-tag--sale,
.hk-ai-qv-status-tag--sale {
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #FFFFFF;
}

.hk-ai-qv-gallery-main .label-status.hk-ai-qv-status-tag--rent,
.hk-ai-qv-status-tag--rent {
    border: 1px solid rgba(59, 130, 246, 0.6);
    color: #FFFFFF;
}

.hk-ai-qv-gallery-main .label-status.hk-ai-qv-status-tag--project,
.hk-ai-qv-status-tag--project {
    border: 1px solid rgba(252, 185, 0, 0.7);
    color: #FFFFFF;
}

.hk-ai-qv-gallery-main .label-exclusive,
.hk-ai-qv-labels-wrap .label-exclusive {
    border: 1px solid rgba(252, 185, 0, 0.75);
    color: #FFFFFF;
}

.hk-ai-qv-gallery-main .label-exclusive .exclusive-svg-icon,
.hk-ai-qv-labels-wrap .label-exclusive .exclusive-svg-icon {
    width: 11px;
    height: 11px;
    color: #fcb900;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.hk-ai-qv-role-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
    z-index: 3;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-ai-qv-role-tag--best_match {
    border-color: rgba(202, 103, 67, 0.8);
    color: #FFFFFF;
}

.hk-ai-qv-role-tag--value_option {
    border-color: rgba(13, 148, 136, 0.8);
    color: #FFFFFF;
}

.hk-ai-qv-role-tag--upgrade_option {
    border-color: rgba(124, 58, 237, 0.8);
    color: #FFFFFF;
}

.hk-ai-qv-main-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}

.hk-ai-qv-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.hk-ai-qv-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--hk-ai-primary);
    line-height: 1.2;
}

.hk-ai-qv-price-per-m2 {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}

.hk-ai-qv-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hk-ai-qv-address-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #64748B;
    line-height: 1.45;
    min-width: 0;
    max-width: 100%;
}

.hk-ai-qv-address-icon {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hk-ai-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.hk-ai-qv-address-icon svg {
    width: 100%;
    height: 100%;
}

.hk-ai-qv-address-val {
    font-weight: 500;
    color: #475569;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 1. Overview Bar (Houzez Top Bar with Pure Vector SVG Icons) */
.hk-ai-qv-overview-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
}

/* Explicit columns on desktop based on item count */
.hk-ai-qv-overview-bar--count-1 {
    grid-template-columns: 1fr;
}
.hk-ai-qv-overview-bar--count-2 {
    grid-template-columns: repeat(2, 1fr);
}
.hk-ai-qv-overview-bar--count-3 {
    grid-template-columns: repeat(3, 1fr);
}
.hk-ai-qv-overview-bar--count-4 {
    grid-template-columns: repeat(4, 1fr);
}
.hk-ai-qv-overview-bar--count-5 {
    grid-template-columns: repeat(5, 1fr);
}
.hk-ai-qv-overview-bar--count-6 {
    grid-template-columns: repeat(6, 1fr);
}

.hk-ai-qv-ov-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hk-ai-qv-ov-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hk-ai-primary);
    flex-shrink: 0;
}

.hk-ai-qv-ov-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hk-ai-qv-ov-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.hk-ai-qv-ov-val {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-qv-ov-lbl {
    font-size: 10px;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Chi tiết Bất động sản (Houzez 2-Column Lined List Table) */
.hk-ai-qv-section-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--hk-ai-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 5px;
}

.hk-ai-qv-table-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.hk-ai-qv-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hk-ai-qv-lined-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 11.5px;
    line-height: 1.35;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.hk-ai-qv-lined-label {
    color: #64748B;
    font-weight: 500;
    white-space: nowrap;
    min-width: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-qv-lined-val {
    color: #0F172A;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 60%;
}

.hk-ai-qv-lined-val--price {
    color: var(--hk-ai-primary);
    font-weight: 700;
}

/* 3. Advisor Box (Chuyên viên tư vấn Hắc Kim) */
.hk-ai-qv-advisor-box {
    background: linear-gradient(180deg, #FDFBF7 0%, #FAF5EE 100%);
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-advisor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hk-ai-qv-advisor-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.hk-ai-qv-advisor-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hk-ai-gold);
    border: 1px solid rgba(197, 168, 128, 0.35);
}

.hk-ai-qv-advisor-avatar-icon svg {
    width: 18px;
    height: 18px;
}

.hk-ai-qv-advisor-online-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    border: 1.5px solid #FFFFFF;
}

.hk-ai-qv-advisor-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.hk-ai-qv-advisor-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
}

.hk-ai-qv-advisor-role {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hk-ai-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hk-ai-qv-advisor-desc {
    font-size: 11px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

.hk-ai-qv-rep-wrap {
    background: #FFFBF5;
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-rep-label {
    font-size: 11px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 5px;
}

.hk-ai-qv-rep-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hk-ai-qv-rep-chip {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid var(--hk-ai-border);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    color: #334155;
    font-weight: 500;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hk-ai-qv-description-box,
.hk-ai-qv-features-box,
.hk-ai-qv-additional-box,
.hk-ai-qv-documents-box,
.hk-ai-qv-video-box {
    margin-top: 10px;
}

.hk-ai-qv-description {
    color: #475569;
    font-size: 11.5px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.hk-ai-qv-feature-list,
.hk-ai-qv-document-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hk-ai-qv-feature-chip {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    color: #334155;
    font-size: 10.5px;
    line-height: 1.25;
    padding: 5px 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hk-ai-qv-document-link {
    align-items: center;
    background: #FFF9F2;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 7px;
    color: var(--hk-ai-primary) !important;
    display: inline-flex;
    font-size: 10.5px;
    gap: 5px;
    max-width: 100%;
    padding: 6px 8px;
    text-decoration: none !important;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.hk-ai-qv-document-link span {
    font-size: 12px;
}

.hk-ai-qv-video-frame {
    align-items: center;
    background: #0F172A;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 130px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-qv-video-frame img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hk-ai-qv-video-placeholder {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
}

.hk-ai-qv-video-play {
    align-items: center;
    background: #FF0033;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    font-size: 15px;
    height: 42px;
    justify-content: center;
    padding-left: 2px;
    position: relative;
    width: 42px;
    z-index: 1;
}

.hk-ai-qv-video-frame:hover .hk-ai-qv-video-play,
.hk-ai-qv-video-frame:focus-visible .hk-ai-qv-video-play {
    transform: scale(1.08);
}

.hk-ai-qv-video-frame:focus-visible,
.hk-ai-qv-document-link:focus-visible,
.hk-ai-qv-btn:focus-visible,
.hk-ai-qv-gallery-nav:focus-visible,
.hk-ai-qv-thumb-btn:focus-visible {
    outline: 2px solid var(--hk-ai-primary);
    outline-offset: 2px;
}

.hk-ai-qv-footer {
    padding: 12px 18px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.hk-ai-qv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.hk-ai-qv-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-ai-qv-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.hk-ai-qv-btn--primary {
    background: var(--hk-ai-primary);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.25);
}

.hk-ai-qv-btn--primary:hover {
    background: var(--hk-ai-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 103, 67, 0.35);
}

.hk-ai-qv-btn--secondary {
    background: #FFFFFF;
    color: #1E293B !important;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hk-ai-qv-btn--secondary:hover {
    background: #F8FAFC;
    color: var(--hk-ai-primary) !important;
    border-color: var(--hk-ai-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.hk-ai-qv-btn--secondary svg {
    color: #64748B;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hk-ai-qv-btn--secondary:hover svg {
    color: var(--hk-ai-primary);
    transform: translate(1px, -1px);
}

.hk-ai-qv-actions-row {
    display: flex;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.hk-ai-qv-actions-row > * {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.hk-ai-qv-btn--ask,
.hk-ai-qv-btn--contact {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    background: #F1F5F9;
    color: #334155 !important;
    border: 1px solid #CBD5E1;
    padding: 8px 8px;
    font-size: 11.5px;
    box-sizing: border-box !important;
}

.hk-ai-qv-btn--ask:hover,
.hk-ai-qv-btn--contact:hover {
    background: #E2E8F0;
    color: #0F172A !important;
}

.hk-ai-qv-btn--contact.hk-ai-qv-btn--primary {
    background: var(--hk-ai-primary);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(202, 103, 67, 0.25);
}

.hk-ai-qv-btn--contact.hk-ai-qv-btn--primary:hover {
    background: var(--hk-ai-primary-hover);
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(202, 103, 67, 0.35);
}

.hk-ai-qv-btn--call {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    background: rgba(16, 185, 129, 0.1);
    color: #065F46 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 8px;
    font-size: 11.5px;
    box-sizing: border-box !important;
}

.hk-ai-qv-btn--call:hover {
    background: var(--hk-ai-online);
    color: #FFFFFF !important;
}

/* Smart Replies (Quick Reply Chips) */
.hk-ai-smart-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(202, 103, 67, 0.2);
}

.hk-ai-smart-reply-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(202, 103, 67, 0.08);
    color: var(--hk-ai-primary) !important;
    border: 1px solid rgba(202, 103, 67, 0.25);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    white-space: nowrap;
    text-decoration: none !important;
}

.hk-ai-smart-reply-chip span {
    color: inherit;
    text-decoration: none !important;
}

.hk-ai-smart-reply-chip:hover:not(:disabled) {
    background: var(--hk-ai-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--hk-ai-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(202, 103, 67, 0.2);
}

.hk-ai-smart-reply-chip:hover:not(:disabled) span {
    color: #FFFFFF !important;
}

.hk-ai-smart-reply-chip::after {
    content: '→';
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-left: 4px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.hk-ai-smart-reply-chip:hover:not(:disabled)::after {
    transform: translateX(2px);
    color: #FFFFFF;
}

.hk-ai-smart-reply-chip:disabled,
.hk-ai-smart-reply-chip.hk-ai-chip-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.hk-ai-smart-reply-chip.hk-ai-chip-selected {
    background: var(--hk-ai-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--hk-ai-primary) !important;
    opacity: 0.9;
}

@media (max-width: 767px) {
    /* QuickView uses the same bottom-sheet interaction model as the chat widget. */
    .hk-ai-quickview-overlay {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overscroll-behavior: contain;
    }

    .hk-ai-quickview-overlay .hk-ai-quickview-backdrop {
        opacity: var(--hk-qv-backdrop-opacity, 1);
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hk-ai-quickview-overlay .hk-ai-quickview-sheet {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 1 100% !important;
        align-self: stretch;
        height: min(84dvh, calc(100dvh - var(--hk-header-top-offset, 85px) - 16px)) !important;
        max-height: min(84dvh, calc(100dvh - var(--hk-header-top-offset, 85px) - 16px)) !important;
        border-radius: 24px 24px 0 0 !important;
        border-top: 1px solid #E2E8F0 !important;
        box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28), 0 -2px 10px rgba(0, 0, 0, 0.12);
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
        overscroll-behavior: contain;
    }

    .hk-ai-quickview-overlay.hk-ai-qv-active .hk-ai-quickview-sheet {
        transform: translateY(0) !important;
    }

    .hk-ai-qv-sheet-handle-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 22px;
        padding: 8px 0 4px;
        background: #FFFFFF;
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .hk-ai-qv-sheet-handle {
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #CBD5E1;
    }

    .hk-ai-qv-header {
        padding: 8px 14px 10px !important;
    }

    .hk-ai-widget-container {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-widget-container.hk-ai-has-bottom-bar {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-launcher {
        height: 46px;
        padding: 0 16px 0 14px;
        gap: 8px;
    }

    .hk-ai-launcher-icon--sparkle {
        width: 18px;
        height: 18px;
    }

    .hk-ai-launcher-label--desktop {
        display: none;
    }

    .hk-ai-launcher-label--mobile {
        display: inline;
        font-size: 13.5px;
        font-weight: 600;
    }

    .hk-ai-launcher-bubble {
        max-width: 250px;
        padding: 10px 30px 10px 12px;
        margin-bottom: 10px;
    }

    .hk-ai-launcher-bubble__arrow {
        right: 20px;
    }

    .hk-ai-launcher-bubble__title {
        font-size: 13px;
    }

    .hk-ai-launcher-bubble__text {
        font-size: 11.5px;
    }

    .hk-ai-widget-container.hk-ai-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1000 !important;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hk-ai-widget-container.hk-ai-open .hk-ai-launcher {
        display: none;
    }

    /* Mobile Backdrop Overlay */
    .hk-ai-backdrop {
        display: block;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1020 !important;
    }

    .hk-ai-backdrop.hk-ai-backdrop--open,
    body.hk-state-chat-open .hk-ai-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Mobile Full-width Bottom Sheet Panel */
    .hk-ai-panel {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: min(84dvh, calc(100dvh - var(--hk-header-top-offset, 85px) - 16px)) !important;
        max-height: min(84dvh, calc(100dvh - var(--hk-header-top-offset, 85px) - 16px)) !important;
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        border-top: 1px solid rgba(252, 185, 0, 0.4) !important;
        box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55), 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
        z-index: 1025 !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--hk-ai-bg) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-panel.hk-ai-panel--open,
    .hk-ai-widget-container.hk-ai-open .hk-ai-panel,
    body.hk-state-chat-open .hk-ai-panel {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Bottom Sheet Grabber Handle Pill */
    .hk-ai-bottomsheet-handle-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0 4px 0;
        background: var(--hk-ai-dark-header);
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        flex-shrink: 0;
    }

    .hk-ai-bottomsheet-handle {
        width: 42px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.35);
        transition: background 0.2s ease, width 0.2s ease;
    }

    .hk-ai-bottomsheet-handle-wrap:active .hk-ai-bottomsheet-handle {
        background: rgba(252, 185, 0, 0.95);
        width: 50px;
    }

    .hk-ai-quickview-sheet {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hk-ai-textarea {
        font-size: 16px !important;
    }

    .hk-ai-header {
        padding: 6px 14px 12px 14px;
        border-top: none;
    }

    .hk-ai-input-area {
        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    }

    .hk-ai-bubble {
        max-width: 90%;
    }

    .hk-ai-property-context {
        min-height: 46px;
        padding-left: 12px;
        padding-right: 10px;
    }

    .hk-ai-qv-header {
        padding: 10px 14px !important;
        padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hk-ai-qv-body {
        padding: 14px 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .hk-ai-qv-price-wrap {
        gap: 6px 8px;
    }

    .hk-ai-qv-price {
        font-size: 22px;
    }

    .hk-ai-qv-price-per-m2 {
        font-size: 12px;
        padding: 2.5px 7px;
    }

    .hk-ai-qv-overview-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .hk-ai-qv-overview-bar--count-1 {
        grid-template-columns: 1fr;
    }

    .hk-ai-qv-overview-bar--count-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hk-ai-qv-overview-bar--count-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 > .hk-ai-qv-ov-item:last-child {
        grid-column: 1 / -1;
    }

    .hk-ai-qv-overview-bar--count-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-ov-item {
        gap: 7px;
    }

    .hk-ai-qv-ov-icon {
        width: 20px;
        height: 20px;
    }

    .hk-ai-qv-ov-val {
        font-size: 11.5px;
    }

    .hk-ai-qv-ov-lbl {
        font-size: 9px;
    }

    .hk-ai-qv-footer {
        padding: 10px 14px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
        padding-left: max(14px, env(safe-area-inset-left, 14px)) !important;
        padding-right: max(14px, env(safe-area-inset-right, 14px)) !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hk-ai-qv-btn {
        min-height: 42px !important;
        font-size: 13px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-actions-row {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .hk-ai-qv-actions-row > * {
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-btn--ask,
    .hk-ai-qv-btn--contact,
    .hk-ai-qv-btn--call {
        min-height: 38px !important;
        font-size: 12px !important;
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   Chat Message Gallery Grid Stack (Compact)
   ========================================================================== */
.hk-ai-msg-gallery {
    display: grid;
    gap: 4px;
    margin: 6px 0;
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    overflow: hidden;
}

.hk-ai-msg-gallery--1 {
    grid-template-columns: 1fr;
    height: 105px;
    max-width: 200px;
}

.hk-ai-msg-gallery--2 {
    grid-template-columns: 1fr 1fr;
    height: 80px;
}

.hk-ai-msg-gallery--3 {
    grid-template-columns: 1.25fr 1fr;
    height: 85px;
}

.hk-ai-gallery-stack-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.hk-ai-gallery-stack-col .hk-ai-gallery-item {
    flex: 1;
    height: 50%;
}

.hk-ai-msg-gallery--4,
.hk-ai-msg-gallery--more {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 47px 47px;
    height: 98px;
}

.hk-ai-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: #1E293B;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
}

.hk-ai-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.hk-ai-gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.hk-ai-gallery-zoom-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hk-ai-gallery-zoom-badge svg {
    width: 11px;
    height: 11px;
}

.hk-ai-gallery-item:hover .hk-ai-gallery-zoom-badge {
    opacity: 1;
    transform: scale(1.1);
    background: var(--hk-ai-primary);
    border-color: var(--hk-ai-primary);
}

.hk-ai-gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: background 0.2s ease;
    pointer-events: none;
}

.hk-ai-gallery-item--more:hover .hk-ai-gallery-more-overlay {
    background: rgba(202, 103, 67, 0.85);
}

.hk-ai-gallery-more-count {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
}

.hk-ai-gallery-more-lbl {
    font-size: 8.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* Video frame inside assistant messages. Playback starts in the lightbox
   after the visitor explicitly clicks the frame. */
.hk-ai-video-frame {
    position: relative;
    display: block;
    width: min(100%, 330px);
    min-height: 150px;
    margin: 10px 0 2px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}

.hk-ai-video-frame__media {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
    background: #0f172a;
}

.hk-ai-video-frame__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.72));
    pointer-events: none;
}

.hk-ai-video-frame__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: inline-flex;
    width: 54px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ff0033;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hk-ai-video-frame__play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.hk-ai-video-frame__label {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 10px;
    left: 12px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-ai-video-frame:hover .hk-ai-video-frame__play,
.hk-ai-video-frame:focus-visible .hk-ai-video-frame__play {
    background: #e6002e;
    transform: translate(-50%, -50%) scale(1.07);
}

.hk-ai-video-frame:focus-visible {
    outline: 2px solid var(--hk-ai-primary, #CA6743);
    outline-offset: 3px;
}

/* YouTube controls are hidden in the embed URL and this shell keeps the
   player framed without exposing a second control surface. */
.hk-ai-video-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-video-lightbox-overlay.hk-ai-video-lb-active {
    opacity: 1;
    pointer-events: auto;
}

.hk-ai-video-lb-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.hk-ai-video-lb-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
}

.hk-ai-video-lb-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000000;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.62);
}

.hk-ai-video-lb-iframe,
.hk-ai-video-lb-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000000;
}

.hk-ai-video-lb-iframe {
    pointer-events: none;
}

.hk-ai-video-lb-close {
    position: absolute;
    z-index: 2;
    top: -48px;
    right: 0;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.hk-ai-video-lb-close:hover,
.hk-ai-video-lb-close:focus-visible {
    background: var(--hk-ai-primary, #CA6743);
}

.hk-ai-video-lb-close svg {
    width: 19px;
    height: 19px;
}

/* ==========================================================================
   Full-Screen Lightbox Component
   ========================================================================== */
body.hk-ai-lightbox-open {
    overflow: hidden !important;
}

.hk-ai-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: contain;
    user-select: none;
}

.hk-ai-lightbox-overlay.hk-ai-lb-active {
    opacity: 1;
    pointer-events: auto;
}

.hk-ai-lb-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: zoom-out;
}

.hk-ai-lb-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    min-width: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
}

.hk-ai-lb-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hk-ai-lb-counter svg {
    width: 16px;
    height: 16px;
    color: var(--hk-ai-gold, #C5A880);
}

.hk-ai-lb-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hk-ai-lb-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.hk-ai-lb-download-btn:hover {
    background: var(--hk-ai-primary, #CA6743);
    border-color: var(--hk-ai-primary, #CA6743);
    transform: scale(1.08);
}

.hk-ai-lb-download-btn svg {
    width: 19px;
    height: 19px;
}

.hk-ai-lb-close-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    transform: rotate(90deg) scale(1.06);
}

.hk-ai-lb-close-btn svg {
    width: 20px;
    height: 20px;
}

.hk-ai-lb-stage {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    touch-action: pan-y;
}

.hk-ai-lb-stage-content {
    position: relative;
    width: min(90vw, 100%);
    height: min(75vh, 100%);
    height: min(75dvh, 100%);
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hk-ai-lb-main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.hk-ai-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
    backdrop-filter: blur(8px);
}

.hk-ai-lb-nav:hover {
    background: var(--hk-ai-primary, #CA6743);
    border-color: var(--hk-ai-primary, #CA6743);
    transform: translateY(-50%) scale(1.1);
}

.hk-ai-lb-nav svg {
    width: 24px;
    height: 24px;
}

.hk-ai-lb-nav--prev {
    left: 24px;
}

.hk-ai-lb-nav--next {
    right: 24px;
}

.hk-ai-lb-thumbs-wrap {
    position: relative;
    z-index: 10;
    padding: 12px 20px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-ai-lb-thumbs-track {
    display: flex;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    max-width: 90vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.hk-ai-lb-thumbs-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.hk-ai-lb-thumb-btn {
    width: 68px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #1E293B;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hk-ai-lb-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hk-ai-lb-thumb-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.hk-ai-lb-thumb-btn.hk-ai-lb-thumb-active {
    opacity: 1;
    border-color: var(--hk-ai-primary, #CA6743);
    box-shadow: 0 0 12px rgba(202, 103, 67, 0.6);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hk-ai-video-lightbox-overlay {
        padding: 12px;
    }
    .hk-ai-video-lb-close {
        top: -46px;
        right: 0;
    }
    .hk-ai-lb-header {
        padding: 12px 16px;
    }
    .hk-ai-lb-nav--prev {
        left: 8px;
        width: 38px;
        height: 38px;
    }
    .hk-ai-lb-nav--next {
        right: 8px;
        width: 38px;
        height: 38px;
    }
    .hk-ai-lb-thumbs-wrap {
        padding: 8px 12px 14px;
    }
    .hk-ai-lb-thumb-btn {
        width: 52px;
        height: 38px;
    }
}

/* ==========================================================================
   Interactive Document Button & In-View PDF Document Reader Lightbox
   ========================================================================== */
.hk-ai-doc-link-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(100%, 370px);
    margin: 9px 0 5px;
    padding: 10px 11px 10px 10px;
    border: 1px solid rgba(202, 103, 67, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf7 0%, #ffffff 72%);
    color: var(--hk-ai-text, #1E293B);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    appearance: none;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.055);
}

.hk-ai-doc-link-btn:hover {
    background: linear-gradient(135deg, #fff1e9 0%, #fffaf7 72%);
    border-color: var(--hk-ai-primary, #CA6743);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(202, 103, 67, 0.14);
}

.hk-ai-doc-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    min-width: 43px;
    height: 53px;
    border: 1px solid rgba(202, 103, 67, 0.18);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #fff4ed 100%);
    box-shadow: 0 3px 7px rgba(15, 23, 42, 0.09);
    flex-shrink: 0;
    overflow: hidden;
}

.hk-ai-doc-preview::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 9px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: rgba(30, 41, 59, 0.2);
    box-shadow: 0 6px 0 rgba(30, 41, 59, 0.14), 0 12px 0 rgba(30, 41, 59, 0.14);
}

.hk-ai-doc-preview__fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 13px;
    height: 13px;
    background: linear-gradient(225deg, #f5c3aa 0 49%, transparent 50% 100%);
}

.hk-ai-doc-preview__lines {
    position: absolute;
    left: 9px;
    bottom: 8px;
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: var(--hk-ai-primary, #CA6743);
    opacity: 0.8;
}

.hk-ai-doc-preview__type {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 1px 3px;
    border-radius: 3px;
    background: var(--hk-ai-primary, #CA6743);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.25px;
    line-height: 1.25;
}

.hk-ai-doc-card-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hk-ai-doc-card-eyebrow {
    color: var(--hk-ai-primary, #CA6743);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.45px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hk-ai-doc-btn-label {
    width: 100%;
    min-width: 0;
    color: var(--hk-ai-text, #1E293B);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.32;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.hk-ai-doc-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7c8798;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.hk-ai-doc-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b7bfca;
}

.hk-ai-doc-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    min-width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(202, 103, 67, 0.1);
    color: var(--hk-ai-primary, #CA6743);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.hk-ai-doc-card-arrow svg {
    width: 14px;
    height: 14px;
}

.hk-ai-doc-link-btn:hover .hk-ai-doc-card-arrow {
    background: var(--hk-ai-primary, #CA6743);
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 420px) {
    .hk-ai-doc-link-btn {
        width: 100%;
    }
}

.hk-ai-doc-link-btn:focus-visible,
.hk-ai-qv-document-link:focus-visible {
    outline: 2px solid var(--hk-ai-primary, #CA6743);
    outline-offset: 2px;
}

/* Document Lightbox Overlay */
.hk-ai-document-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-document-lightbox-overlay.hk-ai-doc-lb-active {
    opacity: 1;
    pointer-events: auto;
}

.hk-ai-doc-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.hk-ai-doc-lb-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(94vw, 1000px);
    height: min(92dvh, 880px);
    max-height: calc(100dvh - 48px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hk-ai-document-lightbox-overlay.hk-ai-doc-lb-active .hk-ai-doc-lb-dialog {
    transform: scale(1) translateY(0);
}

.hk-ai-doc-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.hk-ai-doc-lb-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hk-ai-doc-lb-icon {
    width: 20px;
    height: 20px;
    color: var(--hk-ai-primary, #CA6743);
    flex-shrink: 0;
}

.hk-ai-doc-lb-title {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hk-ai-doc-lb-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hk-ai-doc-lb-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hk-ai-doc-lb-close:hover {
    background: var(--hk-ai-primary, #CA6743);
    border-color: var(--hk-ai-primary, #CA6743);
    color: #ffffff;
}

.hk-ai-doc-lb-close svg {
    width: 17px;
    height: 17px;
}

.hk-ai-doc-lb-body {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overscroll-behavior: contain;
    background: #525659;
}

.hk-ai-doc-lb-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

@media (max-width: 768px) {
    .hk-ai-document-lightbox-overlay {
        padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    }
    .hk-ai-doc-lb-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .hk-ai-doc-lb-header {
        padding: max(10px, env(safe-area-inset-top, 10px)) 14px 10px;
    }
    .hk-ai-doc-lb-title {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   Small Mobile Devices (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .hk-ai-widget-container {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-widget-container.hk-ai-has-bottom-bar {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-launcher {
        height: 44px;
        padding: 0 14px 0 12px;
        gap: 6px;
    }

    .hk-ai-launcher-icon--sparkle {
        width: 16px;
        height: 16px;
    }

    .hk-ai-launcher-label--mobile {
        font-size: 12.5px;
    }

    .hk-ai-launcher-bubble {
        max-width: calc(100vw - 24px);
        padding: 9px 28px 9px 11px;
    }

    .hk-ai-header {
        padding: 6px 12px 10px 12px;
    }

    .hk-ai-header-avatar {
        width: 32px;
        height: 32px;
    }

    .hk-ai-header-avatar svg {
        width: 17px;
        height: 17px;
    }

    .hk-ai-header-title {
        font-size: 13px;
    }

    .hk-ai-header-subrow {
        font-size: 10px;
    }

    .hk-ai-header-btn {
        width: 36px;
        height: 36px;
    }

    .hk-ai-messages {
        padding: 12px 10px;
        gap: 10px;
    }

    .hk-ai-bubble {
        max-width: 92%;
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .hk-ai-prop-card,
    .hk-ai-context-card {
        height: 68px;
        min-height: 68px;
        max-height: 68px;
    }

    .hk-ai-prop-thumb-wrap,
    .hk-ai-context-thumb-wrap {
        width: 68px;
        min-width: 68px;
        max-width: 68px;
    }

    .hk-ai-prop-price,
    .hk-ai-context-price {
        font-size: 12px;
    }

    .hk-ai-prop-title,
    .hk-ai-context-title {
        font-size: 11px;
    }

    .hk-ai-prop-meta,
    .hk-ai-context-meta {
        font-size: 9.5px;
    }

    .hk-ai-smart-reply-chip {
        padding: 5px 10px;
        font-size: 11.5px;
    }

    .hk-ai-input-area {
        padding: 8px 10px;
    }

    .hk-ai-send-btn {
        width: 36px;
        height: 36px;
    }

    .hk-ai-qv-gallery-main {
        height: 200px;
    }

    .hk-ai-qv-price-wrap {
        gap: 4px 6px;
    }

    .hk-ai-qv-price {
        font-size: 20px;
    }

    .hk-ai-qv-price-per-m2 {
        font-size: 11px;
        padding: 2px 6px;
    }

    .hk-ai-qv-title {
        font-size: 15px;
    }

    .hk-ai-qv-overview-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 8px 10px;
        gap: 8px 8px;
        border-radius: 8px;
    }

    .hk-ai-qv-overview-bar--count-1 {
        grid-template-columns: 1fr;
    }

    .hk-ai-qv-overview-bar--count-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hk-ai-qv-overview-bar--count-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 > .hk-ai-qv-ov-item:last-child {
        grid-column: 1 / -1;
    }

    .hk-ai-qv-overview-bar--count-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-ov-item {
        gap: 6px;
    }

    .hk-ai-qv-ov-icon {
        width: 18px;
        height: 18px;
    }

    .hk-ai-qv-ov-val {
        font-size: 11px;
    }

    .hk-ai-qv-ov-lbl {
        font-size: 8.5px;
    }

    .hk-ai-qv-footer {
        padding: 8px 10px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
        padding-left: max(10px, env(safe-area-inset-left, 10px)) !important;
        padding-right: max(10px, env(safe-area-inset-right, 10px)) !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hk-ai-qv-btn {
        min-height: 38px !important;
        padding: 8px 8px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-actions-row {
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .hk-ai-qv-actions-row > * {
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-btn--ask,
    .hk-ai-qv-btn--contact,
    .hk-ai-qv-btn--call {
        min-height: 34px !important;
        padding: 6px 4px !important;
        font-size: 10.5px !important;
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   Ultra-Small Mobile Devices (< 320px) — Galaxy Fold Cover, iPhone 4/5/SE1
   ========================================================================== */
@media (max-width: 320px) {
    .hk-ai-widget-container {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-widget-container.hk-ai-has-bottom-bar {
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .hk-ai-launcher {
        height: 40px;
        padding: 0 11px 0 9px;
        gap: 5px;
    }

    .hk-ai-launcher-icon--sparkle {
        width: 15px;
        height: 15px;
    }

    .hk-ai-launcher-label--mobile {
        font-size: 11.5px;
        letter-spacing: 0.1px;
    }

    .hk-ai-launcher-bubble {
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
        padding: 8px 24px 8px 10px;
        border-radius: 10px;
    }

    .hk-ai-launcher-bubble__title {
        font-size: 11.5px;
    }

    .hk-ai-launcher-bubble__text {
        font-size: 10.5px;
    }

    .hk-ai-launcher-bubble__close {
        top: 5px;
        right: 5px;
        width: 18px;
        height: 18px;
    }

    .hk-ai-panel {
        border-radius: 16px 16px 0 0 !important;
    }

    .hk-ai-bottomsheet-handle-wrap {
        padding: 6px 0 2px 0;
    }

    .hk-ai-bottomsheet-handle {
        width: 32px;
        height: 4px;
    }

    .hk-ai-header {
        padding: 5px 8px 8px 8px;
    }

    .hk-ai-header-brand {
        gap: 6px;
    }

    .hk-ai-header-avatar {
        width: 28px;
        height: 28px;
    }

    .hk-ai-header-avatar svg {
        width: 15px;
        height: 15px;
    }

    .hk-ai-header-status-dot {
        width: 7px;
        height: 7px;
    }

    .hk-ai-header-title {
        font-size: 12px;
        line-height: 1.2;
    }

    .hk-ai-header-subrow {
        font-size: 9.5px;
        gap: 3px;
        margin-top: 1px;
    }

    .hk-ai-header-subtitle {
        font-size: 9.5px;
    }

    .hk-ai-header-hotline {
        font-size: 9.5px;
        gap: 2px;
    }

    .hk-ai-header-actions {
        gap: 3px;
    }

    .hk-ai-header-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .hk-ai-header-btn svg {
        width: 14px;
        height: 14px;
    }

    .hk-ai-property-context {
        min-height: 38px;
        padding: 4px 6px 4px 8px;
        gap: 6px;
    }

    .hk-ai-property-context__label {
        font-size: 8px;
        padding: 2px 4px;
    }

    .hk-ai-property-context__title {
        font-size: 10px;
    }

    .hk-ai-property-context__meta {
        font-size: 9px;
    }

    .hk-ai-property-context__close {
        width: 22px;
        height: 22px;
        border-radius: 5px;
    }

    .hk-ai-property-context__close svg {
        width: 12px;
        height: 12px;
    }

    .hk-ai-messages {
        padding: 8px 6px;
        gap: 8px;
    }

    .hk-ai-welcome-card {
        padding: 10px 8px;
        border-radius: 10px;
    }

    .hk-ai-welcome-greeting {
        font-size: 11.5px;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .hk-ai-context-switch {
        padding: 8px 6px;
        border-radius: 10px;
    }

    .hk-ai-suggestions-title {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .hk-ai-suggestion-chip {
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 8px;
    }

    .hk-ai-suggestion-chip::after {
        font-size: 11px;
    }

    .hk-ai-bubble {
        padding: 7px 9px;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .hk-ai-msg-row--assistant .hk-ai-bubble {
        max-width: 100%;
        border-radius: 12px 12px 12px 3px;
    }

    .hk-ai-msg-row--user .hk-ai-bubble {
        max-width: 95%;
        border-radius: 12px 12px 3px 12px;
    }

    .hk-ai-msg-meta {
        font-size: 9px;
        margin-top: 2px;
    }

    .hk-ai-typing-indicator {
        padding: 7px 10px;
        border-radius: 12px 12px 12px 3px;
    }

    .hk-ai-typing-dot {
        width: 5px;
        height: 5px;
    }

    .hk-ai-prop-card,
    .hk-ai-context-card {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
        border-radius: 6px;
    }

    .hk-ai-prop-thumb-wrap,
    .hk-ai-context-thumb-wrap {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }

    .hk-ai-prop-thumb-placeholder svg,
    .hk-ai-context-thumb-placeholder svg {
        width: 18px;
        height: 18px;
    }

    .hk-ai-prop-thumb-wrap .label,
    .hk-ai-labels-wrap .label,
    .hk-ai-prop-status-tag {
        font-size: 6.5px;
        padding: 1.5px 3.5px;
        border-radius: 2px;
    }

    .hk-ai-prop-body,
    .hk-ai-context-body {
        padding: 3px 6px;
    }

    .hk-ai-prop-price,
    .hk-ai-context-price {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .hk-ai-prop-title,
    .hk-ai-context-title {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .hk-ai-prop-meta,
    .hk-ai-context-meta {
        font-size: 8.5px;
    }

    .hk-ai-prop-price-per-m2 {
        font-size: 9px;
    }

    .hk-ai-prop-btn-link {
        font-size: 9.5px;
    }

    .hk-ai-actions-wrap {
        gap: 5px;
        margin-top: 4px;
    }

    .hk-ai-action-btn {
        font-size: 10.5px;
        gap: 3px;
    }

    .hk-ai-action-btn svg {
        width: 11px;
        height: 11px;
    }

    .hk-ai-smart-replies {
        gap: 4px;
        margin-top: 6px;
        padding-top: 6px;
    }

    .hk-ai-smart-reply-chip {
        padding: 4px 8px;
        font-size: 10.5px;
        border-radius: 12px;
        gap: 3px;
    }

    .hk-ai-smart-reply-chip::after {
        font-size: 9.5px;
        margin-left: 2px;
    }

    .hk-ai-input-area {
        padding: 6px;
        padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
    }

    .hk-ai-input-form {
        padding: 2px 4px 2px 8px;
        border-radius: 10px;
        gap: 4px;
    }

    .hk-ai-textarea {
        min-height: 32px;
        font-size: 16px !important;
        line-height: 1.35;
        padding: 4px 0;
    }

    .hk-ai-send-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .hk-ai-send-btn svg {
        width: 13px;
        height: 13px;
    }

    .hk-ai-error-bubble {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 10px;
        gap: 6px;
        max-width: 96%;
    }

    .hk-ai-retry-btn {
        padding: 4px 10px;
        font-size: 10.5px;
        border-radius: 6px;
    }

    .hk-ai-roi-card {
        padding: 8px;
        border-radius: 8px;
    }

    .hk-ai-roi-card__title {
        font-size: 10.5px;
        margin-bottom: 4px;
    }

    .hk-ai-roi-card__row {
        font-size: 9.5px;
        gap: 6px;
        padding: 2px 0;
    }

    .hk-ai-msg-gallery {
        max-width: 100%;
        gap: 3px;
    }

    .hk-ai-msg-gallery--1 {
        height: 85px;
    }

    .hk-ai-msg-gallery--2 {
        height: 65px;
    }

    .hk-ai-msg-gallery--3 {
        height: 70px;
    }

    .hk-ai-msg-gallery--4,
    .hk-ai-msg-gallery--more {
        height: 80px;
        grid-template-rows: 38px 38px;
    }

    .hk-ai-video-frame {
        width: 100%;
        min-height: 110px;
        margin: 6px 0 2px;
        border-radius: 8px;
    }

    .hk-ai-video-frame__media {
        height: 130px;
    }

    .hk-ai-video-frame__play {
        width: 42px;
        height: 30px;
        border-radius: 8px;
    }

    .hk-ai-video-frame__play svg {
        width: 16px;
        height: 16px;
    }

    .hk-ai-video-frame__label {
        font-size: 10.5px;
        right: 8px;
        bottom: 6px;
        left: 8px;
    }

    .hk-ai-doc-link-btn {
        width: 100%;
        padding: 7px;
        gap: 7px;
        border-radius: 10px;
        font-size: 11px;
    }

    .hk-ai-doc-preview {
        width: 34px;
        min-width: 34px;
        height: 44px;
        border-radius: 6px;
    }

    .hk-ai-doc-card-arrow {
        width: 22px;
        min-width: 22px;
        height: 22px;
    }

    .hk-ai-doc-card-arrow svg {
        width: 12px;
        height: 12px;
    }

    .hk-ai-confirm-card {
        padding: 14px 10px 12px;
        max-width: calc(100vw - 16px);
        border-radius: 12px;
    }

    .hk-ai-confirm-icon-wrap {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .hk-ai-confirm-icon-wrap svg {
        width: 16px;
        height: 16px;
    }

    .hk-ai-confirm-title {
        font-size: 12.5px;
        margin-bottom: 4px;
    }

    .hk-ai-confirm-desc {
        font-size: 10.5px;
        margin-bottom: 12px;
    }

    .hk-ai-confirm-actions {
        gap: 6px;
    }

    .hk-ai-confirm-btn {
        padding: 7px 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    /* Quickview Modal */
    .hk-ai-qv-header {
        padding: 8px 10px;
    }

    .hk-ai-qv-header-title {
        font-size: 13px;
    }

    .hk-ai-qv-close-btn {
        width: 32px;
        height: 32px;
    }

    .hk-ai-qv-close-btn svg {
        width: 14px;
        height: 14px;
    }

    .hk-ai-qv-body {
        padding: 10px 8px;
        gap: 8px;
    }

    .hk-ai-qv-gallery-main {
        height: 150px;
        border-radius: 8px;
    }

    .hk-ai-qv-gallery-nav {
        width: 28px;
        height: 28px;
    }

    .hk-ai-qv-gallery-nav svg {
        width: 14px;
        height: 14px;
    }

    .hk-ai-qv-thumb-btn {
        width: 46px;
        height: 32px;
        border-radius: 4px;
    }

    .hk-ai-qv-gallery-counter {
        font-size: 9.5px;
        padding: 2px 6px;
        bottom: 6px;
        right: 6px;
    }

    .hk-ai-qv-price-wrap {
        gap: 4px 5px;
    }

    .hk-ai-qv-price {
        font-size: 17px;
    }

    .hk-ai-qv-price-per-m2 {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 4px;
    }

    .hk-ai-qv-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .hk-ai-qv-address-row {
        font-size: 10.5px;
        gap: 4px;
    }

    .hk-ai-qv-overview-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 6px 8px;
        gap: 6px 6px;
        border-radius: 8px;
    }

    .hk-ai-qv-overview-bar--count-1 {
        grid-template-columns: 1fr;
    }

    .hk-ai-qv-overview-bar--count-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-3 > .hk-ai-qv-ov-item:last-child {
        grid-column: 1 / -1;
    }

    .hk-ai-qv-overview-bar--count-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-overview-bar--count-5 > .hk-ai-qv-ov-item:last-child {
        grid-column: 1 / -1;
    }

    .hk-ai-qv-overview-bar--count-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hk-ai-qv-ov-item {
        gap: 5px;
    }

    .hk-ai-qv-ov-icon {
        width: 16px;
        height: 16px;
    }

    .hk-ai-qv-ov-val {
        font-size: 10px;
    }

    .hk-ai-qv-ov-lbl {
        font-size: 8px;
    }

    .hk-ai-qv-section-box {
        padding: 8px;
        border-radius: 8px;
    }

    .hk-ai-qv-section-title {
        font-size: 9.5px;
        margin-bottom: 5px;
        padding-bottom: 3px;
    }

    .hk-ai-qv-table-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hk-ai-qv-lined-item {
        font-size: 10px;
        padding: 3px 0;
    }

    .hk-ai-qv-advisor-box {
        padding: 8px;
        border-radius: 8px;
        gap: 4px;
    }

    .hk-ai-qv-advisor-avatar-wrap,
    .hk-ai-qv-advisor-avatar-icon {
        width: 30px;
        height: 30px;
    }

    .hk-ai-qv-advisor-name {
        font-size: 11px;
    }

    .hk-ai-qv-advisor-role {
        font-size: 9.5px;
    }

    .hk-ai-quickview-sheet {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-footer {
        padding: 6px 8px !important;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
        padding-left: max(8px, env(safe-area-inset-left, 8px)) !important;
        padding-right: max(8px, env(safe-area-inset-right, 8px)) !important;
        gap: 5px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hk-ai-qv-btn {
        min-height: 34px !important;
        padding: 6px 6px !important;
        font-size: 10px !important;
        gap: 4px !important;
        border-radius: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-btn svg {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        flex-shrink: 0 !important;
    }

    .hk-ai-qv-actions-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-actions-row > * {
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-btn--ask,
    .hk-ai-qv-btn--contact,
    .hk-ai-qv-btn--call {
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        min-height: 30px !important;
        padding: 5px 3px !important;
        font-size: 9.5px !important;
        gap: 3px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .hk-ai-qv-btn--ask svg,
    .hk-ai-qv-btn--contact svg,
    .hk-ai-qv-btn--call svg {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        flex-shrink: 0 !important;
    }

    /* Lightbox modal headers */
    .hk-ai-doc-lb-header {
        padding: max(6px, env(safe-area-inset-top, 6px)) 8px 6px;
    }

    .hk-ai-doc-lb-title {
        font-size: 11.5px;
    }

    .hk-ai-doc-lb-close {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .hk-ai-video-lb-close {
        width: 32px;
        height: 32px;
        top: -38px;
        right: 0;
    }

    .hk-ai-lb-thumb-btn {
        width: 42px;
        height: 30px;
    }

    .hk-ai-lb-nav--prev {
        left: 4px;
        width: 30px;
        height: 30px;
    }

    .hk-ai-lb-nav--next {
        right: 4px;
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-ai-widget-container *,
    .hk-ai-document-lightbox-overlay *,
    .hk-ai-video-lightbox-overlay *,
    .hk-ai-quickview-overlay * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
