.fx-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #020713c9;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.fx-auth-backdrop[hidden] { display: none; }

.fx-auth-card {
  width: min(470px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #111b2b;
  color: #f3f6fc;
  border: 1px solid #3b4860;
  border-radius: 20px;
  box-shadow: 0 30px 120px #0009;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

.fx-auth-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 15px; border-bottom: 1px solid #283247; }
.fx-auth-head h2 { margin: 0; font-size: 22px; }
.fx-auth-close { border: 0; border-radius: 50%; background: #253044; color: #b9c5d8; font-size: 22px; width: 34px; height: 34px; cursor: pointer; }
.fx-auth-body { padding: 22px 26px 26px; }
.fx-auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid #283247; margin-bottom: 22px; }
.fx-auth-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; color: #9eaac0; padding: 9px 0; cursor: pointer; }
.fx-auth-tabs button.active { color: #fff; border-color: #35ccf4; }
.fx-auth-field { margin: 0 0 16px; }
.fx-auth-field label { display: block; color: #c7d2e5; font-size: 14px; margin-bottom: 6px; }
.fx-auth-field input { box-sizing: border-box; width: 100%; background: #0b1321; border: 1px solid #283247; border-radius: 10px; padding: 12px 13px; color: #f3f6fc; }
.fx-auth-row { display: flex; gap: 8px; }
.fx-auth-row input { min-width: 0; }
.fx-auth-button { border: 0; border-radius: 10px; padding: 12px 17px; cursor: pointer; font-weight: 600; }
.fx-auth-button.primary { background: #35ccf4; color: #051520; }
.fx-auth-button.secondary { background: #1b2639; color: #dbe8f7; border: 1px solid #344158; }
.fx-auth-button.full { width: 100%; }
.fx-auth-button:disabled { opacity: .55; cursor: not-allowed; }
.fx-auth-hint, .fx-auth-links { font-size: 12px; color: #9eaac0; }
.fx-auth-message { min-height: 22px; font-size: 13px; margin: 8px 0; color: #ff929f; }
.fx-auth-message.success { color: #62d5b0; }
.fx-auth-links { text-align: center; margin-top: 17px; font-size: 14px; }
.fx-auth-links button { border: 0; background: none; color: #35ccf4; cursor: pointer; padding: 0; }
.fx-auth-agreement { display: flex; gap: 8px; color: #9eaac0; font-size: 12px; margin: 17px 0; align-items: flex-start; }
.fx-auth-account { display: grid; gap: 12px; }
.fx-auth-panel { border: 1px solid #283247; border-radius: 12px; background: #0b1321; padding: 15px; }
.fx-auth-panel strong { display: block; font-size: 18px; }
.fx-auth-panel p { margin: 4px 0; color: #9eaac0; font-size: 13px; }
.fx-auth-card input:disabled { opacity: .7; }
.fx-auth-links button:disabled, .fx-auth-tabs button:disabled { opacity: .5; cursor: wait; }
.fx-auth-qr { text-align: center; }
.fx-auth-qr-image { min-height: 244px; display: grid; place-items: center; }
.fx-auth-qr-image img { width: 244px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; border-radius: 8px; }
.fx-auth-qr-image img[hidden] { display: none; }
.fx-auth-qr #fxAuthQrStatus { min-height: 26px; margin: 16px 0 8px; }
.fx-auth-qr #fxAuthQrCountdown { min-height: 20px; }
.fx-auth-tabs { gap: 16px; }
.fx-auth-tabs button { white-space: nowrap; }

@media (max-width: 560px) {
  .fx-auth-body { padding: 18px 20px 22px; }
  .fx-auth-head { padding: 18px 20px 13px; }
  .fx-auth-row { flex-direction: column; }
  .fx-auth-row .fx-auth-button { width: 100%; }
}
.fx-auth-agreement a, .fx-auth-agreement button { color: #35ccf4; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.fx-purchase-notes { width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid #3b4860; border-radius: 20px; background: #111b2b; color: #f3f6fc; font: 14px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fx-purchase-notes::backdrop { background: #020713bf; backdrop-filter: blur(6px); }
.fx-purchase-notes h3 { margin-bottom: 8px; color: #dce9f7; }
.fx-purchase-notes p { color: #a6b5cf; margin: 0 0 18px; }
.fx-purchase-notes a { color: #35ccf4; }
