.support-chat-page main.support-chat-main {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.support-chat-page .atmosphere-grid {
  display: none;
}

.support-chat-page .footer-compact {
  padding-top: 0;
}

.support-chat-page .footer-compact .footer-inner {
  justify-content: center;
  padding-top: 0;
}

#luxlive-support-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: min(1240px, calc(100vh - 130px));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  background: #efe7da;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.lsc-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: #075e54;
  color: #fff;
}

.lsc-head h2 {
  margin: 4px 0 5px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lsc-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  max-width: 34ch;
}

.lsc-kicker {
  display: inline-flex;
  color: #b7f5dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lsc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.lsc-live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.18);
}

.lsc-messages {
  flex: 1;
  min-height: 480px;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #efe7da;
}

.lsc-msg {
  position: relative;
  max-width: min(78%, 520px);
  padding: 6px 10px 20px;
  border-radius: 8px;
  font-size: 0.96rem;
  line-height: 1.42;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13);
}

.lsc-msg-body {
  padding-right: 52px;
}

.lsc-msg-body a {
  color: #006da3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lsc-msg.support.lsc-flow-prompt .lsc-msg-body a {
  color: #006da3;
}

.lsc-msg-time {
  position: absolute;
  right: 8px;
  bottom: 5px;
  font-size: 0.68rem;
  line-height: 1;
  color: #5c6b76;
  white-space: nowrap;
}

.lsc-msg-byline {
  position: absolute;
  left: 8px;
  bottom: 5px;
  font-size: 0.62rem;
  line-height: 1.1;
  color: #5c6b76;
  max-width: calc(100% - 56px);
}

.lsc-msg.support.has-byline {
  padding-bottom: 28px;
}

.lsc-msg.support.has-byline .lsc-msg-body {
  padding-right: 8px;
  padding-bottom: 4px;
}

.lsc-date-separator {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  color: #54656f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px 4px;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  margin: 6px 0 4px;
}

.lsc-msg.customer {
  align-self: flex-end;
  background: #dcf8c6;
  color: #111b21;
  border-top-right-radius: 0;
}

.lsc-msg.support {
  align-self: flex-start;
  background: #fff;
  color: #111b21;
  border: 0;
  border-top-left-radius: 0;
}

.lsc-msg.system {
  align-self: center;
  background: #fff5c4;
  color: #54656f;
  font-size: 0.84rem;
  text-align: center;
  max-width: min(90%, 460px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
}

.lsc-msg.system .lsc-msg-body {
  padding-right: 0;
}

.lsc-msg.system .lsc-msg-time {
  position: static;
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
}

.lsc-gate {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 18px;
  background: #efe7da;
}

.lsc-gate-lead {
  margin: 0;
  color: #111b21;
  font-size: 1rem;
  line-height: 1.45;
}

.lsc-gate-field {
  display: grid;
  gap: 6px;
  color: #111b21;
  font-size: 0.92rem;
  font-weight: 700;
}

.lsc-gate-field input {
  font: inherit;
  font-weight: 500;
  color: #111b21;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
}

.lsc-gate-field input:focus {
  border-color: rgba(7, 94, 84, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.lsc-gate .sales-primary-cta {
  margin: 4px 0 0;
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: #075e54;
  color: #fff;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
}

.lsc-gate .sales-primary-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.lsc-sent {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 20px 18px;
  background: #efe7da;
}

.lsc-sent-hint {
  margin: 0;
  color: #3b4a54;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lsc-sent .sales-primary-cta {
  margin: 4px 0 0;
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: #075e54;
  color: #fff;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
}

.lsc-sent .sales-primary-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.lsc-sent-other {
  align-self: flex-start;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #075e54;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.lsc-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lsc-app-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lsc-app-boxes {
  display: flex;
  gap: 8px;
}

.lsc-app-box {
  width: 44px;
  height: 52px;
  padding: 0;
  text-align: center;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #111b21;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
}

.lsc-app-box:focus {
  border-color: rgba(7, 94, 84, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
  outline: none;
}

.lsc-compose {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: #f0f2f5;
}

.lsc-compose.lsc-hidden {
  display: none;
}

.lsc-hidden {
  display: none !important;
}

#luxlive-support-chat.lsc-typebot-mode .lsc-compose {
  display: none !important;
}

#luxlive-support-chat.lsc-typebot-mode .lsc-messages {
  padding: 0;
}

.lsc-typebot-host {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lsc-typebot-host typebot-standard {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  flex: 1 1 auto;
}

.lsc-text-compose {
  display: grid;
  gap: 12px;
}

.lsc-pills-compose {
  display: grid;
  gap: 12px;
}

.lsc-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lsc-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #075e54;
  padding: 14px 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lsc-pill:first-child {
  background: #25d366;
  color: #06281f;
  border-color: rgba(0, 0, 0, 0.08);
}

.lsc-pill:hover:not(:disabled) {
  background: #e7f8ef;
  border-color: rgba(7, 94, 84, 0.28);
  transform: translateY(-1px);
}

.lsc-pill:disabled {
  opacity: 0.55;
  cursor: default;
}

.lsc-membership-prompt {
  margin-top: 4px;
}

.lsc-compose textarea {
  min-height: 54px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #fff;
  color: #111b21;
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.lsc-compose textarea:focus {
  border-color: rgba(7, 94, 84, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.14);
}

.lsc-compose textarea:focus-visible {
  outline: 2px solid #075e54;
  outline-offset: 2px;
}

.lsc-compose textarea::placeholder {
  color: #5c6b76;
  opacity: 1;
}

.lsc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.support-chat-page #luxlive-support-chat,
.support-app #luxlive-support-chat{background:#14141a;border-color:rgba(255,255,255,.10);box-shadow:none;min-height:min(720px,calc(100vh - 220px))}
.support-chat-page .lsc-head,
.support-app .lsc-head{background:linear-gradient(135deg,#9e1024,#c41230);color:#fff}
.support-chat-page .lsc-kicker,
.support-app .lsc-kicker{color:#ffd0d6}
.support-chat-page .lsc-live-pill span,
.support-app .lsc-live-pill span{background:#ffc66b;box-shadow:0 0 0 5px rgba(255,198,107,.18)}
.support-chat-page .lsc-messages,
.support-app .lsc-messages,
.support-chat-page .lsc-gate,
.support-app .lsc-gate,
.support-chat-page .lsc-sent,
.support-app .lsc-sent{background:#14141a;color:#f5f7fc}
.support-chat-page .lsc-msg.customer,
.support-app .lsc-msg.customer{background:#3a1520;color:#f5f7fc}
.support-chat-page .lsc-msg.support,
.support-app .lsc-msg.support{background:#1c1c24;color:#f5f7fc}
.support-chat-page .lsc-msg.system,
.support-app .lsc-msg.system{background:rgba(255,198,107,.14);color:#ffc66b}
.support-chat-page .lsc-msg-time,
.support-app .lsc-msg-time,
.support-chat-page .lsc-msg-byline,
.support-app .lsc-msg-byline{color:#9aa3b5}
.support-chat-page .lsc-msg-body a,
.support-app .lsc-msg-body a,
.support-chat-page .lsc-msg.support.lsc-flow-prompt .lsc-msg-body a,
.support-app .lsc-msg.support.lsc-flow-prompt .lsc-msg-body a{color:#6ec3ff}
.support-chat-page .lsc-date-separator,
.support-app .lsc-date-separator{background:rgba(255,255,255,.08);color:#c4c9da}
.support-chat-page .lsc-gate-lead,
.support-app .lsc-gate-lead,
.support-chat-page .lsc-gate-field,
.support-app .lsc-gate-field,
.support-chat-page .lsc-sent-hint,
.support-app .lsc-sent-hint{color:#f5f7fc}
.support-chat-page .lsc-gate-field input,
.support-app .lsc-gate-field input,
.support-chat-page .lsc-app-box,
.support-app .lsc-app-box,
.support-chat-page .lsc-compose textarea,
.support-app .lsc-compose textarea{background:#0b0b0f;color:#f5f7fc;border-color:rgba(255,255,255,.14)}
.support-chat-page .lsc-gate-field input:focus,
.support-app .lsc-gate-field input:focus,
.support-chat-page .lsc-app-box:focus,
.support-app .lsc-app-box:focus,
.support-chat-page .lsc-compose textarea:focus,
.support-app .lsc-compose textarea:focus{border-color:#c41230;box-shadow:0 0 0 3px rgba(196,18,48,.25)}
.support-chat-page .lsc-compose textarea:focus-visible,
.support-app .lsc-compose textarea:focus-visible{outline-color:#fff}
.support-chat-page .lsc-compose,
.support-app .lsc-compose{background:#101016;border-top-color:rgba(255,255,255,.10)}
.support-chat-page .lsc-gate .sales-primary-cta,
.support-app .lsc-gate .sales-primary-cta,
.support-chat-page .lsc-sent .sales-primary-cta,
.support-app .lsc-sent .sales-primary-cta,
.support-chat-page .lsc-actions .sales-primary-cta,
.support-app .lsc-actions .sales-primary-cta,
.support-chat-page .lsc-pill:first-child,
.support-app .lsc-pill:first-child{background:linear-gradient(135deg,#9e1024,#c41230);color:#fff;border:0}
.support-chat-page .lsc-pill,
.support-app .lsc-pill{background:#1c1c24;color:#f5f7fc;border-color:rgba(255,255,255,.12)}
.support-chat-page .lsc-pill:hover:not(:disabled),
.support-app .lsc-pill:hover:not(:disabled){background:#2a2a34;border-color:rgba(255,255,255,.2)}
.support-chat-page .lsc-sent-other,
.support-app .lsc-sent-other{color:#ffb4c0}
.support-chat-page .lsc-status,
.support-app .lsc-status{color:#9aa3b5}
.wx-account.support-app{margin-left:auto;margin-right:auto}
.support-inbox{display:block;width:100%;height:min(760px,calc(100dvh - 220px));min-height:520px;border:0;border-radius:18px;background:#07070b}
.support-title{margin:0 0 4px;font-size:1.35rem}
.support-lead{margin:0 0 10px;color:#c4c9da}
.support-lead a{display:inline-flex;align-items:center;min-height:44px;margin:0 -4px;padding:0 4px;text-decoration:underline}
.lsc-actions .sales-primary-cta {
  margin: 0;
  border-radius: 999px;
  padding: 11px 17px;
  min-height: 44px;
  background: #075e54;
  color: #fff;
  border: 0;
}
.lsc-attach{min-width:44px;min-height:44px}

.lsc-status {
  font-size: 0.86rem;
  color: #4a5c6a;
}

.lsc-error {
  color: #b42318;
}

@media (max-width: 899px) {
  .support-chat-page .nav {
    position: static !important;
    padding: 10px 0 8px;
  }

  .support-chat-page .nav-inner {
    gap: 10px;
  }

  .support-chat-page .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .support-chat-page .nav-link[href="/"],
  .support-chat-page .nav-link[href="/plans"],
  .support-chat-page .nav-link[href="/faq"] {
    display: none;
  }

  .support-chat-page .nav-link {
    padding: 10px 14px;
  }

  .support-chat-page main.support-chat-main {
    width: calc(100% - 16px);
    padding: 8px 0 16px;
    min-height: auto;
  }

  #luxlive-support-chat {
    min-height: auto;
    border-radius: 22px;
  }

  .lsc-head {
    display: grid;
    padding-top: 20px;
  }

  .lsc-live-pill {
    width: max-content;
  }

  .lsc-head,
  .lsc-messages,
  .lsc-compose {
    padding-left: 15px;
    padding-right: 15px;
  }

  .lsc-head h2 {
    font-size: 2rem;
  }

  .lsc-head p {
    font-size: 0.9rem;
  }

  .support-chat-page{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .lsc-messages {
    flex: 0 0 auto;
    min-height: 160px;
    max-height: 38vh;
  }

  .lsc-compose textarea {
    min-height: 72px;
  }

  .lsc-msg {
    max-width: 92%;
  }

  .lsc-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) and (max-height: 500px) {
  .support-title,
  .support-lead { display: none; }
  .support-chat-page main.support-chat-main { padding-top: 6px; padding-bottom: 6px; }
  #luxlive-support-chat { min-height: 0; }
  .lsc-messages { min-height: 64px; max-height: 18vh; }
  .lsc-compose { gap: 6px; padding-top: 6px; padding-bottom: 4px; }
  .lsc-text-compose { gap: 6px; }
  .lsc-compose textarea { height: 44px; min-height: 44px; padding: 8px 12px; resize: none; }
  .lsc-messages { min-height: 44px; max-height: 16vh; }
  .lsc-actions { gap: 8px; }
}
