html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  overflow-x: hidden !important;
}

#sv-chat-root {
  width: 100%;
  min-height: 100vh;
  background: #000;
}

#sv-page-msv-chat {
      --connection-box-x: 0px;
      --connection-box-y: 0px;
    }

.sv-chat-widget,
  .sv-chat-widget * {
    box-sizing: border-box;
  }

  .sv-chat-widget {
    width: min(100vw, 414px) !important;
    max-width: 414px !important;
    height: 0;
    min-height: 0;
    margin: 0 auto !important;
    background: transparent;
    color: #fff;
    font-family: Montserrat, Poppins, Arial, sans-serif;
    overflow: visible;
    position: relative;
    z-index: 99999;
    pointer-events: none;
  }

  .sv-chat-widget.sv-connection-mode,
  .sv-chat-widget.sv-chat-mode {
    position: fixed;
    top: 0;
    left: 50%;
    width: min(100vw, 414px) !important;
    max-width: 414px !important;
    height: 100dvh;
    min-height: 100dvh;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .sv-chat-widget img {
    display: block;
    max-width: 100%;
  }

  .sv-chat-connection {
    display: none;
    width: 100%;
    min-height: 100dvh;
    padding: 12px 14px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,26,26,.13), transparent 36%),
      #050607;
    opacity: 0;
    transition: opacity 1.15s ease;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .sv-chat-widget.sv-connection-mode .sv-chat-connection.active {
    display: flex;
    opacity: 1;
  }

  .sv-chat-connection.sv-fade-out {
    opacity: 0 !important;
    pointer-events: none;
  }

  .sv-connection-card {
    width: 100%;
    max-width: 378px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,26,26,.28);
    background: linear-gradient(180deg, rgba(20,20,20,.97), rgba(0,0,0,.99));
    box-shadow:
      0 0 22px rgba(255,26,26,.18),
      0 0 64px rgba(255,26,26,.10),
      inset 0 0 24px rgba(255,255,255,.035);
    transform: translate(var(--connection-box-x), var(--connection-box-y));
    animation: svConnectionGlow 2.8s ease-in-out infinite;
  }

  .sv-connection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 11px;
    font-weight: 800;
  }

  .sv-connection-dot,
  .sv-analysis-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 14px rgba(0,210,106,.85);
    flex: 0 0 9px;
  }

  .sv-connection-lines {
    display: grid;
    gap: 8px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;
  }

  .sv-connection-line {
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .35s ease, transform .35s ease;
  }

  .sv-connection-line.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sv-connection-line.success {
    color: #00d26a;
  }

  .sv-connection-line-top {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }

  .sv-terminal-title {
    min-width: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sv-terminal-prompt {
    color: #ff2525;
    margin-right: 4px;
  }

  .sv-connection-percent {
    color: #ff2525;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .sv-connection-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #160000;
    border: 1px solid rgba(255,26,26,.25);
  }

  .sv-connection-bar i {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff1a1a, #ff4b4b, #7b0000);
    box-shadow: 0 0 18px rgba(255,0,0,.55);
    transition: width .55s ease;
  }

  .sv-connection-ready {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(0,210,106,.075);
    border: 2px solid rgba(0,210,106,.46);
    box-shadow:
      0 0 13px rgba(0,210,106,.32),
      0 0 30px rgba(0,210,106,.15),
      inset 0 0 14px rgba(0,210,106,.05);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .55s ease, transform .55s ease;
  }

  .sv-connection-ready.visible {
    opacity: 1;
    transform: translateY(0);
    animation: svLyaOnlinePulse 2.2s ease-in-out infinite;
  }

  .sv-connection-ready .sv-connection-lya-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    padding: 0;
    background: rgba(0,210,106,.12);
    border: 3px solid rgba(0,210,106,.92);
    box-shadow:
      0 0 10px rgba(0,210,106,.65),
      0 0 22px rgba(0,210,106,.26);
  }

  .sv-connection-agent-meta {
    min-width: 0;
    flex: 1;
  }

  .sv-connection-agent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .sv-connection-ready strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
  }

  .sv-connection-ready small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #cfd3d6;
    font-size: 11px;
  }

  .sv-connection-ready small i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 8px rgba(0,210,106,.85);
  }

  .sv-connection-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sv-connection-rating span,
  .sv-connection-rating b {
    color: #ffd44d;
    font-size: 11px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255,212,77,.25);
  }

  .sv-connection-social-proof,
  .sv-connection-benefits {
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .55s ease, transform .55s ease;
  }

  .sv-connection-social-proof.visible,
  .sv-connection-benefits.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sv-connection-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 9px;
  }

  .sv-connection-avatars img {
    width: 28px;
    height: 28px;
    margin-right: -8px;
    border-radius: 50%;
    border: 1px solid #ff1a1a;
    object-fit: cover;
    background: #111;
  }

  .sv-connection-social-proof p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .sv-connection-social-proof p strong {
    color: #ff2525;
    font-weight: 900;
  }

  .sv-connection-benefits {
    padding: 12px 10px;
    border: 1px solid rgba(255,26,26,.22);
    border-radius: 18px;
    background: rgba(8,8,8,.72);
    box-shadow:
      0 0 18px rgba(255,0,0,.12),
      inset 0 0 20px rgba(255,255,255,.025);
  }

  .sv-connection-benefits h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
  }

  .sv-connection-benefits h3 span,
  .sv-connection-benefit p span {
    color: #ff2525;
  }

  .sv-connection-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .sv-connection-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    text-align: left;
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.065);
  }

  .sv-connection-benefit img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex: 0 0 26px;
    filter: brightness(0) saturate(100%) invert(17%) sepia(95%) saturate(7420%) hue-rotate(356deg) brightness(104%) contrast(118%);
  }

  .sv-connection-benefit p {
    margin: 0;
    color: #fff;
    font-size: 10.3px;
    line-height: 1.18;
  }

  .sv-chat-app {
    display: none;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    background: #071014 url("/wp-content/uploads/fluxochat/assets/backgrounds/wppwallpaper.jpg") center center / cover no-repeat;
    color: #fff;
    opacity: 0;
    transition: opacity .75s ease;
    overflow: hidden;
    position: relative;
  }

  .sv-chat-widget.sv-chat-mode .sv-chat-app.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: svChatFadeIn .75s ease both;
  }

  .sv-chat-header {
    height: 79px;
    flex: 0 0 79px;
    padding: 15px 14px 12px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(5,12,18,.86);
    color: #fff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .sv-chat-lya-avatar,
  .sv-msg-avatar img,
  img.sv-msg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    clip-path: circle(50%) !important;
    border: 3px solid rgba(0,210,106,.96);
    box-shadow:
      0 0 9px rgba(0,210,106,.62),
      0 0 18px rgba(0,210,106,.26);
    background: #101820;
  }

  .sv-chat-agent-info {
    flex: 1;
    min-width: 0;
  }

  .sv-chat-agent-name {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .sv-chat-agent-name span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: #168bff;
    color: #fff;
    font-size: 10px;
    line-height: 1;
  }

  .sv-chat-agent-info small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b8c1c8;
    font-size: 11px;
  }

  .sv-chat-agent-info small i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 8px rgba(0,210,106,.85);
  }

  .sv-chat-menu {
    font-size: 24px;
    color: rgba(255,255,255,.88);
    line-height: 1;
  }

  .sv-chat-content {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px 82px;
    scroll-behavior: smooth;
    width: 100%;
  }

  .sv-security-note {
    margin: 0 auto 16px;
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: #e5e5e5;
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
  }

  .sv-messages {
    width: 100%;
  }

  .sv-message-row {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
    gap: 8px;
    align-items: flex-end;
    animation: svMessageSoftIn .34s ease both;
  }

  .sv-message-row.lya {
    justify-content: flex-start;
    padding-right: 0;
  }

  .sv-message-row.lead {
    justify-content: flex-end;
    align-items: flex-start;
  }

  .sv-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    clip-path: circle(50%);
    flex-shrink: 0;
    background: #101820;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sv-msg-avatar img {
    width: 34px !important;
    height: 34px !important;
    border-width: 2px !important;
  }

  .sv-message-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sv-message-row.lya .sv-message-wrap {
    max-width: calc(100% - 42px);
  }

  .sv-message-row.lead .sv-message-wrap {
    flex: 0 1 auto;
    max-width: 78%;
  }

  .sv-bubble {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.38;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
  }

  .sv-bubble.lya {
    width: 100%;
    background: rgba(31,37,43,.96);
    color: #fff;
    border-bottom-left-radius: 6px;
  }

  .sv-bubble.lead {
    background: linear-gradient(180deg, #0f6b35, #0b4b27);
    color: #fff;
    border-bottom-right-radius: 6px;
  }

  .sv-bubble-agent-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
  }

  .sv-bubble-agent-name {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .sv-bubble-agent-action {
    color: rgba(255,255,255,.56);
    font-size: 11.5px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
  }

  .sv-msg-text {
    display: block;
  }

  .sv-msg-time-outside {
    display: block;
    margin-top: 4px;
    padding-right: 2px;
    color: rgba(255,255,255,.52);
    font-size: 10px;
    text-align: right;
    line-height: 1;
  }

  .sv-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
  }

  .sv-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3aa;
    animation: svTypingWave 1s infinite ease-in-out;
  }

  .sv-typing span:nth-child(2) { animation-delay: .15s; }
  .sv-typing span:nth-child(3) { animation-delay: .30s; }

  .sv-audio-bubble {
    width: 100%;
    padding: 12px 14px 10px;
    border-radius: 18px;
    overflow: hidden;
  }

  .sv-recording-box,
  .sv-audio-player-box {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .sv-recording-mic,
  .sv-audio-play-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 0;
    background: #00c66b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0,198,107,.18);
    position: relative;
  }

  .sv-recording-mic img,
  .sv-audio-play-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .sv-recording-mic {
    animation: svMicPulse 1.15s infinite ease-in-out;
  }

  .sv-audio-wave {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .sv-audio-wave i {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
  }

  .sv-audio-wave.is-recording i {
    background: rgba(0,210,106,.62);
    animation: svWaveRecording 1.05s infinite ease-in-out;
  }

  .sv-audio-wave.is-playing i {
    background: rgba(255,255,255,.9);
    animation: svWavePlaying .75s infinite ease-in-out;
  }

  .sv-audio-wave i:nth-child(2n) { animation-delay: .08s; }
  .sv-audio-wave i:nth-child(3n) { animation-delay: .16s; }
  .sv-audio-wave i:nth-child(4n) { animation-delay: .24s; }

  .sv-audio-duration {
    display: block;
    margin-top: 4px;
    padding-right: 2px;
    color: rgba(255,255,255,.68);
    font-size: 10.5px;
    text-align: right;
    line-height: 1;
  }

  .sv-chat-input-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(5,12,18,.86);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.06);
    z-index: 50;
  }

  .sv-input-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd0d4;
    flex-shrink: 0;
  }

  .sv-input-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sv-chat-input-area input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 16px;
    height: 44px;
    transition: box-shadow .35s ease, background .35s ease;
  }

  .sv-chat-input-area input::placeholder {
    color: rgba(255,255,255,.62);
  }

  .sv-chat-input-area input:disabled {
    opacity: .74;
    cursor: not-allowed;
  }

  .sv-chat-input-area.is-name-required input {
    background: rgba(255,255,255,.16);
    box-shadow:
      0 0 0 1px rgba(0,210,106,.62),
      0 0 18px rgba(0,210,106,.30);
    animation: svInputGreenPulse 1.7s ease-in-out infinite;
  }

  .sv-chat-input-area button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 0;
    border-radius: 50%;
    background: #00c66b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,198,107,.18);
  }

  .sv-chat-input-area button span {
    display: block;
    transform: translateX(1px);
    font-size: 20px;
    line-height: 1;
  }

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

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

  @keyframes svTypingWave {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-5px); opacity: 1; }
  }

  @keyframes svMicPulse {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 12px rgba(0,198,107,.22);
    }
    50% {
      transform: scale(1.08);
      box-shadow: 0 0 22px rgba(0,198,107,.48);
    }
  }

  @keyframes svWaveRecording {
    0%, 100% { transform: scaleY(.65); opacity: .38; }
    50% { transform: scaleY(1.15); opacity: 1; }
  }

  @keyframes svWavePlaying {
    0%, 100% { transform: scaleY(.8); opacity: .55; }
    50% { transform: scaleY(1.25); opacity: 1; }
  }

  @keyframes svInputGreenPulse {
    0%, 100% {
      box-shadow:
        0 0 0 1px rgba(0,210,106,.52),
        0 0 14px rgba(0,210,106,.24);
    }
    50% {
      box-shadow:
        0 0 0 1px rgba(0,210,106,.9),
        0 0 26px rgba(0,210,106,.46);
    }
  }

  @keyframes svLyaOnlinePulse {
    0%, 100% {
      box-shadow:
        0 0 12px rgba(0,210,106,.30),
        0 0 28px rgba(0,210,106,.13),
        inset 0 0 14px rgba(0,210,106,.05);
    }
    50% {
      box-shadow:
        0 0 20px rgba(0,210,106,.68),
        0 0 44px rgba(0,210,106,.28),
        inset 0 0 18px rgba(0,210,106,.08);
    }
  }

  @keyframes svConnectionGlow {
    0%, 100% {
      box-shadow:
        0 0 18px rgba(255,26,26,.16),
        0 0 50px rgba(255,26,26,.08),
        inset 0 0 24px rgba(255,255,255,.03);
    }
    50% {
      box-shadow:
        0 0 28px rgba(255,26,26,.28),
        0 0 78px rgba(255,26,26,.13),
        inset 0 0 28px rgba(255,255,255,.045);
    }
  }
