/* Arab Templates — AI Voice Sales & Upsell Assistant */
.atv-fab {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 66px;
  z-index: 9460;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(197, 160, 89, .5);
  background: linear-gradient(150deg, #16243A, #0B1424);
  color: #F2D99B;
  border-radius: 99px;
  padding: 8px 12px 8px 10px;
  font: 900 9.5px/1.4 system-ui, Tahoma, sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
  transition: transform .16s, border-color .16s;
}
.atv-fab:hover { transform: translateY(-1px); border-color: #E4C88A; }
.atv-fab .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.atv-fab.playing .dot { animation: atvPulse 1.1s infinite; }
@keyframes atvPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(52, 211, 153, .25); } 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .05); } }

.atv-panel {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 106px;
  z-index: 9465;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid rgba(197, 160, 89, .38);
  border-radius: 16px;
  background: linear-gradient(165deg, #121D31, #0A1220);
  color: #ECF3FC;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  font: 500 12px/1.7 system-ui, -apple-system, Tahoma, sans-serif;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  overflow: hidden;
}
.atv-panel.on { transform: none; opacity: 1; pointer-events: auto; }
html[data-at-theme="light"] .atv-panel {
  background: #FFFDF9;
  color: #16233A;
  border-color: rgba(120, 92, 40, .32);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .22);
}
.atv-head { display: flex; align-items: center; gap: 7px; padding: 11px 12px; border-bottom: 1px solid rgba(148, 163, 184, .18); }
.atv-head b { font-size: 11px; }
.atv-head .sub { font-size: 8.5px; color: #93A4BC; font-weight: 700; }
html[data-at-theme="light"] .atv-head .sub { color: #5C677E; }
.atv-hbtn { margin-inline-start: auto; border: 1px solid rgba(148, 163, 184, .26); background: transparent; color: inherit; border-radius: 7px; width: 26px; height: 24px; cursor: pointer; font-size: 11px; }
.atv-hbtn:hover { border-color: #C5A059; color: #F2D99B; }
html[data-at-theme="light"] .atv-hbtn:hover { color: #8A6322; }

.atv-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 8px 12px 0; }
.atv-wave i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: #C5A059;
  opacity: .55;
}
.atv-panel.speaking .atv-wave i { animation: atvWave .9s ease-in-out infinite; opacity: 1; }
.atv-wave i:nth-child(2) { animation-delay: .1s; }
.atv-wave i:nth-child(3) { animation-delay: .2s; height: 9px; }
.atv-wave i:nth-child(4) { animation-delay: .3s; }
.atv-wave i:nth-child(5) { animation-delay: .15s; }
.atv-wave i:nth-child(6) { animation-delay: .05s; height: 8px; }
@keyframes atvWave { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .atv-panel.speaking .atv-wave i { animation: none; height: 10px; }
}

.atv-say { margin: 0; padding: 8px 12px 4px; font-size: 10.5px; line-height: 1.75; min-height: 42px; color: #C9D6E8; }
html[data-at-theme="light"] .atv-say { color: #40506A; }
.atv-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 9px; }
.atv-chip {
  border: 1px solid rgba(197, 160, 89, .32);
  background: rgba(197, 160, 89, .08);
  color: #F2D99B;
  border-radius: 99px;
  padding: 4px 9px;
  font: 800 8.5px/1.5 inherit;
  cursor: pointer;
}
html[data-at-theme="light"] .atv-chip { color: #7C5717; border-color: rgba(162, 118, 44, .35); background: rgba(162, 118, 44, .07); }
.atv-chip:hover { background: rgba(197, 160, 89, .18); }

.atv-offer { display: none; margin: 0 10px 10px; border: 1px solid rgba(197, 160, 89, .4); border-radius: 11px; padding: 9px 10px; background: rgba(197, 160, 89, .07); }
.atv-offer.on { display: block; }
.atv-offer .k { font-size: 8px; font-weight: 900; letter-spacing: .1em; color: #C5A059; text-transform: uppercase; }
.atv-offer b { display: block; font-size: 11px; line-height: 1.5; margin: 2px 0; }
.atv-offer p { margin: 0 0 6px; font-size: 9px; line-height: 1.6; color: #93A4BC; }
html[data-at-theme="light"] .atv-offer p { color: #5C677E; }
.atv-offer a, .atv-offer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #C5A059;
  background: #C5A059;
  color: #0F172A;
  border-radius: 7px;
  padding: 5px 9px;
  font: 900 9px/1.4 inherit;
  text-decoration: none;
  cursor: pointer;
}
.atv-note { padding: 0 12px 10px; font-size: 8px; color: #7E90A8; line-height: 1.6; }
html[data-at-theme="light"] .atv-note { color: #6B768C; }

@media (max-width: 560px) {
  .atv-fab { bottom: 70px; padding: 7px 10px; }
  .atv-panel { bottom: 104px; inset-inline-start: 8px; width: calc(100vw - 16px); }
}

.atv-hbtn.rec { border-color: rgba(52, 211, 153, .6); color: #6EE7B7; animation: atvPulse 1.1s infinite; }
