/* ==========================================================================
   BEYOĞLU AI — CHAT WIDGET & FLOATING ASSISTANT
   Namespace: .bt-ai-*
   Apple & Emil Kowalski Rafine Standartları (Zero-wrap, Fluid Motion, Tactile)
   ========================================================================== */

:root {
  --bt-ai-primary: #d12131;
  --bt-ai-primary-hover: #b01b29;
  --bt-ai-dark: #1a1f2e;
  --bt-ai-surface: #ffffff;
  --bt-ai-surface-subtle: #f8fafc;
  --bt-ai-border: #e2e8f0;
  --bt-ai-text: #1e293b;
  --bt-ai-muted: #64748b;
  --bt-ai-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --bt-ai-radius: 18px;
}

/* 1. FLOATING LAUNCHER BUTTON */
.bt-ai-launcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 995;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  user-select: none;
}

.bt-ai-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px -4px rgba(209, 33, 49, 0.35), 0 0 0 1px rgba(209, 33, 49, 0.3);
  border-color: rgba(209, 33, 49, 0.4);
}

.bt-ai-launcher:active {
  transform: translateY(0) scale(0.98);
}

.bt-ai-launcher-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d12131 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(209, 33, 49, 0.5);
}

.bt-ai-launcher-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  fill: currentColor;
}

.bt-ai-launcher-badge {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: btAiPulse 2s infinite;
}

@keyframes btAiPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 2. CHAT PANEL */
.bt-ai-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 400px;
  height: 600px;
  max-height: calc(100vh - 7rem);
  background: var(--bt-ai-surface);
  border-radius: var(--bt-ai-radius);
  box-shadow: var(--bt-ai-shadow);
  border: 1px solid var(--bt-ai-border);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.bt-ai-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 3. PANEL HEADER */
.bt-ai-header {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.bt-ai-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bt-ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d12131 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(209, 33, 49, 0.4);
}

.bt-ai-avatar svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.bt-ai-title-wrap {
  line-height: 1.25;
}

.bt-ai-title {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bt-ai-title-badge {
  background: #d12131;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bt-ai-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bt-ai-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.bt-ai-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bt-ai-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.bt-ai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 4. CHAT BODY */
.bt-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
  scroll-behavior: smooth;
}

/* Welcome Card */
.bt-ai-welcome-box {
  background: #ffffff;
  border: 1px solid var(--bt-ai-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bt-ai-welcome-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 0.85rem;
}

/* Quick Actions Grid */
.bt-ai-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.bt-ai-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-align: left;
}

.bt-ai-chip:hover {
  background: #FDEDED;
  border-color: #fcd7d9;
  color: #d12131;
  transform: translateY(-1px);
}

/* Messages */
.bt-ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: btAiSlideUp 0.2s ease;
}

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

.bt-ai-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.bt-ai-msg.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.bt-ai-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}

.bt-ai-msg.user .bt-ai-bubble {
  background: linear-gradient(135deg, #d12131 0%, #b01b29 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bt-ai-msg.assistant .bt-ai-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bt-ai-bubble h3, .bt-ai-bubble h4 {
  margin: 0.4rem 0 0.25rem 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.bt-ai-bubble p {
  margin: 0 0 0.5rem 0;
}
.bt-ai-bubble p:last-child {
  margin-bottom: 0;
}

.bt-ai-bubble ul, .bt-ai-bubble ol {
  margin: 0.35rem 0 0.5rem 1.15rem;
  padding: 0;
}

.bt-ai-bubble li {
  margin-bottom: 0.25rem;
}

/* Products in Chat */
.bt-ai-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
  width: 100%;
}

.bt-ai-product-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.bt-ai-product-card:hover {
  border-color: #d12131;
  background: #fffafa;
  transform: translateX(2px);
}

.bt-ai-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
  flex-shrink: 0;
}

.bt-ai-product-info {
  flex: 1;
  min-width: 0;
}

.bt-ai-product-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-ai-product-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: #d12131;
}

/* Action CTA */
.bt-ai-cta-wrap {
  margin-top: 0.65rem;
}

.bt-ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1e293b;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s;
}

.bt-ai-cta-btn:hover {
  background: #d12131;
  color: #ffffff;
}

/* Feedback thumbs */
.bt-ai-feedback-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.bt-ai-thumb-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.bt-ai-thumb-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Typing Indicator */
.bt-ai-typing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  align-self: flex-start;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.bt-ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  animation: btAiBounce 1.4s infinite ease-in-out both;
}

.bt-ai-dot:nth-child(1) { animation-delay: -0.32s; }
.bt-ai-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes btAiBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* 5. FOOTER & INPUT */
.bt-ai-footer {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--bt-ai-border);
  flex-shrink: 0;
}

.bt-ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  transition: all 0.15s;
}

.bt-ai-input-wrap:focus-within {
  background: #ffffff;
  border-color: #d12131;
  box-shadow: 0 0 0 3px rgba(209, 33, 49, 0.12);
}

.bt-ai-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #1e293b;
  outline: none;
  font-family: inherit;
}

.bt-ai-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d12131;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.bt-ai-send-btn:hover {
  background: #b01b29;
  transform: scale(1.05);
}

.bt-ai-send-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.bt-ai-disclaimer {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.45rem;
  line-height: 1.25;
}

/* ==========================================================================
   7. SATIŞ DANIŞMANI MODU (SALES CONSULTANT & OFFICIAL CITATIONS)
   ========================================================================== */

/* Blockquote & Official Callout */
.bt-ai-blockquote {
  border-left: 3px solid #2563eb;
  background: #f0f7ff;
  color: #1e3a8a;
  padding: 0.5rem 0.75rem;
  border-radius: 0 8px 8px 0;
  margin: 0.6rem 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Official Authority Badge (GİB & KamuSM) */
.bt-ai-official-badge {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #059669;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-top: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bt-ai-off-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.bt-ai-off-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.bt-ai-off-title-wrap {
  flex: 1;
}

.bt-ai-off-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
}

.bt-ai-off-inst {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.bt-ai-off-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.bt-ai-off-body {
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.45;
}

.bt-ai-off-row {
  margin-bottom: 0.2rem;
}

.bt-ai-off-foot {
  margin-top: 0.35rem;
}

.bt-ai-off-link {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.72rem;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Interactive Bundle Card */
.bt-ai-bundle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bt-ai-bundle-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.bt-ai-bundle-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d12131;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.bt-ai-bundle-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.bt-ai-bundle-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* Bundle Items List */
.bt-ai-bundle-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.bt-ai-bundle-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.bt-ai-bundle-item-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  padding: 2px;
}

.bt-ai-bundle-item-info {
  flex: 1;
  min-width: 0;
}

.bt-ai-bundle-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.bt-ai-bundle-role-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
}

.bt-ai-bundle-stock-badge {
  font-size: 0.62rem;
  font-weight: 700;
}

.bt-ai-bundle-stock-badge.in-stock {
  color: #059669;
}

.bt-ai-bundle-stock-badge.out-stock {
  color: #d97706;
}

.bt-ai-bundle-item-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-ai-bundle-item-price {
  font-size: 0.75rem;
  font-weight: 800;
  color: #d12131;
}

/* Bundle Summary */
.bt-ai-bundle-summary {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.6rem;
}

.bt-ai-bundle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.bt-ai-bundle-pill {
  font-size: 0.62rem;
  font-weight: 600;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
}

.bt-ai-bundle-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.35rem;
}

.bt-ai-bundle-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.bt-ai-bundle-total-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}

/* Bundle Actions */
.bt-ai-bundle-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bt-ai-btn-add-bundle {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.bt-ai-btn-add-bundle:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.bt-ai-btn-add-bundle:active {
  transform: scale(0.98);
}

.bt-ai-btn-add-bundle.success {
  background: #0f172a;
  color: #10b981;
  box-shadow: none;
}

.bt-ai-btn-quote-bundle {
  width: 100%;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s;
}

.bt-ai-btn-quote-bundle:hover {
  background: #f8fafc;
  border-color: #d12131;
  color: #d12131;
}

/* Quote Form Inline */
.bt-ai-bundle-quote-form {
  margin-top: 0.6rem;
  animation: btAiFadeIn 0.25s ease-out;
}

@keyframes btAiFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bt-ai-quote-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem;
}

.bt-ai-quote-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.bt-ai-quote-desc {
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.bt-ai-qinput {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.bt-ai-qinput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.bt-ai-btn-submit-quote {
  width: 100%;
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bt-ai-btn-submit-quote:hover {
  background: #0f172a;
}

.bt-ai-quote-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.bt-ai-quote-success-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #065f46;
}

.bt-ai-quote-ref {
  font-size: 0.75rem;
  color: #047857;
  margin: 0.25rem 0;
}

.bt-ai-quote-sub {
  font-size: 0.68rem;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.bt-ai-wa-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.15s;
}

.bt-ai-wa-link-btn:hover {
  background: #1eb854;
  transform: scale(1.02);
}

/* Comparison Matrix Card */
.bt-ai-comparison-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bt-ai-cmp-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.35rem;
}

.bt-ai-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.4rem 0;
}

.bt-ai-cmp-table, .bt-ai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.bt-ai-cmp-table th, .bt-ai-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
}

.bt-ai-cmp-table td, .bt-ai-table td {
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.bt-ai-cmp-lbl {
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  white-space: nowrap;
}

.bt-ai-cmp-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.bt-ai-cmp-link {
  flex: 1;
  text-align: center;
  background: #f1f5f9;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.7rem;
  text-decoration: none;
  padding: 0.35rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.bt-ai-cmp-link:hover {
  background: #0284c7;
  color: #ffffff;
}

/* 6. MOBILE RESPONSIVE DRAWER */
@media (max-width: 640px) {
  .bt-ai-launcher {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.825rem;
  }
  .bt-ai-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}
