/* Literal chat component from frozen landing; public claims and badge removed. */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--landing-reference-9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    var(--landing-reference-55);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.chat-fab:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow:
    var(--landing-reference-56);
}
.chat-fab:active { transform: scale(1.02); }
.chat-fab svg { width: 26px; height: 26px; transition: transform 0.3s var(--ease); }
.chat-fab.open svg.icon-chat { display: none; }
.chat-fab svg.icon-close { display: none; width: 22px; height: 22px; }
.chat-fab.open svg.icon-close { display: block; }
.chat-fab .fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.chat-fab.open .fab-pulse { display: none; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 901;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100vh - 140px));
  background: var(--landing-reference-57);
  border: 1px solid var(--border-strong);
  border-radius: var(--landing-reference-58);
  box-shadow:
    var(--landing-reference-59);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-out);
}
.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: chatPop 0.35s var(--ease-out);
}
.chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--landing-reference-60);
  flex-shrink: 0;
}
.chat-head-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--landing-reference-61);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.chat-head-avatar svg { width: 18px; height: 18px; }
.chat-head-body { flex: 1; min-width: 0; }
.chat-head-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.chat-head-close {
  width: 44px;
  height: 44px;
  border-radius: var(--landing-reference-23);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-head-close:hover { background: var(--landing-reference-62); color: var(--text); }
.chat-head-close svg { width: 16px; height: 16px; }

.chat-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}
.chat-intro {
  padding: 14px 15px;
  border-radius: var(--landing-reference-40);
  background: var(--landing-reference-63);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.chat-intro strong { color: var(--text); font-weight: 600; }

#chatForm { display: flex; flex-direction: column; gap: 16px; }
.chat-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chat-field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.2;
}
.chat-field input,
.chat-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: var(--landing-reference-23);
  background: var(--landing-reference-64);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  resize: none;
}
.chat-field input::placeholder,
.chat-field textarea::placeholder {
  color: var(--text-3);
  opacity: 1;
  line-height: 1.5;
}
.chat-field input:focus,
.chat-field textarea:focus {
  border-color: var(--border-gold);
  background: var(--landing-reference-62);
  box-shadow: var(--landing-reference-65);
}
.chat-field input.error,
.chat-field textarea.error { border-color: var(--red-border); background: var(--red-bg); }
.chat-field textarea {
  min-height: 100px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.chat-field .err {
  font-size: 11px;
  color: var(--red);
  display: none;
  line-height: 1.3;
}
.chat-field.invalid .err { display: block; }

.chat-send { width: 100%; margin-top: 2px; }
.chat-send .spinner {
  width: 15px; height: 15px;
  border: var(--landing-reference-66);
  border-top-color: var(--landing-reference-9);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.chat-send.loading .spinner { display: block; }
.chat-send.loading .label { opacity: 0.7; }
.chat-hint { font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.5; }

.chat-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  gap: 14px;
  animation: fadeIn 0.4s ease;
}
.chat-success.show { display: flex; }
.chat-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.chat-success-icon svg { width: 26px; height: 26px; }
.chat-success-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.chat-success-text { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.chat-ticket {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-bright);
  padding: 6px 14px;
  background: var(--landing-reference-67);
  border: 1px solid var(--border-gold);
  border-radius: var(--landing-reference-8);
  letter-spacing: 0.04em;
}
.chat-success .btn { width: 100%; margin-top: 4px; }

.chat-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-3);
  text-align: center;
  background: var(--landing-reference-68);
  flex-shrink: 0;
}


@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes chatPop { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
