:root {
  --colors-scale1: #161616;
  --colors-scale2: #1c1c1c;
  --colors-scale3: #232323;
  --colors-scale4: #282828;
  --colors-scale5: #2e2e2e;
  --colors-scale6: #343434;
  --colors-scale7: #3e3e3e;
  --colors-scale8: #505050;
  --colors-scale9: #707070;
  --colors-scale10: #878787;
  --colors-scale11: #a0a0a0;
  --colors-scale12: #ededed;

  --colors-brand: #3ecf8e;
  --colors-brand-hover: #34b27b;
  --danger: #ef4444;
  --good: #22c55e;

  --sidebar-width: 260px;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--colors-scale2);
  color: var(--colors-scale12);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Loader */
.page-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(22, 22, 22, 0.7);
  color: #3ecf8e;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-loader.visible {
  display: grid;
  opacity: 1;
}

.page-loader.hidden {
  opacity: 0;
}

.loader {
  width: 64px;
  height: 64px;
}

.loader-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loader-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-miterlimit: 10;
  stroke-dasharray: 230;
  stroke-dashoffset: 0;
  animation: w-elastic 2s ease-in-out infinite;
}

@keyframes w-elastic {
  0% {
    stroke-dasharray: 0, 230;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 230, 230;
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dasharray: 0, 230;
    stroke-dashoffset: -230;
  }
}

































.user-role {
  color: var(--colors-scale9);
}









.pro-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.pro-locked-container.pro-locked {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.5);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Main */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--colors-scale2);
  position: relative;
}

.top-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--colors-scale4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background-color: var(--colors-scale2);
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--colors-scale12);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tenant-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--colors-scale6);
  color: var(--colors-scale10);
  font-size: 11px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
}

.content-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--colors-scale6) transparent;
}

.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.content-scroll::-webkit-scrollbar-thumb {
  background-color: var(--colors-scale6);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.content-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 24px;
  align-items: start;
}

.settings-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background-color: var(--colors-scale3);
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  overflow: hidden;
}

.panel-install {
  border-color: rgba(62, 207, 142, 0.25);
}

.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--colors-scale5);
  background: var(--colors-scale3);
}

.panel-title {
  font-weight: 600;
  color: var(--colors-scale12);
  font-size: 14px;
}

.panel-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colors-scale10);
  margin-bottom: 4px;
}

.panel-body {
  padding: 18px 20px 20px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--colors-scale10);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.help-text {
  color: var(--colors-scale10);
  font-size: 12px;
  margin: 0 0 10px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-grow {
  flex: 1;
  min-width: 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--colors-scale5);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--colors-scale6);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
  background-color: rgba(62, 207, 142, 0.28);
  border-color: rgba(62, 207, 142, 0.5);
}

input:focus-visible+.slider {
  box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.35);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Zebra List */
.zebra-list {
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  overflow: hidden;
}

.zebra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--colors-scale2);
  border-bottom: 1px solid var(--colors-scale5);
}

.zebra-row:nth-child(even) {
  background: var(--colors-scale1);
}

.zebra-row:last-child {
  border-bottom: none;
}

.toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--colors-scale12);
}

.toggle-help {
  font-size: 11px;
  color: var(--colors-scale10);
  margin-top: 4px;
}

.input-text {
  width: 100%;
  background: var(--colors-scale1);
  border: 1px solid var(--colors-scale5);
  color: var(--colors-scale12);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}

.input-text:focus {
  outline: none;
  border-color: var(--colors-scale7);
}

.input-text[type="color"] {
  padding: 0;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delay-input {
  max-width: 100px;
}

.swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--colors-scale1);
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--colors-scale6);
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--colors-scale1), 0 0 0 4px var(--colors-brand);
}

.custom-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--colors-scale10);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  background: var(--colors-scale1);
}

.color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  min-width: 42px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--colors-scale6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.color-input:hover {
  border-color: var(--colors-scale8);
}

.color-input:focus-visible {
  outline: 2px solid rgba(62, 207, 142, 0.5);
  outline-offset: 2px;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.color-input::-moz-color-swatch {
  border: none;
  border-radius: 5px;
}

.advanced-appearance-block {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.advanced-appearance-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.appearance-group {
  border: 1px solid var(--colors-scale5);
  border-radius: 10px;
  background: var(--colors-scale1);
  padding: 12px;
}

.appearance-group--full {
  grid-column: 1 / -1;
}

.appearance-group-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--colors-scale12);
}

.appearance-group-subtitle {
  margin: 4px 0 12px;
  color: var(--colors-scale10);
  font-size: 12px;
}

.appearance-group .form-group:last-child {
  margin-bottom: 0;
}

.switch-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--colors-scale5);
  border-radius: 10px;
  background: var(--colors-scale1);
  color: var(--colors-scale11);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding-left: 54px;
}

.switch-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  transform: translateY(-50%);
  border: 1px solid var(--colors-scale6);
  background: var(--colors-scale4);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.switch-row span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.switch-row:hover {
  border-color: var(--colors-scale6);
}

.switch-row input:checked+span::before {
  background: rgba(62, 207, 142, 0.28);
  border-color: rgba(62, 207, 142, 0.5);
}

.switch-row input:checked+span::after {
  transform: translate(18px, -50%);
}

.switch-row input:checked+span {
  color: var(--colors-scale12);
}

.switch-row input:focus-visible+span::before {
  box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.35);
}

.radius-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--colors-scale5);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.radius-slider {
  --slider-progress: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg,
      var(--colors-brand) 0%,
      var(--colors-brand) var(--slider-progress),
      var(--colors-scale6) var(--slider-progress),
      var(--colors-scale6) 100%);
}

.radius-slider::-webkit-slider-runnable-track {
  height: 7px;
  background: transparent;
  border-radius: 999px;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #0f1115;
  background: #eafff4;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.35);
  cursor: pointer;
}

.radius-slider::-moz-range-track {
  height: 7px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.radius-slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #0f1115;
  background: #eafff4;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.35);
  cursor: pointer;
}

#fabRadiusValue,
#panelRadiusValue,
#chatButtonRadiusValue,
#selectionCardRadiusValue,
#questionBubbleRadiusValue {
  min-width: 40px;
  text-align: right;
  font-size: 13px;
  color: var(--colors-scale12);
  font-weight: 500;
  font-family: inherit;
}

@media (max-width: 980px) {
  .advanced-appearance-layout {
    grid-template-columns: 1fr;
  }

  .appearance-group--full {
    grid-column: auto;
  }
}

.install-code {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--colors-scale6);
  background: rgb(22, 22, 22);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--colors-scale5);
  background: var(--colors-scale4);
  color: var(--colors-scale11);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  background: var(--colors-scale5);
  color: var(--colors-scale12);
}

.btn.primary {
  background: var(--colors-brand);
  border-color: var(--colors-brand);
  color: var(--colors-scale1);
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--colors-brand-hover);
  border-color: var(--colors-brand-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.success {
  background: var(--good);
  border-color: var(--good);
  color: #0e2017;
}

.btn-light {
  width: 100%;
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f172a;
}

.btn-light:hover {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-add {
  width: 100%;
  border-style: dashed;
}

.panel-billing {
  border-color: rgba(62, 207, 142, 0.25);
}

.billing-status-list {
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--colors-scale2);
  border-bottom: 1px solid var(--colors-scale5);
}

.billing-row:nth-child(even) {
  background: var(--colors-scale1);
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-label {
  font-size: 12px;
  color: var(--colors-scale10);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--colors-scale12);
  text-transform: capitalize;
}

.billing-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #facc15;
}

.billing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.btn-danger {
  background: var(--colors-scale4);
  border-color: var(--colors-scale6);
  color: var(--colors-scale11);
}

.btn.btn-danger:hover {
  background: var(--colors-scale5);
  border-color: var(--colors-scale7);
  color: var(--colors-scale12);
}

.billing-feedback {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--colors-scale10);
}

.billing-feedback.success {
  color: var(--good);
}

.billing-feedback.error {
  color: #fca5a5;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: min(460px, 100%);
  background: var(--colors-scale3);
  border: 1px solid var(--colors-scale6);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.appearance-modal {
  width: min(520px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
}

.modal-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--colors-scale12);
}

.modal-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--colors-scale10);
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  min-width: 120px;
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.q-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-item .q-val {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.btn-del {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--colors-scale5);
  background: var(--colors-scale4);
  color: var(--danger);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.btn-del:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.zebra-list {
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  overflow: hidden;
}

.zebra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--colors-scale2);
  border-bottom: 1px solid var(--colors-scale5);
}

.zebra-row:nth-child(even) {
  background: var(--colors-scale1);
}

.zebra-row:last-child {
  border-bottom: none;
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colors-scale12);
}

.toggle-help {
  margin-top: 2px;
  font-size: 11px;
  color: var(--colors-scale10);
  letter-spacing: 0;
  text-transform: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--colors-scale8);
  border-radius: 99px;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  background-color: var(--colors-scale12);
  transition: 0.2s;
}

input:checked+.slider {
  background-color: var(--colors-brand);
}

input:checked+.slider:before {
  transform: translateX(18px);
}

.preview-column {
  position: sticky;
  top: 0;
  align-self: start;
}

.preview-panel {
  position: static;
}

.preview-body {
  padding: 10px;
  background: var(--colors-scale1);
}

.widget-preview-mount {
  position: relative;
  height: clamp(620px, calc(100vh - 170px), 760px);
  min-height: 620px;
  border: 1px solid var(--colors-scale4);
  border-radius: 12px;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 35%), var(--colors-scale2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-shell {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px;
}

.widget-preview {
  width: min(360px, 100%);
  height: 560px;
  background: #242424;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.widget-preview.is-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
}

.widget-fab {
  position: absolute;
  right: 16px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: var(--colors-brand);
  color: #0f172a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.w-header {
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), #242424;
  color: var(--colors-scale12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.w-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.w-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.w-logo {
  width: 32px;
  height: 32px;
  background: var(--colors-brand);
  color: #0f172a;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.w-hgroup {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.w-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-sub {
  font-size: 11px;
  color: var(--colors-scale10);
}

.w-tools {
  display: flex;
  gap: 6px;
}

.w-tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--colors-scale12);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

#pBtnBack {
  display: none;
}

#pBtnBack.visible {
  display: inline-flex;
}

.w-body {
  flex: 1;
  padding: 14px;
  background: #242424;
  overflow-y: auto;
}

.w-screen.hidden {
  display: none !important;
}

.w-hero {
  text-align: center;
  margin: 4px 0 12px;
}

.w-hero h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.w-hero p {
  margin: 0;
  font-size: 14px;
  color: var(--colors-scale10);
}

.w-mode-grid {
  display: grid;
  gap: 10px;
}

.w-mode-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.w-mode-card.support {
  border-color: rgba(62, 207, 142, 0.34);
  background: rgba(62, 207, 142, 0.08);
}

.w-mode-title {
  font-size: 13px;
  font-weight: 700;
}

.w-mode-desc {
  font-size: 12px;
  color: var(--colors-scale10);
}

.w-lead-intro h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.w-lead-intro p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--colors-scale10);
}

.w-lead-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.w-lead-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--colors-scale10);
  text-transform: uppercase;
}

.w-lead-field label.required::after {
  content: " *";
  color: #ef4444;
}

.w-lead-field input {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--colors-scale10);
  padding: 0 10px;
  font-size: 12px;
}

.w-lead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.w-primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--colors-brand);
  color: #0f172a;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.w-link-btn {
  border: 0;
  background: transparent;
  color: var(--colors-scale10);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.w-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.w-msg.bot {
  background: #2e2e2e;
  color: #e3e3e3;
  border-bottom-left-radius: 2px;
}

.w-msg.user {
  margin-left: auto;
  background: #1f3529;
  color: #f8fafc;
  border-bottom-right-radius: 2px;
}

.w-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.w-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #303030;
  color: var(--colors-scale12);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.w-input-area {
  padding: 10px 12px;
  background: #242424;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 8px;
  align-items: center;
}

.w-fake-input {
  flex: 1;
  height: 42px;
  background: #303030;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--colors-scale10);
}

.w-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--colors-brand);
  display: grid;
  place-items: center;
  color: #0f172a;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 1050px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: static;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 1000px) {
  .app-container {
    flex-direction: column;
  }

  

body

.upgrade-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--colors-scale5);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.upgrade-option:hover {
  background: var(--colors-scale4);
}

.upgrade-option input {
  accent-color: var(--colors-brand);
  width: 16px;
  height: 16px;
}

.opt-info {
  display: flex;
  flex-direction: column;
}

.opt-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--colors-scale12);
}

.opt-price {
  font-size: 12px;
  color: var(--colors-scale11);
}

.opt-sub {
  font-size: 10px;
  color: var(--good);
  font-weight: 500;
}