.qxsint-is-hidden {
  display: none !important;
}

.qxsint-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.22), transparent 44%),
    rgba(3, 2, 7, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.qxsint-auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qxsint-auth-card {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background:
    linear-gradient(180deg, rgba(24, 16, 43, 0.98), rgba(7, 5, 14, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.82),
    0 0 55px rgba(124, 58, 237, 0.2);
  transform: translateY(10px) scale(0.985);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.qxsint-auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c084fc, #fff, #c084fc, transparent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.qxsint-auth-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 160ms ease;
}

.qxsint-auth-close:hover {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(168, 85, 247, 0.16);
}

.qxsint-auth-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-right: 32px;
}

.qxsint-auth-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(88, 28, 135, 0.28);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
}

.qxsint-auth-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.qxsint-auth-kicker {
  color: #c084fc;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.qxsint-auth-head h2 {
  margin: 4px 0 5px;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qxsint-auth-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  line-height: 1.55;
}

.qxsint-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 22px 0 18px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
}

.qxsint-auth-tab {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: 160ms ease;
}

.qxsint-auth-tab.is-active {
  color: #09090b;
  background: #fff;
  box-shadow: 0 3px 18px rgba(216, 180, 254, 0.35);
}

.qxsint-auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.qxsint-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qxsint-field > span {
  color: rgba(255, 255, 255, 0.74);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qxsint-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(4, 3, 9, 0.82);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  outline: none;
  transition: 160ms ease;
}

.qxsint-field input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.qxsint-field input:focus {
  border-color: rgba(192, 132, 252, 0.78);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.13);
}

.qxsint-field small {
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  line-height: 1.4;
}

.qxsint-auth-primary {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fff;
  color: #09090b;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}

.qxsint-auth-primary:hover {
  background: #ddd6fe;
  box-shadow: 0 0 28px rgba(216, 180, 254, 0.5);
}

.qxsint-auth-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.qxsint-auth-feedback {
  min-height: 16px;
  color: #fca5a5;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.qxsint-auth-feedback.is-success {
  color: #86efac;
}

.qxsint-auth-note {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  line-height: 1.55;
}

.qxsint-auth-note span {
  color: #c084fc;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 5px;
}

.qxsint-auth-email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(88, 28, 135, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.qxsint-auth-email-chip button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #c084fc;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.qxsint-auth-prompt {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  line-height: 1.55;
}

.qxsint-auth-prompt strong {
  display: block;
  color: #fde68a;
  margin-bottom: 3px;
}

.qxsint-auth-prompt p {
  margin: 0 0 11px;
}

.qxsint-auth-prompt .qxsint-auth-primary {
  background: #fde68a;
}

.qxsint-auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.qxsint-auth-foot i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.qxsint-cookie {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(8, 6, 16, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.72), 0 0 34px rgba(124, 58, 237, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.qxsint-cookie-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  line-height: 1.5;
}

.qxsint-cookie-copy strong {
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qxsint-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.qxsint-cookie-primary,
.qxsint-cookie-secondary {
  padding: 9px 12px;
  border-radius: 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}

.qxsint-cookie-primary {
  border: 1px solid #fff;
  background: #fff;
  color: #09090b;
}

.qxsint-cookie-primary:hover {
  background: #ddd6fe;
}

.qxsint-cookie-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
}

.qxsint-cookie-secondary:hover {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.5);
}

@media (max-width: 640px) {
  .qxsint-auth-card {
    padding: 21px 18px;
    border-radius: 18px;
  }

  .qxsint-auth-head h2 {
    font-size: 18px;
  }

  .qxsint-cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .qxsint-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
