:root {
  --tc-navy: #1e2d55;
  --tc-border: #d9d9df;
  --tc-gold: #9a7440;
  --tc-bg: #f6f4f1;
  --tc-text: #2e3140;
  --tc-accent: #d83c74;
}

.tc-ai-section { padding: 56px 0 48px; background: #fff; color: var(--tc-text); }
.tc-ai-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.tc-ai-title { font-size: clamp(28px, 4vw, 44px); margin: 0 0 18px; color: var(--tc-navy); }
.tc-ai-lead { max-width: 860px; line-height: 1.9; margin: 0 0 28px; }
.tc-ai-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tc-ai-card { background: #fff; border: 1px solid #eadfce; border-radius: 18px; padding: 34px 30px 28px; text-align: center; box-shadow: 0 12px 28px rgba(25, 32, 65, .05); }
.tc-ai-avatar { width: 108px; height: 108px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700; margin-bottom: 18px; border: 2px solid #f0d0d6; }
.tc-ai-avatar-syn { background: linear-gradient(135deg, #f6d9e0, #fff); color: #96516c; }
.tc-ai-avatar-ray { background: linear-gradient(135deg, #e6ebf7, #fff); color: #36529b; border-color: #d6dff4; }
.tc-ai-role { color: var(--tc-gold); font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.tc-ai-name { font-size: clamp(28px, 4vw, 44px); color: var(--tc-navy); margin: 0 0 16px; }
.tc-ai-points { list-style: none; padding: 0; margin: 0 0 26px; }
.tc-ai-points li { padding: 8px 0; font-size: 18px; }
.tc-ai-button { width: 100%; border: 2px solid var(--tc-navy); background: #fff; color: var(--tc-navy); padding: 16px 18px; border-radius: 12px; font-size: 24px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.tc-ai-button:hover, .tc-ai-button:focus { background: var(--tc-navy); color: #fff; }
.tc-ai-cta-row { text-align: center; margin-top: 34px; }
.tc-ai-main-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--tc-accent); color: #fff; text-decoration: none; padding: 18px 34px; min-width: 360px; border-radius: 12px; font-size: 26px; font-weight: 700; }
.tc-ai-sub-cta { display: inline-block; margin-top: 18px; color: #1455d8; font-size: 22px; }

.tc-ai-widget { position: fixed; right: 24px; bottom: 20px; z-index: 9999; font-family: inherit; }
.tc-ai-launcher { display: flex; align-items: center; gap: 10px; border: 0; background: var(--tc-navy); color: #fff; border-radius: 999px; padding: 12px 18px 12px 12px; box-shadow: 0 12px 25px rgba(20, 29, 58, .18); cursor: pointer; }
.tc-ai-launcher-avatar { width: 42px; height: 42px; border-radius: 50%; background: #f8dfe5; color: #8c5264; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.tc-ai-launcher-text { font-weight: 700; }
.tc-ai-panel { width: min(390px, calc(100vw - 24px)); height: min(620px, 78vh); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(21, 27, 49, .18); border: 1px solid #d8dde8; display: flex; flex-direction: column; margin-bottom: 14px; }
.tc-ai-panel-header { background: var(--tc-navy); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.tc-ai-panel-title { font-size: 20px; font-weight: 700; }
.tc-ai-panel-subtitle { font-size: 12px; opacity: .9; margin-top: 2px; }
.tc-ai-panel-actions { display: flex; gap: 8px; align-items: center; }
.tc-ai-mini-btn, .tc-ai-close { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 999px; padding: 7px 10px; cursor: pointer; }
.tc-ai-close { width: 36px; height: 36px; padding: 0; font-size: 22px; line-height: 1; }
.tc-ai-messages { flex: 1; overflow-y: auto; background: #f4f1ea; padding: 16px 14px; }
.tc-ai-message-row { display: flex; gap: 10px; margin-bottom: 14px; }
.tc-ai-bot-icon { width: 34px; height: 34px; border-radius: 50%; background: #f7dce3; color: #8e4c61; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 34px; }
.tc-ai-bot-icon.ray { background: #dbe6fb; color: #315298; }
.tc-ai-user-icon { width: 34px; height: 34px; border-radius: 50%; background: #dae1ea; color: #42526b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 34px; }
.tc-ai-bubble-wrap { max-width: calc(100% - 44px); }
.tc-ai-speaker { font-size: 12px; color: #5e6473; margin-bottom: 4px; }
.tc-ai-bubble { background: #fff; border: 1px solid #ddd8cf; border-radius: 14px; padding: 12px 14px; line-height: 1.75; word-break: break-word; }
.tc-ai-bubble a { color: #1455d8; }
.tc-ai-message-row.user { flex-direction: row-reverse; }
.tc-ai-message-row.user .tc-ai-bubble { background: #eff4ff; border-color: #cfdcf9; }
.tc-ai-message-row.user .tc-ai-bubble-wrap { text-align: right; }
.tc-ai-quick-replies { padding: 12px 12px 10px; display: flex; flex-wrap: wrap; gap: 8px; background: #f4f1ea; border-top: 1px solid #e4dfd5; }
.tc-ai-chip { border: 1px solid #7b8497; background: #fff; color: #34425f; border-radius: 999px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
.tc-ai-input-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid #e5e7ef; background: #fff; }
.tc-ai-input-row input { flex: 1; min-width: 0; border: 1px solid #cad0db; border-radius: 12px; padding: 13px 14px; font-size: 15px; }
.tc-ai-send { border: 0; background: #9099aa; color: #fff; border-radius: 12px; padding: 13px 16px; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .tc-ai-cards { grid-template-columns: 1fr; }
  .tc-ai-main-cta { min-width: auto; width: 100%; }
  .tc-ai-button { font-size: 20px; }
  .tc-ai-sub-cta { font-size: 18px; }
  .tc-ai-widget { right: 12px; bottom: 12px; }
}
