/**
 * ==============================================================================
 * ÖBK ASİSTAN — ULTRA-PREMIUM YAPAY ZEKA ASİSTAN DANIŞMANI (CSS)
 * 3D Holographic Orbital Ring, Glassmorphic Cyber UI & Responsive Chat Engine
 * © 2026 Ömer Berat Keser. Tüm Hakları Saklıdır.
 * ==============================================================================
 */

/* ── 1. ROOT VARIABLES FOR ÖBK ASİSTAN ── */
:root {
    --obk-ai-primary: #6366f1;
    --obk-ai-primary-rgb: 99, 102, 241;
    --obk-ai-cyan: #06b6d4;
    --obk-ai-cyan-rgb: 6, 182, 212;
    --obk-ai-emerald: #10b981;
    --obk-ai-purple: #a855f7;
    --obk-ai-bg: rgba(10, 14, 26, 0.96);
    --obk-ai-surface: rgba(255, 255, 255, 0.05);
    --obk-ai-border: rgba(255, 255, 255, 0.12);
    --obk-ai-border-glow: rgba(99, 102, 241, 0.4);
    --obk-ai-text: #f8fafc;
    --obk-ai-text-muted: rgba(255, 255, 255, 0.65);
    --obk-ai-user-bubble: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --obk-ai-bot-bubble: rgba(255, 255, 255, 0.06);
    --obk-ai-radius: 24px;
    --obk-ai-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2. FLOATING TRIGGER WRAPPER (BOTTOM RIGHT) ── */
.obk-asistan-floating-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.obk-asistan-floating-wrap * {
    box-sizing: border-box;
}

/* ── 3. PROACTIVE GREETING SPEECH BUBBLE ── */
.obk-asistan-greeting-bubble {
    pointer-events: auto;
    max-width: 290px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px 20px 4px 20px;
    padding: 14px 16px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.2);
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    transition: all 0.4s var(--obk-ai-ease);
    display: none;
}

.obk-asistan-greeting-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
}

.obk-asistan-greeting-bubble:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 28px rgba(99, 102, 241, 0.35);
}

.bubble-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubble-close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #fda4af;
}

.bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bubble-spark-icon {
    color: #38bdf8;
    font-size: 13px;
    animation: sparkPulse 2s infinite ease-in-out;
}

.bubble-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #e0e7ff;
    letter-spacing: -0.01em;
}

.bubble-text {
    font-size: 0.83rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.bubble-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
}

/* ── 4. FLOATING CIRCULAR TRIGGER BUTTON (PURE FAB ORB) ── */
.obk-asistan-trigger-btn {
    pointer-events: auto !important;
    position: relative;
    width: 66px;
    height: 66px;
    min-width: 66px;
    min-height: 66px;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #1e1b4b 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(99, 102, 241, 0.6) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(99, 102, 241, 0.45),
                inset 0 0 15px rgba(99, 102, 241, 0.25);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
    z-index: 1000000;
}

.obk-asistan-trigger-btn:hover {
    transform: translateY(-5px) scale(1.08);
    border-color: #38bdf8 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 
                0 0 35px rgba(99, 102, 241, 0.65),
                0 0 45px rgba(56, 189, 248, 0.45);
}

.obk-asistan-trigger-btn:active {
    transform: scale(0.94);
}

.obk-asistan-trigger-btn.chat-active {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

/* Avatar Orb Inner */
.asistan-avatar-orb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asistan-avatar-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.obk-asistan-trigger-btn:hover .asistan-avatar-img {
    transform: scale(1.1) rotate(5deg);
}

/* Revolving Cyber Aura Rings */
.asistan-orbital-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(56, 189, 248, 0.9);
    animation: rotateClockwise 10s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.asistan-orbital-glow {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.75) 0%, rgba(56, 189, 248, 0.3) 60%, transparent 80%);
    animation: orbPulseGlow 2.5s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

/* Pulsing Status Dot */
.asistan-status-beacon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    background: #10b981;
    border: 2.5px solid #0f172a;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 12px #10b981;
}

.asistan-status-beacon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: beaconRipple 2s infinite ease-out;
}

/* Floating Tooltip */
.asistan-fab-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 7px 14px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.asistan-fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(99, 102, 241, 0.4);
    border-top: 1px solid rgba(99, 102, 241, 0.4);
}

.obk-asistan-trigger-btn:hover .asistan-fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ── 5. ASİSTAN CHAT DIALOG WINDOW (CYBER-LUXE MODAL) ── */
.obk-asistan-chat-window {
    pointer-events: none;
    position: fixed;
    bottom: 105px;
    right: 28px;
    width: 400px;
    height: 610px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 130px);
    background: var(--obk-ai-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid var(--obk-ai-border);
    border-radius: var(--obk-ai-radius);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.94);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s;
}

.obk-asistan-chat-window.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    display: flex !important;
}

/* ── 6. CHAT WINDOW HEADER ── */
.chat-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.chat-window-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(56, 189, 248, 0.5), transparent);
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-avatar .header-live-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px #10b981;
}

.chat-header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.chat-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chat-ctrl-btn.close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

/* ── 7. CHAT MESSAGES LOG (BODY) ── */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat */
.chat-messages-container::-webkit-scrollbar {
    width: 5px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Chat Message Row */
.chat-message-row {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s var(--obk-ai-ease);
}

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

.chat-message-row.user {
    justify-content: flex-end;
}

/* Avatars */
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.35);
    overflow: hidden;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-row.user .msg-avatar {
    display: none;
}

/* Bubbles */
.msg-bubble {
    max-width: 82%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 0.86rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-message-row.bot .msg-bubble {
    background: var(--obk-ai-bot-bubble);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border-top-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chat-message-row.user .msg-bubble {
    background: var(--obk-ai-user-bubble);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.3);
}

.msg-bubble p {
    margin: 0 0 6px 0;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble strong {
    color: #ffffff;
    font-weight: 700;
}

.msg-bubble ul {
    margin: 6px 0;
    padding-left: 18px;
}

.msg-bubble li {
    margin-bottom: 4px;
}

/* Interactive Embedded CTA Buttons in Bot Messages */
.msg-cta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.msg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-cta-btn:hover {
    background: #4f46e5;
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.msg-time {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    text-align: right;
}

/* Typing Simulator Indicator */
.chat-typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 16px 4px;
    width: fit-content;
    margin-left: 46px;
}

.chat-typing-indicator.active {
    display: inline-flex;
    animation: fadeIn 0.25s ease;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

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

/* ── 8. QUICK ACTION PROMPTS CAROUSEL ── */
.chat-quick-prompts-tray {
    padding: 8px 16px 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    display: flex;
    gap: 6px;
    white-space: nowrap;
    scrollbar-width: none;
}

.chat-quick-prompts-tray::-webkit-scrollbar {
    display: none;
}

.quick-prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quick-prompt-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── 9. INPUT & SUBMIT BAR ── */
.chat-input-toolbar {
    padding: 12px 16px 16px 16px;
    background: rgba(10, 14, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px 6px 4px 14px;
    transition: all 0.25s ease;
}

.chat-input-form:focus-within {
    border-color: var(--obk-ai-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.chat-text-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    max-height: 80px;
}

.chat-text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: scale(1.06);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.45);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-footer-brand {
    text-align: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ── 10. KEYFRAMES ANIMATIONS ── */
@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbPulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes beaconRipple {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

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

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

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

/* ── 11. HIDE ÖBK ASİSTAN WHEN HAMBURGER / MOBILE DRAWER IS OPEN ── */
body.mob-hub-open #obkAsistanWrap,
body.drawer-open #obkAsistanWrap,
body.menu-open #obkAsistanWrap,
body:has(.drawer.open) #obkAsistanWrap,
body:has(#drawer.open) #obkAsistanWrap,
.drawer.open ~ #obkAsistanWrap,
.drawer.open ~ * #obkAsistanWrap,
#drawer.open ~ #obkAsistanWrap,
#drawer.open ~ * #obkAsistanWrap,
body.mob-hub-open #obkAsistanChatWindow,
body.drawer-open #obkAsistanChatWindow,
body.menu-open #obkAsistanChatWindow,
body:has(.drawer.open) #obkAsistanChatWindow,
body:has(#drawer.open) #obkAsistanChatWindow,
.drawer.open ~ #obkAsistanChatWindow,
#drawer.open ~ #obkAsistanChatWindow {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.65) translateY(40px) !important;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s !important;
}

/* ── 12. RESPONSIVE MEDIA QUERIES (MOBILE ONLY - <= 991px & <= 768px & <= 480px) ── */
@media (max-width: 991px) {
    .obk-asistan-floating-wrap {
        bottom: 78px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    /* 1. Floating Action Button (FAB) Optimization */
    .obk-asistan-floating-wrap {
        bottom: 76px;
        right: 14px;
    }

    .obk-asistan-trigger-btn {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.35);
    }

    .asistan-avatar-img {
        width: 40px;
        height: 40px;
    }

    .asistan-orbital-ring {
        inset: -4px;
        border-width: 1px;
    }

    .asistan-status-beacon {
        width: 11px;
        height: 11px;
        bottom: 1px;
        right: 1px;
        border-width: 1.5px;
    }

    .asistan-fab-tooltip {
        display: none !important;
    }

    .obk-asistan-greeting-bubble {
        bottom: 64px;
        right: 0;
        max-width: calc(100vw - 28px);
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* 2. Compact, Perfectly Scaled Chat Window */
    .obk-asistan-chat-window {
        bottom: 74px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 375px;
        margin: 0 auto;
        height: min(470px, calc(100dvh - 140px));
        max-height: 490px;
        border-radius: 20px;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .chat-window-header {
        padding: 11px 14px;
    }

    .chat-header-avatar {
        width: 36px;
        height: 36px;
    }

    .chat-header-avatar img {
        width: 30px;
        height: 30px;
    }

    .chat-header-avatar .header-live-dot {
        width: 10px;
        height: 10px;
    }

    .chat-header-title {
        font-size: 0.92rem;
        gap: 4px;
    }

    .chat-header-subtitle {
        font-size: 0.7rem;
    }

    .chat-ctrl-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 12px;
    }

    /* Message Stream */
    .chat-messages-container {
        padding: 11px 13px;
        gap: 10px;
    }

    .chat-message-row.bot .msg-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-message-row.bot .msg-avatar img {
        width: 28px;
        height: 28px;
    }

    .msg-bubble {
        padding: 9px 12px;
        border-radius: 14px;
        font-size: 0.82rem;
        line-height: 1.44;
    }

    .msg-text p {
        margin-bottom: 5px;
    }

    .msg-time {
        font-size: 0.64rem;
        margin-top: 3px;
    }

    .msg-cta-list {
        margin-top: 8px;
        gap: 5px;
    }

    .msg-cta-btn {
        padding: 5px 10px;
        font-size: 0.73rem;
        border-radius: 7px;
    }

    /* Quick Prompts */
    .chat-quick-prompts-tray {
        padding: 6px 12px;
        gap: 6px;
    }

    .quick-prompt-chip {
        padding: 4px 10px;
        font-size: 0.71rem;
        gap: 4px;
    }

    /* Input Toolbar */
    .chat-input-toolbar {
        padding: 8px 12px 10px 12px;
    }

    .chat-input-form {
        border-radius: 12px;
        padding: 3px 5px 3px 11px;
    }

    .chat-text-input {
        font-size: 0.8rem;
    }

    .chat-send-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 12px;
    }

    .chat-footer-brand {
        font-size: 0.6rem;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .obk-asistan-floating-wrap {
        bottom: 74px;
        right: 12px;
    }

    .obk-asistan-trigger-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .asistan-avatar-img {
        width: 36px;
        height: 36px;
    }

    .asistan-status-beacon {
        width: 10px;
        height: 10px;
    }

    .obk-asistan-chat-window {
        bottom: 72px;
        right: 8px;
        left: 8px;
        max-width: calc(100vw - 16px);
        height: min(440px, calc(100dvh - 130px));
        max-height: 460px;
    }
}
