#dbx-conversation-assistant {
  --dbxc-red: #ef2b32;
  --dbxc-red-dark: #b80f1b;
  --dbxc-red-glow: rgba(239, 43, 50, .48);
  --dbxc-black: #07080a;
  --dbxc-panel: #0d0f12;
  --dbxc-card: #15181d;
  --dbxc-line: rgba(255, 255, 255, .1);
  --dbxc-muted: #aeb3bc;
  --dbxc-safe-bottom: 22px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--dbxc-safe-bottom) + env(safe-area-inset-bottom));
  z-index: 999999;
  font-family: Poppins, Arial, sans-serif;
  color: #fff;
  text-rendering: optimizeLegibility;
}

.dbxc-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 112.8px;
  height: 112.8px;
  min-width: 0;
  min-height: 0;
  padding: 7.2px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #23272d 0 42%, #090a0c 72%),
    #090a0c;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 0 2px rgba(239, 43, 50, .72),
    0 0 26px var(--dbxc-red-glow),
    0 18px 42px rgba(0, 0, 0, .56),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}

.dbxc-launcher::before {
  content: "AI PORADCA";
  position: absolute;
  right: calc(100% + 13px);
  top: 50%;
  transform: translate(8px, -50%);
  width: max-content;
  padding: 9px 12px;
  border: 1px solid rgba(239, 43, 50, .46);
  border-radius: 10px;
  background: rgba(8, 9, 11, .94);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.dbxc-launcher:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow:
    0 0 0 2px var(--dbxc-red),
    0 0 38px rgba(239, 43, 50, .67),
    0 22px 48px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.dbxc-launcher:hover::before { opacity: 1; transform: translate(0, -50%); }
.dbxc-launcher[hidden] { display: none; }

.dbxc-launcher-avatar {
  display: grid;
  place-items: center;
  width: 93.6px;
  height: 93.6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #252a30 0 34%, #0a0b0d 74%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .74);
}

.dbxc-launcher-avatar .dbxc-robot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.48) translateY(8%);
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .42));
}

.dbxc-launcher-copy { display: none; }

.dbxc-ai-badge {
  position: absolute;
  right: -5px;
  bottom: 1px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 23px;
  padding: 0 7px;
  border: 2px solid #0b0c0e;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3a40, #c60f1c);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .7px;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .52), 0 0 13px rgba(239, 43, 50, .6);
}

.dbxc-launcher-pulse {
  position: absolute;
  right: 3px;
  top: 3px;
  z-index: 3;
  width: 13px;
  height: 13px;
  border: 3px solid #121417;
  border-radius: 50%;
  background: var(--dbxc-red);
  box-shadow: 0 0 0 0 rgba(239, 43, 50, .7);
  animation: dbxc-pulse 2.2s infinite;
}

@keyframes dbxc-pulse {
  0%, 45% { box-shadow: 0 0 0 0 rgba(239, 43, 50, .62); }
  75%, 100% { box-shadow: 0 0 0 10px rgba(239, 43, 50, 0); }
}

.dbxc-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 410px;
  max-width: calc(100vw - 28px);
  height: 690px;
  max-height: calc(100vh - var(--dbxc-safe-bottom) - 20px);
  overflow: hidden;
  border: 1px solid rgba(239, 43, 50, .72);
  border-radius: 25px;
  background: var(--dbxc-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 34px rgba(239, 43, 50, .27),
    0 28px 72px rgba(0, 0, 0, .7);
  isolation: isolate;
}

.dbxc-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff3c42 20%, #ff3c42 80%, transparent);
  box-shadow: 0 0 20px rgba(239, 43, 50, .8);
  pointer-events: none;
}

.dbxc-panel.open {
  display: flex;
  flex-direction: column;
  animation: dbxc-panel-in .22s ease-out both;
}

@keyframes dbxc-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dbxc-header {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 126px;
  padding: 13px 14px 12px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 38%, rgba(239, 43, 50, .2), transparent 34%),
    linear-gradient(135deg, #171a1f 0%, #090a0c 68%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dbxc-header::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -88px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(239, 43, 50, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(239, 43, 50, .025), 0 0 0 48px rgba(239, 43, 50, .018);
  pointer-events: none;
}

.dbxc-header-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 106px;
  overflow: hidden;
}

.dbxc-header-avatar .dbxc-robot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.31) translateY(9%);
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, .55));
}

.dbxc-header-copy { position: relative; z-index: 1; min-width: 0; }
.dbxc-header-title { display: block; line-height: .92; }
.dbxc-header-title strong {
  display: block;
  color: var(--dbxc-red);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.7px;
  text-shadow: 0 0 19px rgba(239, 43, 50, .27);
}
.dbxc-header-title span {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 1.1px;
}
.dbxc-header-copy small {
  display: block;
  margin-top: 10px;
  color: #c7cad0;
  font-size: 10px;
  line-height: 1.35;
}
.dbxc-catalog-status {
  margin-top: 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
  opacity: .68;
}
.dbxc-close {
  position: relative;
  z-index: 2;
  align-self: start;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.dbxc-close:hover { background: var(--dbxc-red); transform: rotate(4deg); }

.dbxc-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 4%, rgba(239, 43, 50, .07), transparent 29%),
    linear-gradient(180deg, #101216 0%, #0b0d10 100%);
  scrollbar-width: thin;
  scrollbar-color: #3c4149 transparent;
}
.dbxc-messages::-webkit-scrollbar { width: 6px; }
.dbxc-messages::-webkit-scrollbar-thumb { border-radius: 9px; background: #3c4149; }

.dbxc-welcome {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 17px 17px;
  overflow: hidden;
  border: 1px solid rgba(239, 43, 50, .35);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(239, 43, 50, .11), transparent 48%),
    #14171b;
  box-shadow: inset 3px 0 0 var(--dbxc-red), 0 10px 26px rgba(0, 0, 0, .22);
}
.dbxc-welcome::after {
  content: "AI";
  position: absolute;
  right: -5px;
  bottom: -23px;
  color: rgba(255, 255, 255, .025);
  font-size: 84px;
  font-weight: 950;
  pointer-events: none;
}
.dbxc-welcome-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--dbxc-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.dbxc-welcome h2 { margin: 0; color: #fff; font-size: 21px; line-height: 1.18; letter-spacing: -.25px; }
.dbxc-welcome p { max-width: 310px; margin: 9px 0 0; color: #bfc3cb; font-size: 12px; line-height: 1.5; }

.dbxc-msg {
  max-width: 88%;
  margin: 0 0 11px;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.45;
}
.dbxc-bot {
  background: #181b20;
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom-left-radius: 5px;
  color: #f3f4f6;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .2);
}
.dbxc-user {
  margin-left: auto;
  background: linear-gradient(135deg, #f2383e, #c81420);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 7px 18px rgba(200, 20, 32, .23);
}

.dbxc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 14px; }
.dbxc-chip {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: #181b20;
  color: #f1f2f4;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .17s ease, background .17s ease, color .17s ease, transform .17s ease;
}
.dbxc-chip:hover, .dbxc-chip-active {
  border-color: var(--dbxc-red);
  background: rgba(239, 43, 50, .12);
  color: #fff;
  transform: translateY(-1px);
}

.dbxc-chips-primary { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dbxc-chips-primary .dbxc-chip {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 7px 40px 7px 58px;
  border-radius: 13px;
  background: linear-gradient(110deg, #181b20, #131519);
  text-align: left;
}
.dbxc-chips-primary .dbxc-chip::before {
  content: "›";
  position: absolute;
  left: 10px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(239, 43, 50, .62);
  border-radius: 10px;
  background: rgba(239, 43, 50, .08);
  color: var(--dbxc-red);
  font-size: 17px;
  font-weight: 950;
}
.dbxc-chips-primary .dbxc-chip::after {
  content: "›";
  position: absolute;
  right: 16px;
  color: #7e838c;
  font-size: 20px;
}
.dbxc-chips-primary .dbxc-chip[data-dbx-action="start_selection"]::before { content: "RC"; font-size: 10px; letter-spacing: .4px; }
.dbxc-chips-primary .dbxc-chip[data-dbx-action="start_service"]::before { content: "D"; font-size: 13px; }
.dbxc-chips-primary .dbxc-chip[data-dbx-action="start_accessory"]::before { content: "⚡"; font-size: 14px; }
.dbxc-chips-primary .dbxc-chip[data-dbx-action="focus_input"]::before { content: "✎"; font-size: 14px; }

.dbxc-products { display: grid; gap: 11px; margin: 8px 0 14px; }
.dbxc-product {
  display: flex;
  gap: 11px;
  padding: 11px;
  background: linear-gradient(145deg, #181b20, #121419);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .24);
}
.dbxc-product img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  flex: 0 0 auto;
}
.dbxc-content { min-width: 0; flex: 1; }
.dbxc-product h3 { margin: 0 0 6px; color: #fff; font-size: 13px; line-height: 1.3; }
.dbxc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: #abb0b8; font-size: 11px; }
.dbxc-meta strong { color: #ff4147; font-size: 15px; }
.dbxc-product p { margin: 8px 0; color: #b8bdc5; font-size: 11px; line-height: 1.4; }
.dbxc-bucket { display: block; margin-bottom: 4px; color: #ff4a50; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dbxc-verified { color: #62d986 !important; font-weight: 800; }
.dbxc-warning { padding: 7px 8px; border-radius: 8px; background: rgba(255, 169, 40, .1); color: #ffc568 !important; }
.dbxc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dbxc-actions button, .dbxc-actions a {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.dbxc-cart { background: linear-gradient(135deg, #fa3b41, #c7101c); color: #fff; box-shadow: 0 5px 13px rgba(200, 16, 28, .22); }
.dbxc-detail { background: #292d34; color: #fff; }
.dbxc-bundle { background: transparent; color: #ff4a50; box-shadow: inset 0 0 0 1px rgba(239, 43, 50, .72); }
.dbxc-link { background: #e9eaec; color: #14161a; }
.dbxc-actions button:disabled { opacity: .65; cursor: default; }

.dbxc-nav {
  display: flex;
  justify-content: flex-end;
  padding: 6px 13px 0;
  background: #0b0d10;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.dbxc-restart {
  border: 0;
  background: none;
  color: #ff4a50;
  padding: 6px 2px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.dbxc-form { display: flex; gap: 8px; padding: 7px 12px 12px; background: #0b0d10; }
.dbxc-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  outline: 0;
  background: #171a1f;
  color: #fff;
  padding: 11px 13px;
  font: inherit;
  font-size: 12px;
}
.dbxc-form input::placeholder { color: #858b94; }
.dbxc-form input:focus { border-color: var(--dbxc-red); box-shadow: 0 0 0 3px rgba(239, 43, 50, .12); }
.dbxc-form button {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #fa3b41, #c7101c);
  color: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 16, 28, .25);
}

.dbxc-chip:focus-visible,
.dbxc-launcher:focus-visible,
.dbxc-form button:focus-visible,
.dbxc-close:focus-visible,
.dbxc-actions button:focus-visible,
.dbxc-actions a:focus-visible {
  outline: 3px solid #ff8c90;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  #dbx-conversation-assistant {
    --dbxc-safe-bottom: 76px;
    left: auto;
    right: max(10px, env(safe-area-inset-right));
  }
  .dbxc-launcher { width: 72px; height: 72px; padding: 5px; }
  .dbxc-launcher::before { display: none; }
  .dbxc-launcher-avatar { width: 60px; height: 60px; }
  .dbxc-ai-badge { right: -4px; bottom: -2px; min-width: 27px; height: 21px; font-size: 9px; }
  .dbxc-launcher-pulse { right: 0; top: 0; width: 11px; height: 11px; }
  .dbxc-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(var(--dbxc-safe-bottom) + env(safe-area-inset-bottom));
    width: auto;
    height: min(78vh, 690px);
    height: min(78dvh, 690px);
    max-height: calc(100vh - var(--dbxc-safe-bottom) - env(safe-area-inset-bottom) - 12px);
    border-radius: 21px;
  }
  .dbxc-header { grid-template-columns: 74px minmax(0, 1fr) 31px; min-height: 102px; gap: 7px; padding: 9px 11px 8px 7px; }
  .dbxc-header-avatar { width: 72px; height: 88px; }
  .dbxc-header-title strong { font-size: 22px; }
  .dbxc-header-title span { margin-top: 5px; font-size: 17px; }
  .dbxc-header-copy small { margin-top: 7px; font-size: 8px; }
  .dbxc-catalog-status { margin-top: 5px; font-size: 7px; }
  .dbxc-close { width: 31px; height: 31px; font-size: 24px; }
  .dbxc-messages { padding: 12px; }
  .dbxc-welcome { padding: 15px 14px; }
  .dbxc-welcome h2 { font-size: 19px; }
  .dbxc-product img { width: 68px; height: 68px; }
  .dbxc-form { padding: 7px 9px 9px; }
}

@media (max-width: 360px) {
  .dbxc-panel { left: 4px; right: 4px; border-radius: 18px; }
  .dbxc-header-copy small, .dbxc-catalog-status { display: none; }
  .dbxc-header { grid-template-columns: 68px minmax(0, 1fr) 30px; min-height: 88px; }
  .dbxc-header-avatar { width: 66px; height: 76px; }
  .dbxc-header-title strong { font-size: 20px; }
  .dbxc-header-title span { font-size: 16px; }
  .dbxc-actions button, .dbxc-actions a { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .dbxc-launcher-pulse, .dbxc-panel.open { animation: none; }
  .dbxc-launcher, .dbxc-chip, .dbxc-close { transition: none; }
}
