:root {
  --bg: #070707;
  --surface: #0e0e11;
  --surface-soft: #151419;
  --purple: #8d2cff;
  --purple-light: #c37aff;
  --white: #ffffff;
  --muted: #aaa6b0;
  --border: rgba(255, 255, 255, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(123, 20, 196, 0.2), transparent 27rem),
    radial-gradient(circle at 88% 90%, rgba(141, 44, 255, 0.12), transparent 24rem),
    var(--bg);
  color: var(--white);
}

button, input { font: inherit; }

.support-section {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow i, .online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

.support-copy h1 {
  font-size: clamp(50px, 6.6vw, 92px);
  line-height: 0.91;
  letter-spacing: -4px;
}

.support-copy h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--purple-light);
  text-shadow: 0 0 35px rgba(141, 44, 255, 0.2);
}

.support-copy > p {
  max-width: 530px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.support-points {
  margin-top: 36px;
  display: flex;
  gap: 12px;
}

.support-points div {
  padding: 17px 20px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.support-points strong { font-size: 17px; }
.support-points span { color: var(--muted); font-size: 11px; }

.chat-card {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  overflow: hidden;
  background: rgba(14, 14, 17, 0.88);
  border: 1px solid rgba(141, 44, 255, 0.35);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 45px rgba(123, 20, 196, 0.12);
  backdrop-filter: blur(18px);
}

.chat-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}

.bot-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--purple), #4a0579);
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(141, 44, 255, 0.35);
}

.chat-header h2 { font-size: 15px; }
.chat-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.online-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; background: #57e69a; box-shadow: 0 0 9px #57e69a; }
.spark { margin-left: auto; color: var(--purple-light); font-size: 22px; }

.chat-messages {
  height: 360px;
  padding: 24px 20px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.message {
  width: fit-content;
  max-width: 82%;
  margin-bottom: 16px;
  padding: 13px 15px 10px;
  border-radius: 16px;
  animation: message-in 0.35s ease both;
}

.message-author {
  display: block;
  margin-bottom: 6px;
  color: var(--purple-light);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.message p { font-size: 14px; line-height: 1.55; white-space: pre-line; }
.message time { display: block; margin-top: 6px; color: #77727e; font-size: 9px; text-align: right; }

.bot-message {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.user-message {
  margin-left: auto;
  background: linear-gradient(135deg, #7b14c4, #9b3df0);
  border-bottom-right-radius: 4px;
}

.user-message .message-author { color: rgba(255, 255, 255, 0.7); }
.typing p { display: flex; gap: 4px; padding: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 0.8s infinite alternate; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }

.quick-questions {
  padding: 0 20px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.quick-questions button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(141, 44, 255, 0.38);
  border-radius: 999px;
  background: rgba(141, 44, 255, 0.07);
  color: #d6c5e3;
  font-size: 11px;
  cursor: pointer;
  transition: 0.25s ease;
}

.quick-questions button:hover { color: var(--white); border-color: var(--purple); transform: translateY(-2px); }

.chat-form {
  margin: 0 16px;
  padding: 6px;
  display: flex;
  gap: 8px;
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.chat-form:focus-within { border-color: rgba(141, 44, 255, 0.7); box-shadow: 0 0 0 3px rgba(141, 44, 255, 0.1); }
.chat-form input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 13px; }
.chat-form input::placeholder { color: #6e6973; }

.chat-form button {
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.chat-form button:hover { background: #a044f3; transform: translateY(-1px); }
.chat-form button svg { width: 18px; fill: currentColor; }
.chat-note { padding: 12px 16px 16px; color: #69656d; font-size: 9px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@keyframes message-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes typing { to { opacity: 0.25; transform: translateY(-3px); } }

@media (max-width: 850px) {
  .support-section { grid-template-columns: 1fr; padding: 55px 0; }
  .support-copy { text-align: center; }
  .support-copy > p { margin-left: auto; margin-right: auto; }
  .support-points { justify-content: center; }
  .chat-card { width: min(100%, 620px); margin: 0 auto; }
}

@media (max-width: 520px) {
  .support-section { width: min(100% - 24px, 1160px); padding: 38px 0; gap: 36px; }
  .support-copy h1 { letter-spacing: -2.5px; }
  .support-points { display: grid; grid-template-columns: 1fr 1fr; }
  .chat-card { min-height: 590px; border-radius: 20px; }
  .chat-messages { height: 340px; padding: 18px 14px; }
  .quick-questions { padding-left: 14px; padding-right: 14px; }
  .chat-form { margin: 0 10px; }
  .chat-form button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
