.support-centre-body,
.landing-body {
  --support-accent: #7a3ff2;
  --support-accent-dark: #4e22b8;
  --support-ink: #171323;
  --support-muted: #6f6782;
  --support-border: rgba(95, 63, 148, 0.14);
}

.support-centre-body {
  min-height: 100vh;
  margin: 0;
  color: var(--support-ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(122, 63, 242, 0.12), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(236, 93, 190, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbf8ff 48%, #fff 100%);
  font-family: var(--LUVIO-font-family, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.support-centre-body * {
  box-sizing: border-box;
}

.support-centre-body.support-assistant-open,
.landing-body.support-assistant-open {
  overflow: hidden;
}

.support-centre-shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 96px;
}

.support-centre-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(95, 63, 148, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(35, 22, 66, 0.08);
  backdrop-filter: blur(18px);
}

.support-centre-brand,
.support-centre-nav a,
.help-contact-band__actions a {
  text-decoration: none;
}

.support-centre-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--support-ink);
  font-size: 22px;
  font-weight: 900;
}

.support-centre-brand img {
  width: 36px;
  height: 36px;
}

.support-centre-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.support-centre-nav a,
.help-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--support-ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.support-centre-nav a:hover {
  border-color: rgba(122, 63, 242, 0.16);
  background: rgba(122, 63, 242, 0.06);
}

.support-centre-nav__primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--support-accent), #9a5df6) !important;
  box-shadow: 0 14px 28px rgba(85, 39, 182, 0.18);
}

.support-centre-nav__primary:hover {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--support-accent-dark), #7a3ff2) !important;
}

.support-centre-main {
  padding-top: 30px;
}

.help-centre-main {
  display: grid;
  gap: 28px;
}

.help-hero {
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
}

.support-centre-kicker {
  margin: 0 0 8px;
  color: var(--support-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-hero h1 {
  margin: 0;
  color: var(--support-ink);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.95;
}

.help-hero p:not(.support-centre-kicker) {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--support-muted);
  font-size: 18px;
  line-height: 1.5;
}

.help-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(720px, 100%);
  min-height: 64px;
  margin: 26px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(95, 63, 148, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(35, 22, 66, 0.08);
}

.help-search img {
  width: 22px;
  height: 22px;
  opacity: 0.68;
}

.help-search input {
  min-width: 0;
  border: 0;
  color: var(--support-ink);
  background: transparent;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.help-section,
.help-contact-band {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.help-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.help-section__head h2,
.help-contact-band h2 {
  margin: 0;
  color: var(--support-ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.help-section__head p,
.help-contact-band p {
  margin: 6px 0 0;
  color: var(--support-muted);
  font-size: 15px;
  line-height: 1.45;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.help-topic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(95, 63, 148, 0.12);
  border-radius: 20px;
  color: var(--support-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(35, 22, 66, 0.06);
  font: inherit;
  text-align: left;
}

.help-topic-card:hover,
.help-contact-band__actions a:hover {
  border-color: rgba(122, 63, 242, 0.28);
  box-shadow: 0 18px 42px rgba(35, 22, 66, 0.09);
  transform: translateY(-1px);
}

.help-topic-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(122, 63, 242, 0.1);
}

.help-topic-card__icon img {
  max-width: 25px;
  max-height: 25px;
}

.help-topic-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.help-topic-card span:last-child {
  color: var(--support-muted);
  font-size: 14px;
  line-height: 1.42;
}

.help-article-list {
  display: grid;
  gap: 16px;
}

.help-article-group {
  display: grid;
  gap: 10px;
}

.help-article-group h3 {
  margin: 10px 0 2px;
  color: var(--support-accent-dark);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-article {
  border: 1px solid rgba(95, 63, 148, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(35, 22, 66, 0.05);
  overflow: hidden;
}

.help-article summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 18px 20px;
  color: var(--support-ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.help-article summary::-webkit-details-marker {
  display: none;
}

.help-article summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--support-accent);
  background: rgba(122, 63, 242, 0.09);
  font-size: 20px;
  font-weight: 900;
}

.help-article[open] summary::after {
  content: "-";
}

.help-article p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--support-muted);
  font-size: 15px;
  line-height: 1.55;
}

.help-empty {
  margin: 14px 0 0;
  color: var(--support-muted);
  font-weight: 800;
}

.help-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(95, 63, 148, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 255, 0.92));
  box-shadow: 0 20px 44px rgba(35, 22, 66, 0.07);
}

.help-contact-band__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.help-contact-band__actions a {
  color: var(--support-accent-dark);
  font-weight: 850;
}

.support-assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1055;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--support-accent), #9a5df6);
  box-shadow: 0 18px 36px rgba(85, 39, 182, 0.28);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.support-assistant-launcher img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.support-assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1056;
  background: rgba(23, 19, 35, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.support-assistant-backdrop.is-open,
.support-centre-body:has(.support-assistant:target) .support-assistant-backdrop,
.landing-body:has(.support-assistant:target) .support-assistant-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.support-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1057;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(440px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 48px));
  border: 1px solid rgba(95, 63, 148, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(35, 22, 66, 0.22);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.support-assistant.is-open,
.support-assistant:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.support-centre-body:has(.support-assistant:target),
.landing-body:has(.support-assistant:target) {
  overflow: hidden;
}

.support-assistant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--support-border);
  background: rgba(255, 255, 255, 0.92);
}

.support-assistant__head h2 {
  margin: 0;
  color: var(--support-ink);
  font-size: 24px;
  line-height: 1.05;
}

.support-assistant__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(95, 63, 148, 0.1);
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
}

.support-assistant__close img {
  width: 16px;
  height: 16px;
}

.support-console__eyebrow {
  margin: 0 0 4px;
  color: var(--support-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-console__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248, 244, 255, 0.72), rgba(255, 255, 255, 0.92));
}

.support-console__message {
  max-width: min(86%, 680px);
  padding: 12px 14px;
  border: 1px solid rgba(95, 63, 148, 0.1);
  border-radius: 16px;
  color: var(--support-ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-console__message--user {
  align-self: flex-end;
  border-color: transparent;
  color: #fff;
  background: var(--support-accent);
}

.support-console__message--system {
  align-self: center;
  max-width: 100%;
  color: var(--support-muted);
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.support-console__message--ai {
  align-self: flex-start;
  background: #fff;
}

.support-console__message--error {
  align-self: stretch;
  max-width: 100%;
  border-color: rgba(206, 65, 65, 0.2);
  color: #9a2424;
  background: #fff5f5;
}

.support-console__empty-dialog {
  align-self: center;
  justify-self: center;
  max-width: 340px;
  margin: auto;
  color: var(--support-muted);
  text-align: center;
}

.support-console__empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(122, 63, 242, 0.1);
  font-weight: 900;
}

.support-console__empty-icon img {
  width: 26px;
  height: 26px;
}

.support-console__empty-dialog h3 {
  margin: 0 0 8px;
  color: var(--support-ink);
  font-size: 18px;
}

.support-console__empty-dialog p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.support-console__quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.support-console__quick-prompts button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(122, 63, 242, 0.16);
  border-radius: 999px;
  color: var(--support-accent-dark);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 800;
}

.support-console__email {
  padding: 12px 16px;
  border-top: 1px solid var(--support-border);
  background: #ffffff;
}

.support-console__email label {
  display: block;
  margin: 0 0 8px;
  color: var(--support-ink);
  font-size: 13px;
  font-weight: 850;
}

.support-console__email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.support-console__email input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(95, 63, 148, 0.16);
  border-radius: 14px;
  color: var(--support-ink);
  background: #fbfaff;
  font: inherit;
  outline: none;
}

.support-console__email input:focus {
  border-color: var(--support-accent);
  background: #fff;
}

.support-console__email button {
  min-width: 110px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--support-accent);
  font: inherit;
  font-weight: 850;
}

.support-console__composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--support-border);
  background: #ffffff;
}

.support-console__composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  max-height: 140px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--support-ink);
  background: var(--LUVIO-substrate, #f0eafa);
  font: inherit;
  outline: none;
  resize: none;
}

.support-console__composer textarea:focus {
  border-color: var(--support-accent);
  background: var(--LUVIO-secondary-light, #f8f3ff);
}

.support-console__send-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #d8d3e4;
  box-shadow: none;
  cursor: not-allowed;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.support-console__send-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--support-accent), #9a5df6);
  opacity: 0;
  transform: scale(0);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
}

.support-console__send-button img {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(42%) sepia(10%) saturate(575%) hue-rotate(219deg) brightness(90%) contrast(87%);
  transform: translateX(1px);
  transition: filter 180ms ease;
}

.support-console__send-button.is-ready {
  background: var(--support-accent);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(85, 39, 182, 0.2);
}

.support-console__send-button.is-ready::before {
  opacity: 1;
  transform: scale(1);
}

.support-console__send-button.is-ready img {
  filter: brightness(0) invert(1);
}

.support-console__send-button.is-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(85, 39, 182, 0.26);
}

.support-console__send-button:disabled {
  pointer-events: none;
}

@media (max-width: 991px) {
  .support-centre-shell {
    padding: 10px 14px 92px;
  }

  .support-centre-header {
    position: static;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .support-centre-brand {
    font-size: 20px;
  }

  .support-centre-brand img {
    width: 34px;
    height: 34px;
  }

  .support-centre-nav {
    gap: 6px;
  }

  .support-centre-nav a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .support-centre-main {
    padding-top: 22px;
  }

  .help-hero {
    text-align: left;
  }

  .help-hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .help-hero p:not(.support-centre-kicker) {
    margin-top: 10px;
    font-size: 15px;
  }

  .help-search {
    min-height: 58px;
    margin-top: 20px;
    padding: 0 16px;
  }

  .help-search input {
    font-size: 16px;
  }

  .help-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-contact-band,
  .help-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-contact-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .support-centre-shell {
    padding-inline: 10px;
  }

  .support-centre-nav a:not(.support-centre-nav__primary) {
    display: none;
  }

  .help-hero h1 {
    font-size: 34px;
  }

  .help-topic-grid {
    grid-template-columns: 1fr;
  }

  .help-topic-card {
    min-height: 0;
  }

  .help-section__head h2,
  .help-contact-band h2 {
    font-size: 28px;
  }

  .support-assistant-launcher {
    right: 16px;
    bottom: 16px;
    min-height: 54px;
    padding: 0 18px;
  }

  .support-assistant {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    transform: translateY(16px);
  }

  .support-assistant__head {
    padding: 18px 16px;
  }

  .support-console__messages {
    padding: 16px;
  }

  .support-console__message {
    max-width: 88%;
  }

  .support-console__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0));
  }

  .support-console__composer textarea {
    min-height: 56px;
    max-height: 126px;
    padding: 15px 16px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.3;
  }

  .support-console__send-button {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
  }
}

@media (max-width: 420px) {
  .support-centre-brand span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .support-console__email-row {
    grid-template-columns: 1fr;
  }

  .support-console__email button {
    min-height: 44px;
  }
}
