.chatbot-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.wv-page-hero { grid-column: 1 / -1; padding: 0 0 8px; }
.wv-page-hero .intro-hero { text-align: left; margin: 0; }
.wv-page-hero .intro-title, .wv-page-hero .intro-subtitle { text-align: left; }
.wv-page-hero .intro-subtitle { margin-left: 0; margin-right: 0; }
.wv-accent { color: #00ffff; }

.wv-layout { flex: 1; max-width: 1200px; margin: 0 auto; padding: 110px 12px 30px; display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 22px; row-gap: 12px; align-items: stretch; min-height: 0; height: 100vh; max-height: 100vh; }
.wv-sidebar { background: rgba(14,14,18,0.92); border: 1px solid rgba(0,255,255,0.28); border-radius: 18px; box-shadow: 0 18px 46px rgba(0,255,255,0.08); padding: 22px; overflow: visible; max-height: none; backdrop-filter: blur(6px); }
.wv-chat-area { min-width: 0; min-height: 0; display: flex; }

.intro-hero { text-align: left; margin: 0 0 16px; }
.intro-title { font-size: 2.2rem; font-weight: 800; letter-spacing: 0.4px; color: #eaffff; line-height: 1.05; }
.intro-subtitle { color: #cfe9e9; margin-top: 10px; max-width: 44ch; }
.intro-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 0; }
.card { background: rgba(10,10,10,0.55); border: 1px solid rgba(0,255,255,0.26); border-radius: 16px; box-shadow: 0 14px 32px rgba(0,255,255,0.08); padding: 18px; color: #eaffff; }
.card-title { display: flex; align-items: center; gap: 10px; color: #eaffff; font-weight: 700; margin-bottom: 10px; }
.card-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,255,255,0.10); border: 1px solid rgba(0,255,255,0.32); color: #00ffff; }
.card-body { color: #cfe9e9; line-height: 1.5; font-size: 0.95rem; }
.card-lines { display: grid; gap: 6px; color: #cfe9e9; line-height: 1.5; font-size: 0.95rem; }
.card-lines > * { padding-left: 0; }
.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.card-list li { color: #eaffff; position: relative; padding-left: 16px; }
.card-list li::before { content: "•"; position: absolute; left: 0; color: #00ffff; }
.card-list .with-icon { display: flex; align-items: center; gap: 8px; padding-left: 0; }
.li-icon { width: 18px; height: 18px; color: #00ffff; display: inline-flex; align-items: center; justify-content: center; }
.intro-note { margin: 16px 0 0; background: rgba(10,10,10,0.55); border: 1px solid rgba(255, 213, 74, 0.28); border-radius: 12px; padding: 10px 12px; color: #e1e1e1; display: flex; align-items: flex-start; gap: 10px; }
.note-icon { width: 20px; height: 20px; color: #fbd54a; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; flex: 0 0 auto; }
.note-text { display: grid; gap: 2px; }
.note-title { color: #ffffff; font-weight: 750; font-size: 0.9rem; line-height: 1.2; }
.note-body { color: #cfd8dc; font-size: 0.88rem; line-height: 1.25; }

.chatbot-window { width: 100%; max-width: none; height: 100%; min-height: 420px; flex: 1; min-width: 0; display: flex; flex-direction: column; background: rgba(10,10,10,0.9); border: 1px solid rgba(0,255,255,0.35); border-radius: 18px; box-shadow: 0 18px 46px rgba(0,255,255,0.12); overflow: hidden; backdrop-filter: blur(6px); }
.chatbot-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(0,255,255,0.22); background: linear-gradient(0deg, rgba(0,255,255,0.06), rgba(0,0,0,0.68)); }
.chatbot-header-left { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.chatbot-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,255,255,0.95); box-shadow: 0 0 0 5px rgba(0,255,255,0.12), 0 0 18px rgba(0,255,255,0.35); flex: 0 0 auto; }
.chatbot-title { font-size: 1.05rem; font-weight: 650; letter-spacing: 0.35px; color: #eaffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status { font-size: 0.85rem; color: #a7c4c4; text-transform: lowercase; }

.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(circle at 25% 15%, rgba(0,255,255,0.06), transparent 60%); scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(0,255,255,0.35) rgba(0,0,0,0.12); }
.chat-messages::-webkit-scrollbar { width: 10px; }
.chat-messages::-webkit-scrollbar-track { background: rgba(0,0,0,0.12); border-radius: 999px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.28); border: 2px solid rgba(0,0,0,0.12); border-radius: 999px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.42); }
.chat-item { display: flex; align-items: flex-start; gap: 10px; max-width: 100%; }
.chat-item.user { justify-content: flex-end; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.chat-avatar.bot { background: rgba(0,255,255,0.12); border: 1px solid rgba(0,255,255,0.25); color: #00ffff; box-shadow: 0 0 0 5px rgba(0,255,255,0.08); }
.chat-avatar.user { background: rgba(0,255,255,0.78); border: 1px solid rgba(255,255,255,0.18); color: #001415; box-shadow: 0 0 0 5px rgba(0,255,255,0.08); }
.chat-content { display: flex; flex-direction: column; gap: 4px; max-width: min(78%, 640px); }
.chat-item.user .chat-content { align-items: flex-end; }
.chat-item.bot .chat-content { align-items: flex-start; }
.chat-bubble { padding: 12px 14px; border-radius: 18px; line-height: 1.35; font-size: 0.95rem; white-space: pre-wrap; }
.chat-item.bot .chat-bubble { background: rgba(12, 22, 34, 0.88); border: 1px solid rgba(0,255,255,0.18); border-top-left-radius: 0; color: #eaffff; }
.chat-item.user .chat-bubble { background: rgba(0,255,255,0.75); border: 1px solid rgba(255,255,255,0.10); border-top-right-radius: 0; color: #001415; }
.chat-time { font-size: 0.75rem; opacity: 0.6; letter-spacing: 0.2px; }
.chat-item.bot .chat-time { color: rgba(220, 255, 255, 0.85); }
.chat-item.user .chat-time { color: rgba(0, 0, 0, 0.75); }
.chat-bubble.typing { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 12px; }

.chat-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-image-link { display: inline-flex; }
.chat-image { width: 160px; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(0,255,255,0.18); background: rgba(0,0,0,0.18); }

.typing-dots { display: inline-flex; align-items: center; gap: 5px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(234,255,255,0.9); opacity: 0.35; animation: typingDot 1.1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-3px); opacity: 0.95; } }

.chat-input-row { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-rows: auto auto; gap: 10px; padding: 10px 12px; margin: 14px; background: rgba(12, 22, 34, 0.88); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; align-items: center; }
.attach-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 6px; }
.attach-preview:empty { display: none; }
.attach-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); color: #eaffff; min-width: 0; }
.attach-chip-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,255,255,0.10); border: 1px solid rgba(0,255,255,0.28); color: #00ffff; flex: 0 0 auto; }
.attach-chip-name { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.attach-chip-remove { width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.18); color: rgba(234,255,255,0.92); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.attach-chip-remove:hover { color: #00ffff; border-color: rgba(0,255,255,0.24); background: rgba(0,255,255,0.06); }
.chat-input { width: 100%; padding: 12px 6px; background: transparent; border: none; color: #e8e8e8; outline: none; border-radius: 12px; }
.chat-input::placeholder { color: #b0b0b0; }
.attach-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.12); color: #cfd8dc; cursor: pointer; border-radius: 12px; }
.attach-btn:hover { color: #00ffff; border-color: rgba(0,255,255,0.24); background: rgba(0,255,255,0.06); }
.mic-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.12); color: #cfd8dc; cursor: pointer; border-radius: 12px; }
.mic-btn:hover { color: #00ffff; border-color: rgba(0,255,255,0.24); background: rgba(0,255,255,0.06); }
.mic-btn.active { color: #ff6363; }
.send-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(0,255,255,0.22); background: linear-gradient(180deg, rgba(0,255,255,0.22), rgba(0,255,255,0.14)); color: #eaffff; cursor: pointer; }
.send-btn:hover { border-color: rgba(0,255,255,0.45); box-shadow: 0 0 18px rgba(0,255,255,0.15); }
.chat-input-hint { margin: 0 18px 14px; text-align: center; color: rgba(207, 216, 220, 0.6); font-size: 0.82rem; line-height: 1.2; }

@media (max-width: 1024px) {
    .wv-layout { grid-template-columns: 1fr; }
    .wv-sidebar { max-height: none; }
    .chatbot-window { height: 70vh; }
}

@media (max-width: 640px) {
    .intro-title { font-size: 1.8rem; }
    .chatbot-window { height: 72vh; }
    .chat-content { max-width: 92%; }
    .chat-input-row { margin: 12px; }
}
