:root {
  --cq-accent-aqua: #79f4ff;
  --cq-accent-violet: #9b7bff;
  --cq-accent-pink: #ef75ff;
  --cq-surface: #0b0a12;
  --cq-surface-raised: #14121f;
  --cq-border: rgba(255, 255, 255, 0.13);
  --cq-text: #f7f5ff;
  --cq-muted: rgba(239, 235, 255, 0.58);
}

html.cq-page-locked,
html.cq-page-locked body,
body.cq-auth-open {
  overflow: hidden !important;
}

/* Remove the CTA banner, its decorative grid, and the footer shown in the screenshot. */
.section.cta-section,
.section.cta-section + .separator-grid,
.section.footer {
  display: none !important;
}

#cq-entry-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cq-text);
  background:
    radial-gradient(circle at 50% 46%, rgba(155, 123, 255, 0.2), transparent 27%),
    radial-gradient(circle at 50% 53%, #151128 0%, #080710 56%, #030306 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms cubic-bezier(0.65, 0, 0.35, 1), visibility 700ms step-end;
  isolation: isolate;
}

#cq-entry-loader::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(121, 244, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 123, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle, #000 0%, transparent 65%);
  animation: cq-grid-drift 8s linear infinite;
}

#cq-entry-loader::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  z-index: -1;
  width: 1px;
  height: 160%;
  background: linear-gradient(transparent, rgba(121, 244, 255, 0.8), transparent);
  box-shadow: 0 0 45px 16px rgba(155, 123, 255, 0.15);
  transform: rotate(38deg);
  animation: cq-light-sweep 2.8s ease-in-out infinite;
}

#cq-entry-loader.cq-is-leaving {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.cq-loader-stage {
  display: grid;
  width: min(78vw, 300px);
  place-items: center;
  text-align: center;
  transform: translateY(-2vh);
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.cq-is-leaving .cq-loader-stage {
  transform: translateY(-2vh) scale(1.06);
}

.cq-loader-symbol {
  position: relative;
  display: grid;
  width: 196px;
  height: 196px;
  place-items: center;
}

.cq-loader-halo {
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: rgba(155, 123, 255, 0.18);
  filter: blur(22px);
  animation: cq-halo-pulse 1.8s ease-in-out infinite;
}

.cq-loader-ring {
  position: absolute;
  border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
}

.cq-loader-ring--outer {
  inset: 5px;
  background: conic-gradient(from 0deg, transparent 0 12%, rgba(121, 244, 255, 0.25) 18%, #d7fbff 24%, transparent 31% 68%, rgba(239, 117, 255, 0.65) 76%, transparent 83%);
  animation: cq-ring-spin 3.2s linear infinite;
}

.cq-loader-ring--inner {
  inset: 24px;
  background: conic-gradient(from 100deg, transparent 0 20%, rgba(155, 123, 255, 0.95) 29%, transparent 36% 73%, rgba(121, 244, 255, 0.75) 82%, transparent 90%);
  animation: cq-ring-spin-reverse 2.35s linear infinite;
}

.cq-loader-orbit {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(155, 123, 255, 0.18);
  border-radius: 50%;
  animation: cq-ring-spin 4.8s linear infinite;
}

.cq-loader-orbit::before,
.cq-loader-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #d9fdff;
  box-shadow: 0 0 14px 4px rgba(121, 244, 255, 0.58);
}

.cq-loader-orbit::before { left: -3px; }
.cq-loader-orbit::after { right: -3px; opacity: 0.5; }

.cq-loader-mark {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(224, 252, 255, 0.9);
  border-radius: 50%;
  color: #090711;
  background: linear-gradient(145deg, #e6fdff 0%, #8ce8f5 34%, #a57dff 72%, #e278ff 100%);
  box-shadow: 0 0 0 8px rgba(155, 123, 255, 0.08), 0 0 58px rgba(155, 123, 255, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  font: 900 24px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.08em;
  text-indent: -0.08em;
  animation: cq-mark-breathe 1.8s ease-in-out infinite;
}

.cq-loader-mark::after {
  content: "";
  position: absolute;
  inset: -80% -40%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
  transform: translateX(-70%) rotate(12deg);
  animation: cq-mark-shine 2.2s ease-in-out infinite;
}

.cq-loader-brand {
  margin-top: 16px;
  color: #eefeff;
  font: 800 18px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-shadow: 0 0 22px rgba(121, 244, 255, 0.24);
}

.cq-loader-caption {
  min-height: 14px;
  margin-top: 9px;
  color: rgba(239, 235, 255, 0.46);
  font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
}

.cq-loader-progress {
  position: relative;
  width: 174px;
  height: 2px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.cq-loader-progress > span {
  display: block;
  width: var(--cq-loader-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7857de, #79f4ff, #ef75ff);
  box-shadow: 0 0 14px rgba(121, 244, 255, 0.75);
  transition: width 120ms linear;
}

.cq-loader-percent {
  margin-top: 10px;
  color: rgba(152, 235, 255, 0.6);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.cq-auth-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99990;
  min-width: 118px;
  padding: 13px 18px;
  border: 1px solid rgba(179, 157, 255, 0.52);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(115deg, rgba(64, 44, 122, 0.96), rgba(25, 93, 108, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 24px rgba(121, 244, 255, 0.15);
  font: 650 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cq-auth-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 244, 255, 0.86);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 30px rgba(155, 123, 255, 0.28);
}

.cq-auth-overlay,
.cq-link-wait {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 3, 8, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.cq-auth-overlay.cq-is-open,
.cq-link-wait.cq-is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.cq-auth-card {
  position: relative;
  width: min(92vw, 440px);
  overflow: hidden;
  border: 1px solid var(--cq-border);
  border-radius: 24px;
  color: var(--cq-text);
  background:
    radial-gradient(circle at 15% 0%, rgba(155, 123, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(22, 19, 35, 0.98), rgba(8, 8, 15, 0.99));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(121, 244, 255, 0.04) inset;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cq-is-open .cq-auth-card {
  transform: translateY(0) scale(1);
}

.cq-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #79f4ff, #b480ff, transparent);
  box-shadow: 0 0 18px rgba(121, 244, 255, 0.5);
}

.cq-auth-inner { padding: 30px; }

.cq-auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.045);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cq-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font: 750 17px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.cq-auth-logo-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #0a0810;
  background: linear-gradient(145deg, #bffcff, #9f80ff 65%, #ef75ff);
  font-size: 11px;
  font-weight: 900;
}

.cq-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.cq-auth-tab {
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--cq-muted);
  background: transparent;
  font: 650 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.cq-auth-tab.cq-is-active {
  color: #fff;
  background: linear-gradient(110deg, rgba(155, 123, 255, 0.34), rgba(121, 244, 255, 0.14));
  box-shadow: 0 0 0 1px rgba(170, 153, 255, 0.22) inset;
}

.cq-auth-title {
  margin: 0 0 6px;
  color: #fff;
  font: 700 25px/1.2 ui-sans-serif, system-ui, sans-serif;
}

.cq-auth-subtitle {
  margin: 0 0 22px;
  color: var(--cq-muted);
  font: 400 13px/1.6 ui-sans-serif, system-ui, sans-serif;
}

.cq-auth-form { display: grid; gap: 15px; }
.cq-auth-form[hidden] { display: none; }

.cq-auth-field {
  display: grid;
  gap: 7px;
  color: rgba(247, 245, 255, 0.78);
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
}

.cq-auth-field input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: rgba(3, 3, 8, 0.48);
  padding: 0 14px;
  font: 500 14px/1 ui-sans-serif, system-ui, sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cq-auth-field input:focus {
  border-color: rgba(121, 244, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(121, 244, 255, 0.09);
}

.cq-auth-submit {
  height: 47px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  color: #090711;
  background: linear-gradient(100deg, #8beef8, #ab8cff 56%, #ed8bff);
  box-shadow: 0 12px 28px rgba(127, 101, 225, 0.22);
  font: 750 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.cq-auth-message {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font: 500 12px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.cq-auth-message.cq-is-visible { display: block; }
.cq-auth-message.cq-is-error { color: #ffb5c0; background: rgba(255, 74, 104, 0.1); }
.cq-auth-message.cq-is-success { color: #a8f7dc; background: rgba(90, 235, 187, 0.1); }

.cq-link-wait { z-index: 100010; }

.cq-link-wait-card {
  display: grid;
  min-width: 210px;
  place-items: center;
  gap: 15px;
  padding: 28px 34px;
  border: 1px solid rgba(155, 123, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  background: rgba(13, 11, 22, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  font: 600 13px/1.4 ui-sans-serif, system-ui, sans-serif;
}

.cq-link-wait-spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cq-accent-aqua);
  border-right-color: var(--cq-accent-violet);
  border-radius: 50%;
  animation: cq-ring-spin 0.8s linear infinite;
}

@keyframes cq-ring-spin { to { transform: rotate(360deg); } }
@keyframes cq-ring-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes cq-halo-pulse { 0%, 100% { opacity: 0.48; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes cq-mark-breathe { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.025); } }
@keyframes cq-mark-shine { 0%, 22% { transform: translateX(-90%) rotate(12deg); opacity: 0; } 42% { opacity: 0.9; } 62%, 100% { transform: translateX(90%) rotate(12deg); opacity: 0; } }
@keyframes cq-grid-drift { to { transform: translate3d(52px, 52px, 0); } }
@keyframes cq-light-sweep { 0%, 100% { transform: translateX(-46vw) rotate(38deg); opacity: 0; } 45%, 55% { opacity: 0.62; } 100% { transform: translateX(46vw) rotate(38deg); opacity: 0; } }

@media (max-width: 540px) {
  .cq-loader-symbol { width: 170px; height: 170px; }
  .cq-loader-mark { width: 76px; height: 76px; font-size: 21px; }
  .cq-auth-inner { padding: 25px 20px 22px; }
  .cq-auth-fab { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #cq-entry-loader::before,
  #cq-entry-loader::after,
  .cq-loader-ring,
  .cq-loader-orbit,
  .cq-loader-halo,
  .cq-loader-mark,
  .cq-loader-mark::after,
  .cq-link-wait-spinner { animation: none !important; }
}
