html.aeviva-auth-resolving #register-gate {
  display: none !important;
}

#aeviva-resolver-retry {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #174ea6;
  padding: 9px 18px;
  font: 600 14px/1 system-ui, sans-serif;
  cursor: pointer;
}

html.aeviva-profile-required {
  background: #0b0f19 !important;
  color-scheme: dark;
}

html.aeviva-profile-required body {
  background:
    radial-gradient(circle at 50% 16%, rgba(16, 185, 129, 0.12), transparent 36rem),
    #0b0f19 !important;
  color: #f9fafb !important;
}

html.aeviva-profile-required #register-gate,
html.aeviva-profile-required #register-gate.hidden {
  background: transparent !important;
}

html.aeviva-profile-required .aeviva-sove-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid #334155;
  border-radius: 24px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.aeviva-profile-required .aeviva-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 17px;
  background: #34d399;
  color: #042f2e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 32px rgba(52, 211, 153, 0.2);
}

html.aeviva-profile-required .aeviva-kicker {
  margin: 0 0 8px;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

html.aeviva-profile-required .aeviva-sove-card h1 {
  margin: 0 0 10px;
  color: #f9fafb;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

html.aeviva-profile-required .aeviva-auth-copy {
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

html.aeviva-profile-required #aeviva-profile-fields,
html.aeviva-profile-required #aeviva-profile-fields[hidden] {
  display: block !important;
  order: 6;
}

html.aeviva-profile-required #aeviva-profile-fields label {
  display: block;
  margin: 0 0 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

html.aeviva-profile-required #reg-birthyear {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #64748b;
  border-radius: 12px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 17px;
  line-height: 1.4;
  outline: none;
}

html.aeviva-profile-required #reg-birthyear::placeholder {
  color: #aebacc;
  opacity: 1;
}

html.aeviva-profile-required #reg-birthyear:focus-visible {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.22);
}

html.aeviva-profile-required #aeviva-profile-fields p {
  margin: 10px 0 20px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

html.aeviva-profile-required #btn-register.aeviva-secondary {
  order: 7;
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #34d399;
  border-radius: 12px;
  background: #34d399;
  color: #042f2e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.18);
}

html.aeviva-profile-required #btn-register.aeviva-secondary:hover {
  background: #6ee7b7;
}

html.aeviva-profile-required #btn-register.aeviva-secondary:focus-visible {
  outline: 3px solid #f9fafb;
  outline-offset: 3px;
}

html.aeviva-profile-required #btn-register.aeviva-secondary:active {
  transform: translateY(1px);
}

html.aeviva-profile-required .aeviva-trust {
  order: 8;
  margin: 20px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  html.aeviva-profile-required #register-gate,
  html.aeviva-profile-required #register-gate.hidden {
    padding: 16px !important;
  }

  html.aeviva-profile-required .aeviva-sove-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.aeviva-profile-required #btn-register.aeviva-secondary {
    transition: none;
  }
}

/* R9: consent is a sealed pre-app boundary. */
html.aeviva-consent-required {
  background: #0b0f19 !important;
  color-scheme: dark;
}

html.aeviva-consent-required body {
  margin: 0 !important;
  min-height: 100vh !important;
  padding: 0 !important;
  background: #0b0f19 !important;
}

html.aeviva-consent-required body > *:not(#consent-gate):not(#aeviva-public-legal-footer) {
  display: none !important;
}

html.aeviva-consent-required #consent-gate,
html.aeviva-consent-required #consent-gate.hidden {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: flex !important;
  visibility: visible !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: #0b0f19 !important;
}

html.aeviva-consent-required #aeviva-public-legal-footer {
  z-index: 2147483647 !important;
}

/* R9: use a deterministic optical search symbol instead of the tiny U+2315 glyph. */
.aeviva-uxr2-top [data-uxr2-search] {
  position: relative !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.aeviva-uxr2-top [data-uxr2-search]::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 14px;
  height: 14px;
  border: 2.25px solid #f8fafc;
  border-radius: 50%;
  box-sizing: border-box;
}

.aeviva-uxr2-top [data-uxr2-search]::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  width: 8px;
  height: 2.25px;
  border-radius: 999px;
  background: #f8fafc;
  transform: rotate(45deg);
  transform-origin: left center;
}

.aeviva-uxr2-top [data-uxr2-search]:focus-visible {
  outline: 2px solid #5eead4 !important;
  outline-offset: -2px !important;
}

@media (min-width: 681px) {
  #aeviva-account-menu-button {
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 10px 4px 5px !important;
    gap: 7px !important;
    border-color: #334155 !important;
    box-shadow: none !important;
    font-size: 13px !important;
  }

  #aeviva-account-menu-button .aeviva-account-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
}
