:root {
  --chatpilot-bg: rgba(0, 5, 7, 0.94);
  --chatpilot-panel: rgba(2, 12, 15, 0.96);
  --chatpilot-line: rgba(0, 238, 255, 0.28);
  --chatpilot-line-soft: rgba(0, 238, 255, 0.14);
  --chatpilot-text: #eaffff;
  --chatpilot-muted: rgba(214, 252, 255, 0.68);
  --chatpilot-accent: #00eaff;
  --chatpilot-accent-2: #00a8b8;
  --chatpilot-danger: #ff5d7a;
}

.chatpilot-launcher,
.chatpilot-widget,
.chatpilot-widget * {
  box-sizing: border-box;
}

.chatpilot-launcher {
  position: fixed;
  top: 100px;
  right: 24px;
  bottom: auto;
  z-index: 99998;
  width: 142px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  color: #dffeff;
  box-shadow: none !important;
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .22s ease, filter .22s ease;
}

.chatpilot-launcher::before,
.chatpilot-launcher::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.chatpilot-launcher::before {
  width: 132px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 238, 255, .22) 0%, rgba(0, 238, 255, .10) 34%, transparent 72%);
  filter: blur(10px);
  animation: chatpilotWaveAura 2.6s ease-in-out infinite;
}

.chatpilot-launcher::after {
  width: 128px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 255, .72), rgba(0, 238, 255, .92), transparent);
  transform: translateY(1px);
  opacity: .86;
  box-shadow: 0 0 16px rgba(0, 238, 255, .78);
}

.chatpilot-launcher:hover,
.chatpilot-launcher:focus-visible {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.16) drop-shadow(0 0 24px rgba(0, 238, 255, .58));
  outline: none;
}

.chatpilot-launcher__pulse,
.chatpilot-launcher__pulse::before,
.chatpilot-launcher__pulse::after {
  position: absolute;
  inset: 18px 3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 238, 255, .23);
  content: "";
  pointer-events: none;
  z-index: -1;
  transform-origin: center;
  animation: chatpilotWavePulse 2.7s ease-out infinite;
}

.chatpilot-launcher__pulse::before {
  inset: -10px -14px;
  animation-delay: .72s;
}

.chatpilot-launcher__pulse::after {
  inset: -20px -30px;
  animation-delay: 1.44s;
}

.chatpilot-launcher__icon {
  width: 136px;
  height: 86px;
  overflow: visible;
  filter:
    drop-shadow(0 0 5px rgba(214, 255, 255, .55))
    drop-shadow(0 0 18px rgba(0, 238, 255, .72));
}

.chatpilot-launcher__axis {
  stroke: url(#basilWaveAxis);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(0, 238, 255, .86));
}

.chatpilot-launcher__bar,
.chatpilot-launcher__reflection,
.chatpilot-launcher__tick {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.chatpilot-launcher__bar {
  fill: url(#basilWaveBars);
  rx: 2.5px;
  filter: drop-shadow(0 0 8px rgba(0, 238, 255, .58));
  animation: chatpilotAudioBars .82s ease-in-out infinite;
}

.chatpilot-launcher__reflection {
  fill: url(#basilWaveReflection);
  opacity: .44;
  transform-origin: center top;
  animation: chatpilotAudioReflection .82s ease-in-out infinite;
}

.chatpilot-launcher__tick {
  fill: url(#basilWaveTick);
  opacity: .92;
  animation: chatpilotAudioTicks .82s ease-in-out infinite;
}

.chatpilot-launcher__bar.bar-1,
.chatpilot-launcher__reflection.ref-1,
.chatpilot-launcher__tick.tick-1 { animation-delay: -.56s; }
.chatpilot-launcher__bar.bar-2,
.chatpilot-launcher__reflection.ref-2,
.chatpilot-launcher__tick.tick-2 { animation-delay: -.42s; }
.chatpilot-launcher__bar.bar-3,
.chatpilot-launcher__reflection.ref-3,
.chatpilot-launcher__tick.tick-3 { animation-delay: -.31s; }
.chatpilot-launcher__bar.bar-4,
.chatpilot-launcher__reflection.ref-4,
.chatpilot-launcher__tick.tick-4 { animation-delay: -.18s; }
.chatpilot-launcher__bar.bar-5,
.chatpilot-launcher__reflection.ref-5,
.chatpilot-launcher__tick.tick-5 { animation-delay: -.05s; }
.chatpilot-launcher__bar.bar-6,
.chatpilot-launcher__reflection.ref-6,
.chatpilot-launcher__tick.tick-6 { animation-delay: -.24s; }
.chatpilot-launcher__bar.bar-7,
.chatpilot-launcher__reflection.ref-7,
.chatpilot-launcher__tick.tick-7 { animation-delay: -.39s; }
.chatpilot-launcher__bar.bar-8,
.chatpilot-launcher__reflection.ref-8,
.chatpilot-launcher__tick.tick-8 { animation-delay: -.12s; }
.chatpilot-launcher__bar.bar-9,
.chatpilot-launcher__reflection.ref-9,
.chatpilot-launcher__tick.tick-9 { animation-delay: -.49s; }
.chatpilot-launcher__bar.bar-10,
.chatpilot-launcher__reflection.ref-10,
.chatpilot-launcher__tick.tick-10 { animation-delay: -.28s; }
.chatpilot-launcher__bar.bar-11,
.chatpilot-launcher__reflection.ref-11,
.chatpilot-launcher__tick.tick-11 { animation-delay: -.08s; }
.chatpilot-launcher__bar.bar-12,
.chatpilot-launcher__reflection.ref-12,
.chatpilot-launcher__tick.tick-12 { animation-delay: -.35s; }
.chatpilot-launcher__bar.bar-13,
.chatpilot-launcher__reflection.ref-13,
.chatpilot-launcher__tick.tick-13 { animation-delay: -.16s; }
.chatpilot-launcher__bar.bar-14,
.chatpilot-launcher__reflection.ref-14,
.chatpilot-launcher__tick.tick-14 { animation-delay: -.51s; }

.chatpilot-launcher__scan,
.chatpilot-launcher__dot,
.chatpilot-launcher__glass,
.chatpilot-launcher__grid,
.chatpilot-launcher__corner,
.chatpilot-launcher__ring,
.chatpilot-launcher__waveform,
.chatpilot-launcher__bars {
  display: none;
}


.chatpilot-launcher__label {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 132px;
  padding: 7px 14px 6px;
  border: 1px solid rgba(0, 238, 255, .32);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 238, 255, .05), rgba(0, 238, 255, .16), rgba(0, 238, 255, .05)),
    rgba(0, 5, 7, .62);
  box-shadow:
    0 0 18px rgba(0, 238, 255, .24),
    inset 0 0 14px rgba(0, 238, 255, .08);
  color: #eaffff;
  font-family: Rajdhani, Orbitron, Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 8px rgba(0, 238, 255, .9),
    0 0 18px rgba(0, 238, 255, .45);
  white-space: nowrap;
  pointer-events: none;
}

.chatpilot-launcher__label::before,
.chatpilot-launcher__label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 238, 255, .85));
  box-shadow: 0 0 10px rgba(0, 238, 255, .6);
}

.chatpilot-launcher__label::before {
  left: -22px;
  transform: translateY(-50%);
}

.chatpilot-launcher__label::after {
  right: -22px;
  transform: translateY(-50%) scaleX(-1);
}

.chatpilot-launcher__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.chatpilot-widget {
  position: fixed;
  top: 268px;
  right: 24px;
  bottom: auto;
  width: min(430px, calc(100vw - 32px));
  z-index: 99999;
  display: none;
  font-family: Inter, Rajdhani, Orbitron, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--chatpilot-text);
}

.chatpilot-widget.is-open {
  display: block;
  animation: chatpilotPanelIn .22s ease-out both;
}

.chatpilot-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 238, 255, .16), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(0, 238, 255, .1), transparent 30%),
    linear-gradient(180deg, rgba(2, 18, 22, .98), rgba(0, 4, 7, .96)),
    var(--chatpilot-bg);
  color: var(--chatpilot-text);
  border: 1px solid rgba(0, 238, 255, .34);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .68),
    0 0 42px rgba(0, 238, 255, .2),
    inset 0 0 42px rgba(0, 238, 255, .08),
    inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.chatpilot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 238, 255, .055) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(90deg, rgba(0, 238, 255, .04) 0 1px, transparent 1px 13px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.48));
}

.chatpilot-panel::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 238, 255, .16);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 238, 255, .11) 50%, transparent 100%);
  opacity: .62;
  transform: translateY(-72%);
  animation: chatpilotPanelSweep 4.8s linear infinite;
}

.chatpilot-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(0, 238, 255, .24);
  background:
    linear-gradient(90deg, rgba(0, 238, 255, .12), transparent 42%, rgba(0, 238, 255, .08)),
    rgba(0, 10, 13, .72);
}

.chatpilot-header::before {
  content: "SYSTEM ONLINE";
  position: absolute;
  right: 66px;
  top: 13px;
  color: rgba(0, 238, 255, .76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 238, 255, .56);
}

.chatpilot-header > div {
  position: relative;
  min-width: 0;
  padding-left: 34px;
}

.chatpilot-header > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 238, 255, .7);
  background:
    radial-gradient(circle, rgba(226, 255, 255, .96) 0 13%, rgba(0, 238, 255, .95) 14% 25%, transparent 26% 39%, rgba(0, 238, 255, .38) 40% 42%, rgba(0, 10, 12, .72) 43% 100%);
  box-shadow: 0 0 20px rgba(0, 238, 255, .52), inset 0 0 14px rgba(0, 238, 255, .22);
  animation: chatpilotCoreBlink 1.8s ease-in-out infinite;
}

.chatpilot-header strong {
  display: block;
  max-width: 255px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f2ffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 238, 255, .38);
}

.chatpilot-header span {
  display: block;
  margin-top: 5px;
  color: var(--chatpilot-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chatpilot-close {
  position: relative;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  margin: 0;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 238, 255, .52);
  background: radial-gradient(circle at 50% 45%, rgba(0, 238, 255, .18), rgba(255,255,255,.055) 54%, rgba(0, 0, 0, .22));
  color: transparent !important;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    0 0 16px rgba(0, 238, 255, .24),
    inset 0 0 13px rgba(0, 238, 255, .1);
}

.chatpilot-close::before,
.chatpilot-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--chatpilot-text);
  box-shadow: 0 0 9px rgba(0, 238, 255, .72);
  transform-origin: center;
  pointer-events: none;
}

.chatpilot-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chatpilot-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.chatpilot-close span {
  display: none !important;
}

.chatpilot-close:hover,
.chatpilot-close:focus-visible {
  border-color: rgba(226, 255, 255, .9);
  background: radial-gradient(circle at 50% 45%, rgba(0, 238, 255, .28), rgba(255,255,255,.075) 56%, rgba(0, 0, 0, .24));
  outline: none;
}

.chatpilot-messages {
  height: min(440px, calc(100vh - 310px));
  min-height: 300px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-color: rgba(0, 238, 255, .55) rgba(0, 20, 24, .7);
}

.chatpilot-messages::-webkit-scrollbar { width: 9px; }
.chatpilot-messages::-webkit-scrollbar-track { background: rgba(0, 20, 24, .7); }
.chatpilot-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,238,255,.78), rgba(0,128,144,.52));
}

.chatpilot-message {
  position: relative;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.48;
  font-size: 14px;
  white-space: pre-wrap;
  color: #ecffff;
  text-shadow: 0 0 10px rgba(0, 238, 255, .12);
}

.chatpilot-message::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chatpilot-accent);
  box-shadow: 0 0 10px rgba(0,238,255,.8);
  opacity: .84;
}

.chatpilot-message.bot {
  align-self: flex-start;
  border-top-left-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 238, 255, .1), rgba(255, 255, 255, .04)),
    rgba(0, 16, 20, .84);
  border: 1px solid rgba(0, 238, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(0,238,255,.08);
}

.chatpilot-message.bot::before { left: -10px; }

.chatpilot-message.user {
  align-self: flex-end;
  border-top-right-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 238, 255, .25), rgba(0, 84, 96, .34)),
    rgba(0, 35, 40, .88);
  border: 1px solid rgba(0, 238, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 24px rgba(0,238,255,.13);
}

.chatpilot-message.user::before { right: -10px; }

.chatpilot-sources {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 238, 255, .14);
  color: rgba(225,255,255,.75);
  font-size: 12px;
}

.chatpilot-sources a {
  color: var(--chatpilot-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 238, 255, .32);
}

.chatpilot-form {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(0, 238, 255, .24);
  background:
    linear-gradient(90deg, rgba(0, 238, 255, .09), transparent 48%, rgba(0, 238, 255, .06)),
    rgba(0, 10, 13, .74);
}

.chatpilot-form::before {
  content: "INPUT MODE";
  position: absolute;
  left: 20px;
  top: -8px;
  padding: 0 8px;
  background: rgba(0, 6, 8, .96);
  color: rgba(0, 238, 255, .78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.chatpilot-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0, 238, 255, .28);
  padding: 0 15px;
  color: var(--chatpilot-text);
  background:
    repeating-linear-gradient(90deg, rgba(0,238,255,.035) 0 1px, transparent 1px 9px),
    rgba(0, 12, 16, .92);
  outline: none;
  box-shadow: inset 0 0 18px rgba(0, 238, 255, .07);
}

.chatpilot-form input::placeholder {
  color: rgba(214, 252, 255, .48);
}

.chatpilot-form input:focus {
  border-color: rgba(0, 238, 255, .7);
  box-shadow: 0 0 0 3px rgba(0, 238, 255, .11), inset 0 0 18px rgba(0, 238, 255, .1);
}

.chatpilot-form button {
  height: 46px;
  border: 1px solid rgba(187, 255, 255, .62);
  border-radius: 12px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #7dfbff, #00eaff 48%, #009dad);
  color: #001114;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 238, 255, .35), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.chatpilot-form button:hover,
.chatpilot-form button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(0, 238, 255, .48), inset 0 1px 0 rgba(255,255,255,.62);
  outline: none;
}

.chatpilot-form button:disabled,
.chatpilot-form input:disabled {
  cursor: wait;
  opacity: .68;
}

@keyframes chatpilotHudBars {
  0%, 100% { transform: scaleY(.52); opacity: .62; }
  50% { transform: scaleY(1.16); opacity: 1; }
}

@keyframes chatpilotWaveformTalk {
  0%, 100% { transform: scaleY(.82); opacity: .7; }
  50% { transform: scaleY(1.18); opacity: 1; }
}

@keyframes chatpilotHudSpin { to { transform: rotate(360deg); } }
@keyframes chatpilotHudSpinReverse { to { transform: rotate(-360deg); } }

@keyframes chatpilotHudDot {
  0%, 100% { transform: scale(.82); opacity: .68; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes chatpilotScanLine {
  0%, 100% { transform: translateY(-19px); opacity: .25; }
  50% { transform: translateY(38px); opacity: .95; }
}

@keyframes chatpilotHudSweep {
  0% { transform: translateY(-42px); opacity: 0; }
  18% { opacity: .7; }
  100% { transform: translateY(42px); opacity: 0; }
}

@keyframes chatpilotCornerFlicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: .45; }
  96% { opacity: .88; }
}

@keyframes chatpilotHudPulse {
  0% { opacity: .72; transform: scale(.86); }
  76%, 100% { opacity: 0; transform: scale(1.2); }
}


@keyframes chatpilotWaveAura {
  0%, 100% { opacity: .62; transform: scaleX(.94) scaleY(.92); }
  50% { opacity: 1; transform: scaleX(1.08) scaleY(1.08); }
}

@keyframes chatpilotWavePulse {
  0% { opacity: .42; transform: scale(.82); }
  74%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes chatpilotAudioBars {
  0%, 100% { transform: scaleY(.62); opacity: .72; }
  42% { transform: scaleY(1.18); opacity: 1; }
  72% { transform: scaleY(.88); opacity: .9; }
}

@keyframes chatpilotAudioReflection {
  0%, 100% { transform: scaleY(.52); opacity: .26; }
  42% { transform: scaleY(1.08); opacity: .48; }
  72% { transform: scaleY(.75); opacity: .34; }
}

@keyframes chatpilotAudioTicks {
  0%, 100% { transform: translateY(2px) scaleX(.72); opacity: .44; }
  42% { transform: translateY(-2px) scaleX(1.08); opacity: .96; }
  72% { transform: translateY(0) scaleX(.88); opacity: .68; }
}

@keyframes chatpilotPanelSweep {
  0% { transform: translateY(-72%); opacity: 0; }
  12% { opacity: .48; }
  100% { transform: translateY(72%); opacity: 0; }
}

@keyframes chatpilotPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chatpilotCoreBlink {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .chatpilot-launcher,
  .chatpilot-launcher::before,
  .chatpilot-launcher::after,
  .chatpilot-launcher__pulse,
  .chatpilot-launcher__pulse::before,
  .chatpilot-launcher__pulse::after,
  .chatpilot-launcher__bar,
  .chatpilot-launcher__reflection,
  .chatpilot-launcher__tick,
  .chatpilot-widget.is-open,
  .chatpilot-panel::after,
  .chatpilot-header > div::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 520px) {
  .chatpilot-launcher {
    top: 84px;
    right: 10px;
    width: 128px;
    height: 82px;
  }

  .chatpilot-launcher__icon {
    width: 122px;
    height: 78px;
  }

  .chatpilot-launcher__label {
    top: calc(100% - 22px);
    min-width: 118px;
    padding: 6px 12px 5px;
    font-size: 12px;
    letter-spacing: .18em;
  }

  .chatpilot-widget {
    top: 230px;
    right: 14px;
    width: calc(100vw - 28px);
  }

  .chatpilot-header::before {
    display: none;
  }

  .chatpilot-header strong {
    max-width: 220px;
  }

  .chatpilot-messages {
    height: min(54vh, 420px);
    min-height: 260px;
  }

  .chatpilot-form {
    gap: 8px;
  }

  .chatpilot-form button {
    padding: 0 13px;
  }
}

/* B.A.S.I.L. v3.0 lead capture */
.chatpilot-lead-card {
  margin: 12px 0 6px 18px;
  padding: 14px;
  max-width: 92%;
  border: 1px solid rgba(0, 240, 255, .35);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, .10), rgba(0, 12, 16, .78)),
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .04) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 0 22px rgba(0, 240, 255, .08), 0 0 22px rgba(0, 240, 255, .14);
  color: #eaffff;
}

.chatpilot-lead-card strong {
  display: block;
  margin-bottom: 10px;
  color: #eaffff;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chatpilot-lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chatpilot-lead-form input,
.chatpilot-lead-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(0, 240, 255, .35);
  border-radius: 11px;
  background: rgba(0, 8, 12, .78);
  color: #eaffff;
  padding: 9px 11px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(0, 240, 255, .05);
}

.chatpilot-lead-form textarea {
  grid-column: 1 / -1;
  min-height: 70px;
  resize: vertical;
}

.chatpilot-lead-form button {
  min-height: 38px;
  border: 1px solid rgba(120, 255, 255, .8);
  border-radius: 11px;
  color: #001217;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #8effff, #00d8f0 58%, #008c9c);
  box-shadow: 0 0 18px rgba(0, 240, 255, .35);
  cursor: pointer;
}

.chatpilot-lead-form small {
  align-self: center;
  color: rgba(234, 255, 255, .62);
  font-size: 11px;
}

@media (max-width: 520px) {
  .chatpilot-lead-form {
    grid-template-columns: 1fr;
  }
}

/* B.A.S.I.L. v3.4 smarter lead flow */
.chatpilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px 18px;
  max-width: 92%;
}

.chatpilot-actions button {
  border: 1px solid rgba(0, 240, 255, .42);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dfffff;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, .12), rgba(0, 9, 14, .78)),
    repeating-linear-gradient(90deg, rgba(0, 240, 255, .045) 0 1px, transparent 1px 10px);
  box-shadow: inset 0 0 14px rgba(0, 240, 255, .08), 0 0 14px rgba(0, 240, 255, .13);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.chatpilot-actions button:hover,
.chatpilot-actions button:focus {
  border-color: rgba(120, 255, 255, .88);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, .12), 0 0 22px rgba(0, 240, 255, .28);
}

.chatpilot-qualifiers {
  margin: 0 0 11px 0;
  padding-left: 18px;
  color: rgba(234, 255, 255, .78);
  font-size: 12px;
  line-height: 1.45;
}

.chatpilot-lead-form input[name="budget"],
.chatpilot-lead-form input[name="urgency"] {
  border-color: rgba(120, 255, 255, .32);
}
