/* AI Digital Avatar Consultation Component Styles */

.ai-avatar-section {
  position: relative;
  background: linear-gradient(135deg, rgba(84, 182, 137, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-top: 1px solid rgba(84, 182, 137, 0.15);
  border-bottom: 1px solid rgba(84, 182, 137, 0.15);
  overflow: hidden;
}

[data-bs-theme="dark"] .ai-avatar-section {
  background: linear-gradient(135deg, rgba(84, 182, 137, 0.12) 0%, rgba(35, 41, 48, 0.95) 100%);
  border-top: 1px solid rgba(84, 182, 137, 0.25);
  border-bottom: 1px solid rgba(84, 182, 137, 0.25);
}

.ai-avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(84, 182, 137, 0.15);
  color: #398562;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(84, 182, 137, 0.3);
}

[data-bs-theme="dark"] .ai-avatar-badge {
  background: rgba(84, 182, 137, 0.2);
  color: #98d3b8;
  border-color: rgba(84, 182, 137, 0.4);
}

.ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #28a745;
  box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  animation: ai-pulse 1.8s infinite;
}

@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.ai-chat-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

[data-bs-theme="dark"] .ai-chat-card {
  background: #2b3035;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ai-chat-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-bs-theme="dark"] .ai-chat-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #54B689;
}

.ai-chat-card-body {
  padding: 1.25rem;
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
}

.ai-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  word-wrap: break-word;
}

.ai-bubble.avatar-msg {
  background: #f1f7f4;
  color: #292929;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(84, 182, 137, 0.2);
}

[data-bs-theme="dark"] .ai-bubble.avatar-msg {
  background: #1f2723;
  color: #d8e5df;
  border: 1px solid rgba(84, 182, 137, 0.3);
}

.ai-bubble.user-msg {
  background: #54B689;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.ai-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-chip {
  background: #ffffff;
  border: 1px solid rgba(84, 182, 137, 0.35);
  color: #317253;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

[data-bs-theme="dark"] .ai-chip {
  background: #23282c;
  color: #98d3b8;
  border-color: rgba(84, 182, 137, 0.4);
}

.ai-chip:hover {
  background: #54B689;
  color: #ffffff;
  border-color: #54B689;
  transform: translateY(-1px);
}

.ai-input-bar {
  display: flex;
  gap: 8px;
  padding: 1rem 1.25rem;
  background: #fcfcfc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .ai-input-bar {
  background: #212529;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-input-field {
  flex: 1;
  border-radius: 24px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Floating AI Chat Widget */
.ai-floating-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #54B689;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 8px 24px rgba(84, 182, 137, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.ai-floating-btn:hover {
  background: #419b70;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(84, 182, 137, 0.5);
  color: #fff;
}

.ai-floating-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.ai-widget-modal {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-widget-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

[data-bs-theme="dark"] .ai-widget-modal {
  background: #212529;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.ai-widget-header {
  background: #54B689;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-widget-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}

/* Dedicated Chat Page Styles */
.ai-chat-page-container {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.ai-chat-thread-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
}

/* ==========================================================================
   Owner.dev Inspired Modern Cyber Tech Styles for /chat
   ========================================================================== */

/* Full-width Immersive Chat Container */
body.chat-page-body,
body.chat-page-body .main-wrapper,
.chat-main-wrapper {
  margin-left: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  min-height: 100vh;
  background: #080c14;
  background-image: 
    radial-gradient(circle at 50% -12%, rgba(56, 189, 248, 0.18) 0%, rgba(245, 158, 11, 0.09) 36%, transparent 72%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

body.dark-mode.chat-page-body,
body.dark-mode .chat-main-wrapper {
  background: #060910 !important;
  background-image: 
    radial-gradient(circle at 50% -12%, rgba(56, 189, 248, 0.2) 0%, rgba(245, 158, 11, 0.1) 36%, transparent 72%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px !important;
  color: #f8fafc;
}

/* Owner.dev Style Minimalist Navbar */
.chat-fullscreen-navbar {
  height: 64px;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1040;
}

body.dark-mode .chat-fullscreen-navbar {
  background: rgba(6, 9, 16, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.chat-brand-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Owner.dev Style Capsule Pill Badge */
.owner-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  color: #38bdf8;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
  transition: all 0.2s ease;
}

.owner-pill-badge:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.cyber-ping-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.cyber-ping-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  animation: cyber-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes cyber-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* Nav Links */
.chat-nav-link {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.chat-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Owner.dev Primary Button: Warm Amber / Gold Gradient */
.owner-btn-amber {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #080c14 !important;
  font-weight: 700 !important;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.owner-btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%) !important;
  color: #000000 !important;
}

/* Owner.dev Secondary Button: Cyber Blue Gradient */
.owner-btn-blue {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.owner-btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, #7dd3fc 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}

/* Owner.dev Ghost Outline Button */
.owner-btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f1f5f9 !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.owner-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Chat Layout Body */
.chat-fullscreen-body {
  height: calc(100vh - 64px);
  display: flex;
  overflow: hidden;
}

/* Left Tech HUD Sidebar */
.chat-info-sidebar {
  width: 360px;
  flex-shrink: 0;
  background: rgba(10, 14, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-info-sidebar::-webkit-scrollbar {
  width: 4px;
}

.chat-info-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.chat-info-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

/* Cyber Avatar Halo Frame */
.cyber-avatar-frame {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-avatar-halo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #fbbf24, #38bdf8, #818cf8, #fbbf24);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cyber-halo-rotate 8s linear infinite;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.cyber-avatar-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #080c14;
  position: relative;
  z-index: 2;
}

.cyber-avatar-status-pip {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #080c14;
  z-index: 3;
  box-shadow: 0 0 8px #38bdf8;
}

/* Telemetry Box */
.cyber-telemetry-box {
  background: rgba(15, 22, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cyber-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  gap: 10px;
}

.cyber-telemetry-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cyber-telemetry-val {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
  white-space: nowrap;
  text-align: right;
}

/* Module Pills */
.cyber-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.cyber-module-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

/* Prompt Buttons */
.cyber-prompt-btn {
  width: 100%;
  text-align: left;
  background: rgba(15, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cyber-prompt-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  border-left: 3px solid #fbbf24;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  color: #ffffff;
  transform: translateX(2px);
}

/* Markdown Cyber Callout & Divider */
.cyber-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), rgba(245, 158, 11, 0.5), transparent);
  margin: 1rem 0;
}

.cyber-callout-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 3px solid #fbbf24;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.cyber-heading {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #38bdf8;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Right Main Conversation Deck */
.chat-main-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.chat-conversation-header {
  padding: 12px 28px;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-conversation-stream {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.chat-conversation-stream::-webkit-scrollbar {
  width: 5px;
}

.chat-conversation-stream::-webkit-scrollbar-track {
  background: transparent;
}

.chat-conversation-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.chat-stream-inner {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* Chat Messages */
.ai-msg-row {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 14px;
  animation: cyber-msg-fade 0.3s ease forwards;
}

.ai-msg-row.user-row {
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.ai-msg-content {
  max-width: 82%;
  background: rgba(13, 19, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.ai-msg-row.user-row .ai-msg-content {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.4);
  border-bottom-right-radius: 4px;
}

.ai-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-reasoning-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ai-copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-copy-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.ai-msg-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 8px;
}

/* Conversation Chips */
.ai-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-chip {
  background: rgba(15, 22, 38, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ai-chip:hover {
  background: #38bdf8;
  color: #080c14;
  border-color: #38bdf8;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Thinking Indicator */
.cyber-thinking-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(15, 22, 38, 0.85);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.cyber-scanner-wave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cyber-scanner-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #38bdf8;
  animation: cyber-bar-pulse 1s ease-in-out infinite;
}

.cyber-scanner-bar:nth-child(2) { animation-delay: 0.15s; }
.cyber-scanner-bar:nth-child(3) { animation-delay: 0.3s; }
.cyber-scanner-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes cyber-bar-pulse {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 18px; opacity: 1; }
}

/* Composer Area (Cockpit Command Deck) */
.chat-composer-area {
  padding: 14px 24px 20px 24px;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chat-composer-inner {
  max-width: 920px;
  margin: 0 auto;
}

.cyber-input-capsule {
  display: flex;
  align-items: flex-end;
  background: rgba(13, 19, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px 10px 6px 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.cyber-input-capsule:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 25px rgba(56, 189, 248, 0.2);
}

.cyber-textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #f8fafc;
  padding: 6px 8px 6px 0;
  max-height: 120px;
}

.cyber-textarea::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

.cyber-kbd-badge {
  display: inline-block;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Dark Mode Switcher in Chat Header */
.chat-dark-mode-toggle {
  display: inline-flex;
  align-items: center;
}

.chat-dark-mode-toggle .toggle {
  display: none;
}

.chat-dark-mode-toggle .toggle-btn {
  outline: 0;
  display: block;
  width: 44px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  background: rgba(15, 22, 38, 0.8);
  transition: all 0.2s ease;
}

.chat-dark-mode-toggle .toggle-btn:after {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  transition: all 0.2s ease;
  box-shadow: 0 0 6px #38bdf8;
}

.chat-dark-mode-toggle .toggle:checked + .toggle-btn:after {
  left: 22px;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

@media (max-width: 991.98px) {
  .chat-fullscreen-body {
    height: auto;
    flex-direction: column;
    overflow: visible;
  }
  .chat-info-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .chat-main-conversation {
    height: calc(100vh - 120px);
  }
}



