/* RD NovaSphere global persistent Back control — compact and always visible on subpages */
.rdns-global-back{
  position:fixed;
  left:max(14px,env(safe-area-inset-left));
  top:calc(env(safe-area-inset-top, 0px) + 78px);
  bottom:auto;
  z-index:2147483000;
  display:inline-flex;align-items:center;justify-content:center;gap:.42rem;
  width:auto;min-width:0;min-height:40px;max-width:148px;
  padding:.56rem .78rem;
  border:1px solid rgba(255,255,255,.18);border-radius:999px;
  background:linear-gradient(135deg,rgba(5,14,32,.92),rgba(13,31,61,.86));
  color:#f7f9ff;text-decoration:none;
  font:700 13px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 8px 24px rgba(0,0,0,.26),0 0 18px rgba(103,214,255,.10);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease,opacity .18s ease;
}
.rdns-global-back:hover,.rdns-global-back:focus-visible{
  transform:translateY(-1px);border-color:rgba(255,211,102,.62);
  box-shadow:0 10px 28px rgba(0,0,0,.30),0 0 22px rgba(255,211,102,.14);
  outline:none;
}
.rdns-global-back .rdns-arrow{font-size:15px;line-height:1;flex:0 0 auto}

/* Phones: icon-sized control so it cannot cover a heading, paragraph or form field. */
@media(max-width:640px){
  .rdns-global-back{
    left:max(8px,env(safe-area-inset-left));
    top:calc(env(safe-area-inset-top, 0px) + 60px);
    width:38px;height:38px;min-width:38px;min-height:38px;max-width:38px;
    padding:0;gap:0;border-radius:50%;
    font-size:0;
    overflow:visible;
  }
  .rdns-global-back > span:not(.rdns-arrow){display:none!important}
  .rdns-global-back .rdns-arrow{font-size:18px;line-height:1}
}
@media(max-width:380px){
  .rdns-global-back{
    left:max(6px,env(safe-area-inset-left));
    top:calc(env(safe-area-inset-top, 0px) + 56px);
    width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;
  }
  .rdns-global-back .rdns-arrow{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.rdns-global-back{transition:none}}
