.ask-opti-fab {
  position: fixed;
  z-index: 1320;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(141, 255, 103, 0.3);
  border-radius: 50%;
  color: #eaffe4;
  background:
    linear-gradient(180deg, rgba(141, 255, 103, 0.15), rgba(141, 255, 103, 0.055)),
    rgba(7, 10, 7, 0.94);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(82, 255, 47, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  font: 800 1.15rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.ask-opti-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 255, 103, 0.48);
  background:
    linear-gradient(180deg, rgba(141, 255, 103, 0.21), rgba(141, 255, 103, 0.075)),
    rgba(7, 10, 7, 0.96);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.44),
    0 0 36px rgba(82, 255, 47, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.ask-opti-fab:active {
  transform: scale(0.97);
}

.ask-opti-panel {
  position: fixed;
  z-index: 1310;
  right: 22px;
  bottom: 88px;
  width: min(410px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - 116px));
  overflow: hidden;
  border: 1px solid rgba(141, 255, 103, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(6, 9, 6, 0.97);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  transform-origin: bottom right;
  transition:
    width 190ms ease,
    max-height 190ms ease,
    border-radius 190ms ease;
}

.ask-opti-panel[hidden] {
  display: none !important;
}

.ask-opti-panel.expanded {
  width: min(760px, calc(100vw - 44px));
  max-height: calc(100dvh - 110px);
  border-radius: 24px;
}

.ask-opti-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ask-opti-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ask-opti-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(141, 255, 103, 0.13);
  border-radius: 11px;
  background: rgba(141, 255, 103, 0.035);
}

.ask-opti-mark img {
  width: 140%;
  height: auto;
  max-width: none;
  transform: translateY(-6px);
  mix-blend-mode: screen;
}

.ask-opti-brand-copy {
  display: grid;
  line-height: 1.15;
}

.ask-opti-brand-copy strong {
  color: #edf5eb;
  font-size: 0.84rem;
}

.ask-opti-brand-copy span {
  margin-top: 3px;
  color: #798477;
  font-size: 0.64rem;
  font-weight: 650;
}

.ask-opti-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-opti-close,
.ask-opti-expand {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #99a497;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.ask-opti-close {
  font-size: 1.1rem;
}

.ask-opti-expand svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ask-opti-close:hover,
.ask-opti-expand:hover,
.ask-opti-expand.active {
  border-color: rgba(141, 255, 103, 0.16);
  color: #eff5ed;
  background: rgba(141, 255, 103, 0.055);
}

.ask-opti-expand:active,
.ask-opti-close:active {
  transform: scale(0.95);
}

.ask-opti-panel.expanded .ask-opti-expand svg {
  transform: rotate(180deg);
}

.ask-opti-body {
  max-height: calc(min(650px, 100dvh - 116px) - 66px);
  overflow-y: auto;
  padding: 17px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 255, 103, 0.16) transparent;
}

.ask-opti-panel.expanded .ask-opti-body {
  max-height: calc(100dvh - 176px);
  padding: 22px;
}

.ask-opti-intro {
  margin-bottom: 15px;
}

.ask-opti-intro strong {
  display: block;
  color: #e6ede4;
  font-size: 0.9rem;
}

.ask-opti-intro p {
  margin: 6px 0 0;
  color: #879184;
  font-size: 0.74rem;
  line-height: 1.6;
}

.ask-opti-panel.expanded .ask-opti-intro strong {
  font-size: 1rem;
}

.ask-opti-panel.expanded .ask-opti-intro p {
  max-width: 580px;
  font-size: 0.78rem;
}

.ask-opti-field-label {
  display: block;
  margin-bottom: 7px;
  color: #9eaa9b;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ask-opti-category-picker {
  position: relative;
}

.ask-opti-category-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 13px;
  border: 1px solid rgba(141, 255, 103, 0.25);
  border-radius: 12px;
  color: #e5ece3;
  background: #0b100b;
  outline: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
  text-align: left;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.ask-opti-category-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9cff79;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}

.ask-opti-category-trigger[aria-expanded="true"] {
  border-color: rgba(141, 255, 103, 0.42);
  background: rgba(13, 22, 12, 0.98);
  box-shadow: 0 0 0 3px rgba(141, 255, 103, 0.045);
}

.ask-opti-category-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ask-opti-category-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(141, 255, 103, 0.2);
  border-radius: 12px;
  background: rgba(6, 10, 6, 0.995);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.ask-opti-category-menu[hidden] {
  display: none !important;
}

.ask-opti-category-option {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cfd8cc;
  background: transparent;
  outline: none;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 680;
  text-align: left;
}

.ask-opti-category-option:hover,
.ask-opti-category-option:focus-visible,
.ask-opti-category-option.selected {
  border-color: rgba(141, 255, 103, 0.2);
  color: #ecffe7;
  background: linear-gradient(180deg, rgba(141, 255, 103, 0.16), rgba(141, 255, 103, 0.07));
}

.ask-opti-category-option.selected::after {
  float: right;
  content: '✓';
  color: #9cff79;
}

.ask-opti-options {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.ask-opti-panel.expanded .ask-opti-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ask-opti-option {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  color: #dbe3d9;
  background: rgba(255, 255, 255, 0.028);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 680;
  line-height: 1.4;
  text-align: left;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.ask-opti-option:hover,
.ask-opti-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(141, 255, 103, 0.22);
  background: rgba(141, 255, 103, 0.055);
  outline: none;
}

.ask-opti-not-listed {
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #717b6f;
  font-size: 0.67rem;
  line-height: 1.55;
}

.ask-opti-not-listed a {
  color: #b8ff9f;
  font-weight: 700;
}

.ask-opti-flow {
  display: grid;
  gap: 10px;
}

.ask-opti-message {
  display: flex;
}

.ask-opti-message.user {
  justify-content: flex-end;
}

.ask-opti-bubble {
  max-width: 92%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px 14px 14px 5px;
  color: #cfd8cc;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.73rem;
  line-height: 1.62;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ask-opti-panel.expanded .ask-opti-bubble {
  max-width: min(84%, 600px);
  padding: 13px 15px;
  font-size: 0.79rem;
  line-height: 1.66;
}

.ask-opti-message.user .ask-opti-bubble {
  border-color: rgba(141, 255, 103, 0.16);
  border-radius: 14px 14px 5px 14px;
  color: #e5ffdd;
  background: rgba(141, 255, 103, 0.075);
}

.ask-opti-bubble strong {
  color: #eef5ec;
}

.ask-opti-code {
  display: block;
  margin: 9px 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: #c9ffb7;
  background: #050805;
  font: 650 0.7rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: all;
}

.ask-opti-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 2px;
}

.ask-opti-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: #d5ddd2;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 750;
  text-align: center;
}

.ask-opti-action.primary {
  border-color: rgba(141, 255, 103, 0.22);
  color: #e6ffde;
  background: rgba(141, 255, 103, 0.075);
}

.ask-opti-action:hover,
.ask-opti-action:focus-visible {
  border-color: rgba(141, 255, 103, 0.24);
  background: rgba(141, 255, 103, 0.06);
  outline: none;
}

.ask-opti-actions.stacked {
  grid-template-columns: 1fr;
}

.ask-opti-panel.expanded .ask-opti-actions.stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ask-opti-back {
  margin-bottom: 11px;
  padding: 0;
  border: 0;
  color: #91a08e;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}

.ask-opti-back:hover {
  color: #c9ffc0;
}

.ask-opti-rating {
  margin-top: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.ask-opti-rating strong {
  display: block;
  color: #e3eae1;
  font-size: 0.76rem;
}

.ask-opti-stars {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.ask-opti-star {
  padding: 0;
  border: 0;
  color: #566052;
  background: none;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.ask-opti-star.active,
.ask-opti-star:hover {
  color: #9cff79;
}

.ask-opti-comment {
  width: 100%;
  min-height: 72px;
  margin-top: 11px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  color: #e0e7de;
  background: #080c08;
  outline: none;
  font-size: 0.71rem;
  line-height: 1.5;
}

.ask-opti-comment:focus {
  border-color: rgba(141, 255, 103, 0.22);
}

.ask-opti-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
}

.ask-opti-thanks {
  color: #b7ff9e;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 620px) {
  .ask-opti-fab {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .ask-opti-panel,
  .ask-opti-panel.expanded {
    right: 10px;
    bottom: 74px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 92px);
    border-radius: 18px;
  }

  .ask-opti-body,
  .ask-opti-panel.expanded .ask-opti-body {
    max-height: calc(100dvh - 158px);
    padding: 14px;
  }

  .ask-opti-actions,
  .ask-opti-panel.expanded .ask-opti-actions.stacked {
    grid-template-columns: 1fr;
  }

  .ask-opti-panel.expanded .ask-opti-options {
    grid-template-columns: 1fr;
  }

  .ask-opti-panel.expanded .ask-opti-bubble {
    max-width: 92%;
    padding: 11px 13px;
    font-size: 0.74rem;
  }
}
