/* Theme-independent AI assistant widget (static/cards/chat/) */
@import url('../yekanbakh.css');

/*
  Self-contained widget: fixed-position UI + tc-chat-* namespace.
  Themes only need: {% include "cards/partials/ai_assistant.html" %}
*/
.tc-ai-assistant {
  font-family: 'YekanBakh', Tahoma, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tc-ai-assistant *,
.tc-ai-assistant *::before,
.tc-ai-assistant *::after {
  box-sizing: border-box;
}

.tc-chat-fab,
.tc-chat-panel,
.tc-chat-panel input,
.tc-chat-panel textarea,
.tc-chat-panel button {
  font-family: 'YekanBakh', Tahoma, 'Segoe UI', sans-serif;
}

.tc-chat-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b2cbf 0%, #6366f1 50%, #38bdf8 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.45),
    0 0 0 0 rgba(123, 44, 191, 0.4);
  animation: tc-chat-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-chat-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.55);
}

.tc-chat-fab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
}

@keyframes tc-chat-pulse {
  0%, 100% {
    box-shadow:
      0 12px 40px rgba(99, 102, 241, 0.45),
      0 0 0 0 rgba(123, 44, 191, 0.35);
  }
  50% {
    box-shadow:
      0 12px 40px rgba(99, 102, 241, 0.55),
      0 0 0 12px rgba(123, 44, 191, 0);
  }
}

html.tc-chat-open,
html.tc-chat-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.tc-chat-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #120a2e 0%, #1a1038 50%, #22124a 100%);
  color: #f5f0ff;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  overscroll-behavior: contain;
}

.tc-chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.tc-chat-head-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tc-chat-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.6), rgba(56, 189, 248, 0.4));
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tc-chat-head-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f8f5ff !important;
}

.tc-chat-head-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(216, 210, 239, 0.75);
}

.tc-chat-userbar {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(12, 8, 32, 0.35);
  flex-shrink: 0;
}

.tc-chat-userbar[hidden] {
  display: none !important;
}

.tc-chat-userbar-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: fit-content;
  padding: 4px 6px 4px 4px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(135deg, rgba(123, 44, 191, 0.22), rgba(56, 189, 248, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(20, 10, 50, 0.18);
}

.tc-chat-user-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f8f5ff;
  background: linear-gradient(145deg, #7b2cbf, #6366f1 55%, #38bdf8);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.32);
}

.tc-chat-userbar-meta {
  min-width: 0;
  flex: 0 1 auto;
  max-width: 16rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.tc-chat-user-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(196, 181, 253, 0.85);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tc-chat-userbar-identity {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.tc-chat-user-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8f5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  min-width: 0;
}

.tc-chat-user-phone {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(216, 210, 239, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.25;
  flex-shrink: 0;
}

.tc-chat-logout {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(237, 233, 254, 0.92);
  border-radius: 9px;
  padding: 5px 8px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.tc-chat-logout-icon {
  width: 12px;
  height: 12px;
  opacity: 0.9;
  flex-shrink: 0;
}

.tc-chat-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(196, 181, 253, 0.4);
  color: #fff;
}

@media (min-width: 768px) {
  .tc-chat-user-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tc-chat-userbar-meta {
    max-width: 18rem;
  }
}

.tc-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e9d5ff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.tc-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tc-chat-auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tc-fade-in 0.35s ease;
}

.tc-chat-auth[hidden],
.tc-chat-thread[hidden],
.tc-chat-error[hidden],
.tc-chat-lock-hint[hidden] {
  display: none !important;
}

.tc-chat-auth-card {
  width: min(100%, 420px);
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(157, 78, 221, 0.28);
  box-shadow: 0 16px 40px rgba(56, 20, 90, 0.25);
  overflow: hidden;
}

.tc-chat-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

.tc-chat-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tc-chat-progress-dot.is-active,
.tc-chat-progress-dot.is-done {
  background: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.18);
}

.tc-chat-progress-dot.is-active {
  transform: scale(1.15);
  background: #a78bfa;
}

.tc-chat-progress-line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.tc-chat-auth-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8f5ff !important;
  transition: opacity 0.2s ease;
}

.tc-chat-auth-sub {
  margin: 0 0 18px;
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(216, 210, 239, 0.78);
  min-height: 2.8em;
  transition: opacity 0.2s ease;
}

.tc-chat-steps {
  position: relative;
  min-height: 168px;
}

.tc-chat-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}

.tc-chat-step.is-active {
  display: flex;
  pointer-events: auto;
  animation: tc-step-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tc-chat-step.is-leaving {
  display: flex;
  animation: tc-step-out 0.22s ease forwards;
}

@keyframes tc-step-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tc-step-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes tc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tc-chat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ddd6fe;
}

.tc-chat-input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
}

.tc-chat-input-field:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.tc-chat-input-field:disabled {
  opacity: 0.55;
}

.tc-chat-primary-btn {
  position: relative;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b2cbf, #38bdf8);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tc-chat-primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tc-chat-primary-btn.is-loading {
  color: transparent;
}

.tc-chat-primary-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tc-spin 0.7s linear infinite;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}

.tc-chat-link-btn {
  border: none;
  background: none;
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
}

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

.tc-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  /* Physical bubble sides stay fixed (user right / assistant left)
     even when the public page switches to LTR English. */
  direction: ltr;
  animation: tc-fade-in 0.35s ease;
}

.tc-chat-thread.is-locked {
  opacity: 0.45;
  filter: grayscale(0.15);
}

.tc-chat-messages .tc-chat-welcome {
  align-self: flex-start;
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: start;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #f8f5ff;
  white-space: pre-wrap;
  word-break: break-word;
  direction: rtl;
}

.tc-chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.85;
  font-size: 0.92rem;
  word-break: break-word;
  white-space: pre-wrap;
  direction: rtl;
  text-align: start;
}

.tc-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7b2cbf, #6366f1);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.tc-chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8f5ff;
  border-bottom-left-radius: 4px;
}

.tc-chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

html[dir='ltr'] .tc-chat-messages .tc-chat-welcome,
html[dir='ltr'] .tc-chat-bubble {
  direction: ltr;
}

.tc-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4b5fd;
  animation: tc-chat-dot 1.2s infinite ease-in-out;
}

.tc-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.tc-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes tc-chat-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.tc-chat-foot {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.tc-chat-foot.is-locked {
  opacity: 0.72;
}

.tc-chat-foot.is-locked .tc-chat-form {
  position: relative;
  pointer-events: none;
}

.tc-chat-foot.is-locked .tc-chat-form::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(18, 10, 46, 0.35);
  border: 1px dashed rgba(196, 181, 253, 0.35);
}

.tc-chat-lock-hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.tc-chat-form {
  display: flex;
  gap: 10px;
  /* align-items: flex-end; */
}

.tc-chat-input {
  box-sizing: border-box;
  flex: 1;
  min-height: 46px;
  max-height: 120px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  resize: none;
  line-height: 1.6;
}

.tc-chat-input:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.tc-chat-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tc-chat-input::placeholder {
  color: rgba(216, 210, 239, 0.45);
}

.tc-chat-send {
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7b2cbf, #38bdf8);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tc-chat-send-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  line-height: 1;
  font-size: 1.05rem;
}

html[dir='ltr'] .tc-chat-send-icon {
  transform: none;
}

.tc-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tc-chat-error {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .tc-chat-fab {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}

/* —— Light chat scheme (color tokens only; layout unchanged) —— */
.tc-ai-assistant.tc-chat-scheme-light .tc-chat-panel {
  background: linear-gradient(165deg, #f7f4ff 0%, #f1f5fb 50%, #eef2ff 100%);
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-head {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-head-icon {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.22), rgba(56, 189, 248, 0.2));
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-head-title {
  color: #1e1b4b !important;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-head-sub {
  color: rgba(71, 65, 110, 0.78);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-userbar {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent),
    rgba(238, 242, 255, 0.85);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-userbar-card {
  border-color: rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(135deg, rgba(123, 44, 191, 0.08), rgba(56, 189, 248, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(99, 102, 241, 0.1);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-user-label {
  color: rgba(79, 70, 229, 0.85);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-user-name {
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-user-phone {
  color: rgba(71, 65, 110, 0.72);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-logout {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(49, 46, 129, 0.92);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-logout:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.35);
  color: #312e81;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-close {
  background: rgba(15, 23, 42, 0.06);
  color: #4338ca;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-auth-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-progress-dot {
  background: rgba(99, 102, 241, 0.22);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-progress-dot.is-active,
.tc-ai-assistant.tc-chat-scheme-light .tc-chat-progress-dot.is-done {
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-progress-dot.is-active {
  background: #6366f1;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-progress-line {
  background: rgba(99, 102, 241, 0.18);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-auth-title {
  color: #1e1b4b !important;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-auth-sub {
  color: rgba(71, 65, 110, 0.82);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-label {
  color: #4338ca;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-input-field {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-input-field:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-link-btn {
  color: #5b21b6;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-messages .tc-chat-welcome {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-bubble.assistant {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-typing {
  background: rgba(255, 255, 255, 0.9);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-typing span {
  background: #7c3aed;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-foot.is-locked .tc-chat-form::after {
  background: rgba(238, 242, 255, 0.55);
  border-color: rgba(99, 102, 241, 0.35);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-lock-hint {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.22);
  color: #4338ca;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-input {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #1e1b4b;
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-input::placeholder {
  color: rgba(71, 65, 110, 0.45);
}

.tc-ai-assistant.tc-chat-scheme-light .tc-chat-error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}
