:root {
  --orbit-ink: #ffffff;
  --orbit-muted: #A0AEC0;
  --orbit-gold: #7bbce7;
  --orbit-gold-deep: #2f78e5;
  --orbit-gold-bright: #93ccf2;
  --orbit-on-gold: #224f6d;
  --orbit-line: rgba(123,188,231,0.22);
  --orbit-glass: linear-gradient(165deg, rgba(44,77,99,0.55), rgba(8,8,8,0.78));
  --orbit-glass-fill: rgba(44,77,99,0.72);
  --orbit-bg: #050505;
  --orbit-bg-mid: #070706;
  --orbit-bg-warm: #2c4d63;
  --orbit-nav: rgba(5,5,5, 0.92);
  --orbit-glow:
    radial-gradient(ellipse 130% 42% at 0% 8%, rgba(39,136,201, 0.2), transparent 58%),
    radial-gradient(circle at 86% -8%, rgba(39,136,201,0.16), transparent 40%),
    radial-gradient(circle at 8% 100%, rgba(39,136,201,0.06), transparent 34%),
    linear-gradient(180deg, #2c4d63 0%, #070706 46%, #050505 100%);
  --orbit-up: #3dd68c;
  --orbit-down: #ff6b7a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--orbit-ink);
}
/* Glacier Blue belongs to Crypto; Money keeps a black base with a restrained cyan glow. */
body[data-world="crypto"] {
  --orbit-bg: #000000;
  --orbit-bg-mid: #0b568b;
  --orbit-bg-warm: #114f99;
  --orbit-line: rgba(126,200,255, 0.28);
  --orbit-glass: linear-gradient(165deg, rgba(17,79,153, 0.42), rgba(0,0,0, 0.82));
  --orbit-glass-fill: rgba(7,31,65, 0.78);
  --orbit-glow:
    radial-gradient(ellipse 120% 48% at 50% -6%, rgba(24,152,244, 0.82), transparent 72%),
    radial-gradient(ellipse 110% 58% at 50% 42%, rgba(17,79,153, 0.72), transparent 78%),
    radial-gradient(ellipse 105% 42% at 50% 78%, rgba(11,86,139, 0.48), transparent 80%),
    linear-gradient(180deg, #1898f4 0%, #114f99 46%, #0b568b 72%, #000000 100%);
}
html[dir="rtl"], html[lang="ar"], html[dir="rtl"] body, html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body,
body[data-world],
body.money-mode,
body.crypto-mode {
  background: var(--orbit-glow);
  min-height: 100vh;
  color: var(--orbit-ink);
}
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: var(--orbit-glow);
  animation: money-wave 16s ease-in-out infinite alternate;
}
.app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  min-height: 100vh;
  padding: calc(12px + env(safe-area-inset-top)) 18px calc(210px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  overflow-x: clip;
}
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; padding-inline-end: 46px; }
.worlds { display: flex; gap: 22px; min-width: 0; }
.worlds button {
  background: none; border: 0; color: rgba(244,247,251,0.55);
  font-size: 15px; font-weight: 650; letter-spacing: 0.08em;
  padding: 8px 0 10px; cursor: pointer; position: relative;
}
.worlds button.active { color: #f4f7fb; }
.worlds button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--orbit-gold), #7bbce7);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(123,188,231, 0.6);
}
.tools { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; min-width: 0; padding-inline-end: 42px; }
.lang-slot { position: absolute; z-index: 6; top: 6px; inset-inline-end: 0; }
.lang-menu {
  position: absolute; z-index: 80; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 168px; display: grid; gap: 2px; padding: 6px;
  border-radius: 12px; background: rgba(44,77,99, 0.98);
  border: 1px solid rgba(123,188,231, 0.22);
}
.lang-menu button {
  background: none; border: 0; color: var(--orbit-ink); text-align: start;
  min-height: 40px; padding: 8px 10px; cursor: pointer; border-radius: 8px;
}
#header-sign-out {
  position: relative; z-index: 2; width: auto; min-width: 76px; height: 36px;
  padding: 0 10px; white-space: nowrap; border-radius: 18px;
}
#header-notices { position: relative; }
.notice-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #7bbce7; color: var(--orbit-on-gold); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.notice-count.hidden { display: none; }
.ghost {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(123,188,231, 0.25);
  background: rgba(44,77,99, 0.45);
  color: var(--orbit-ink); cursor: pointer; font-size: 14px;
  display: grid; place-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.ghost:hover { border-color: rgba(123,188,231,0.5); background: rgba(43,77,100, 0.6); }
@media (max-width: 420px) {
  .worlds { gap: 12px; }
  .worlds button { font-size: 13px; letter-spacing: 0.04em; }
  .tools { gap: 4px; }
  .ghost { width: 32px; height: 32px; }
}
.ghost.menu { font-size: 16px; }
.flow { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.kicker { font-size: 12px; color: #A0AEC0; letter-spacing: 0.04em; }
h1 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -0.02em; }
.lead { margin: 4px 0 10px; color: #A0AEC0; font-size: 15px; }
.balance-line { display: grid; gap: 2px; margin-bottom: 6px; }
.sub { font-size: 12px; color: #A0AEC0; }
.balance { color: #FFFFFF; font-size: 34px; font-weight: 650; letter-spacing: -0.02em; }
.hint { font-size: 12px; color: #A0AEC0; }
.chart { width: 100%; height: 160px; margin: 8px 0 4px; }
.chart path:last-child { filter: drop-shadow(0 0 7px rgba(24,152,244,0.42)); }
.periods { display: flex; gap: 8px; margin-top: 4px; }
.periods button {
  background: none; border: 0; color: rgba(172,204,225, 0.6);
  font-size: 12px; padding: 6px 8px; cursor: pointer; border-radius: 12px;
}
.periods button.active {
  color: #bde7ff;
  background: rgba(47,120,229,0.14);
  border: 1px solid rgba(130,201,245,0.55);
  box-shadow: 0 0 12px rgba(47,120,229,0.22);
}
.empty {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: 12px; color: rgba(172,204,225,0.8);
  padding: 40px 10px;
}
.nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: flex; justify-content: space-between; gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  margin: 0;
  border-top: 1px solid rgba(39,136,201, 0.38);
  background: var(--orbit-nav);
}
.nav button {
  flex: 1; background: none; border: 0; color: rgba(172,204,225, 0.55);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; cursor: pointer; font-size: 10px; font-weight: 500;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav button:hover { color: rgba(123,188,231,0.85); background: rgba(123,188,231,0.06); }
.nav button.active { color: #82c9f5; }
.nav .ico { font-size: 18px; line-height: 1; }
.nav-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.nav-mark .ico, .nav-symbol {
  grid-area: 1 / 1;
  transition: opacity 350ms ease, transform 350ms ease, filter 350ms ease;
}
.nav-symbol {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 0 rgba(39,136,201, 0));
}
.nav button.active .nav-mark:has(.nav-symbol) .ico {
  opacity: 0;
  transform: scale(0.82);
}
.nav button.active .nav-symbol {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 8px rgba(39,136,201, 0.9)) drop-shadow(0 0 2px rgba(140,209,255, 0.55));
}
@media (prefers-reduced-motion: reduce) {
  .nav-mark .ico, .nav-symbol { transition: none; }
}
.overlay {
  position: absolute; inset: 60px 12px auto;
  background: rgba(44,77,99, 0.92); border: 1px solid rgba(123,188,231, 0.18);
  border-radius: 16px; padding: 14px; backdrop-filter: blur(12px); z-index: 5;
}
.overlayHead { display: flex; justify-content: space-between; align-items: center; }
.close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.menuItem-signOut {
  margin-top: 12px;
  color: #9ad0f3 !important;
  border: 1px solid rgba(154,208,243, 0.45);
  font-weight: 600;
}
.profile-sign-out {
  margin-top: 16px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(123,188,231, 0.25), rgba(44,77,99, 0.6));
  border: 1px solid rgba(123,188,231, 0.55);
  color: #9ad0f3;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.menuItem {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--orbit-ink); padding: 12px 4px; cursor: pointer; font-size: 14px;
}
.hidden { display: none; }
.lang-menu.hidden { display: none; }

.ai-fab {
  position: relative;
  z-index: 2;
  flex: 0 0 40px;
  top: auto;
  bottom: auto;
  inset: auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(39,136,201,.5), rgba(8,8,12,.9));
  border: 1.5px solid rgba(39,136,201,.75);
  box-shadow: 0 0 16px rgba(39,136,201,.35);
  text-decoration: none;
}
.ai-fab img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }

.slogan, .founding-quote {
  margin: 6px 4px 2px;
  padding: 5px 8px;
  font-family: Inter, "Segoe UI", "Noto Naskh Arabic", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  color: #7bbce7;
  border-top: 1px solid rgba(123,188,231,0.28);
  border-bottom: 1px solid rgba(176,176,176,0.28);
  unicode-bidi: isolate;
}
.founding-quote[lang="ar"] {
  font-family: "Noto Naskh Arabic", Amiri, serif;
  font-size: 13.5px;
  line-height: 1.4;
}
.founding-quote .qmark {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 500;
  unicode-bidi: isolate;
  direction: ltr;
}
.atlas-line {
  margin: 0 0 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(123,188,231,0.55);
}
.views { display: grid; gap: 14px; padding-top: 6px; align-content: start; }
.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(123,188,231,0.08);
}
.account-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 4px 2px 12px; }
.account-actions .row { flex-basis: 100%; }
.account-actions select { min-height: 30px; padding: 2px 8px; color: #bde7ff; background: #0a1422; border: 1px solid rgba(130,201,245,0.28); border-radius: 8px; }
.account-actions .action { min-height: 30px; margin: 0; padding: 2px 8px; border: 0; background: transparent; font-size: 13px; }
.account-list .account-row {
  display: flex;
  align-items: center;
  height: 60px;
  min-height: 56px;
  max-height: 64px;
  padding: 0 2px;
  margin: 0;
  box-sizing: border-box;
}
.account-list .account-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.account-list .account-row .name { font-size: 15px; line-height: 1.15; white-space: nowrap; }
.account-list .account-row .meta {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: end;
}
.row .name { font-size: 15px; font-weight: 500; }
.row .meta { font-size: 12px; color: #A0AEC0; margin-top: 2px; }
.form-line { display: grid; gap: 8px; margin-top: 8px; }
.form-line input, .form-line select {
  min-height: 46px; border-radius: 12px;
  border: 1px solid rgba(123,188,231,0.18);
  background: rgba(44,77,99,0.35); color: #f4f7fb; padding: 0 12px; font-size: 15px;
}
.action {
  margin-top: 6px; min-height: 46px; border-radius: 14px;
  border: 1px solid rgba(130,201,245,0.45);
  background: rgba(10,20,34,0.92); color: #bde7ff;
  font-weight: 650; cursor: pointer;
}
.menu-slogan {
  margin: 14px 4px 6px; font-size: 12px; letter-spacing: 0.03em;
  color: rgba(123,188,231,0.75); text-align: center;
}

.symbol-strip {
  display: flex; justify-content: center; gap: 18px;
  padding: 14px 0 6px;
  margin-top: auto;
}
.symbol-strip img {
  width: 28px; height: 28px; object-fit: contain; opacity: 0.45;
  filter: drop-shadow(0 0 4px rgba(123,188,231,0.2));
}

@media (max-width: 360px) {
  .app { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 26px; }
  .balance { color: #FFFFFF; font-size: 28px; }
  .worlds { gap: 14px; }
  .worlds button { font-size: 13px; }
  .nav button { font-size: 9px; }
  .nav-mark, .nav-symbol { width: 32px; height: 32px; }
  .symbol-strip { gap: 14px; }
  .symbol-strip img { width: 24px; height: 24px; }
}
@media (min-width: 480px) {
  .app { padding-top: calc(20px + env(safe-area-inset-top)); }
  .chart { height: 180px; }
}
@media (min-height: 800px) {
  .flow { gap: 10px; }
  .chart { height: 190px; }
}
@supports (padding: max(0px)) {
  .app { padding-bottom: max(180px, calc(164px + env(safe-area-inset-bottom, 0px))); }
}

/* One shared Money palette on every world and section. */
body[data-world] .app { background: transparent; }
@keyframes money-wave {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -28px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}
.money-shell{position:relative;background:radial-gradient(circle at 86% 0%,rgba(77,157,210,.18),transparent 34%),linear-gradient(160deg,#090909 0%,#2c4d63 48%,#050505 100%);border-radius:0}.money-shell .money-panel{margin:18px 0;padding:18px;border:1px solid rgba(107,174,218,.28);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(82,163,217,.06));box-shadow:0 14px 34px rgba(0,0,0,.2)}.money-shell .money-panel h2{margin:0 0 12px;color:#91cbf1;font-size:15px;letter-spacing:.04em}.money-shell .activity-panel{padding-bottom:8px}@media(max-width:640px){.money-shell .money-panel{padding:14px}.tier-tabs{gap:6px}.tier-tabs button{font-size:13px}}


/* Customer card controls stay available without dominating the cards view. */
.card-settings { display: grid; gap: 8px; margin-top: 10px; }
.card-settings:not(.is-open) > :not(.manage-card) { display: none; }
.manage-card { justify-self: start; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid rgba(123,188,231,.55); background: transparent; color: #93ccf2; font-weight: 600; cursor: pointer; }
.owner-reference-tag { display: inline-flex; align-items: center; margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; color: #0d598b; background: #8dcbf5; font-size: 11px; font-weight: 700; vertical-align: middle; }

.nav-symbol { display: block; width: 22px; height: 22px; object-fit: contain; }
[data-panel="ORBIT AI"] { display: none !important; }
.worlds img, .world-mark, .atlas-creed, .atlas-line { display: none !important; }
.top { flex-wrap: wrap; row-gap: 6px; padding-inline-end: 8px; }
.worlds { flex: 1 0 100%; }
.tools { width: 100%; justify-content: flex-end; padding-inline-end: 48px; }
.home-top {
  display: grid !important;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  grid-template-areas: "brand tabs menu";
  align-items: center;
  column-gap: 6px;
  row-gap: 0;
  padding: 2px 0;
  padding-inline-end: 0;
  min-height: 0;
}
.brand-lockup {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 38vw;
}
.brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  filter: drop-shadow(0 0 8px rgba(39,136,201,0.45));
}
.brand-name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #9ecfef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-top .worlds {
  grid-area: tabs;
  justify-self: center;
  flex: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 0.5px solid rgba(123,188,231,0.2);
  background: rgba(255,255,255,0.04);
}
.home-top .worlds button {
  gap: 0;
  padding: 4px 8px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.home-top .worlds button.active { color: #9ecfef; background: linear-gradient(180deg, rgba(156,207,241,0.2), rgba(39,136,201,0.1)); }
.home-top .worlds button.active::after { display: none; }
.home-top .lang-slot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
  inset-inline-end: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
}
.home-top .tools {
  grid-area: menu;
  width: auto;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding-inline-end: 0;
}
.home-top .tools .ghost:not(#menu),
.home-top .ai-fab,
.ai-fab {
  display: none !important;
}
#header-notices[hidden] { display: none !important; }
.home-top #menu.avatar-menu,
.avatar-menu {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 0.5px solid rgba(123,188,231,0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(152,208,246,0.85), rgba(39,136,201,0.2) 42%, rgba(44,77,99,0.9));
  color: #9ecfef;
  display: grid;
  place-items: center;
  padding: 0;
}
.avatar-glyph {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: 0 7px 0 -3px currentColor;
}
.home-top .ghost {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 13px;
}
.home-top #lang {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: auto;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0.5px solid rgba(123,188,231,0.35);
  background: rgba(255,255,255,0.04);
  color: #7bbce7;
}
.balance-line .hint { display: none; }
body.money-mode .app,
body.crypto-mode .app { padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px)); }
.home-top .ai-fab,
.ai-fab {
  display: none !important;
}
.section-links { display: none !important; }
.worlds button { display: inline-flex; align-items: center; gap: 6px; }
.world-mark, .atlas-mark, .atlas-creed img {
  object-fit: cover;
  background: transparent;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(39,136,201, 0.72));
}
.world-mark { width: 22px; height: 22px; border-radius: 50%; }
.atlas-mark { width: 72px; height: 72px; margin: 8px 0; }
.atlas-creed { display: grid; gap: 16px; margin: 18px 0 4px; }
.atlas-creed article { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.atlas-creed img { width: 64px; height: 64px; border-radius: 16px; }
.atlas-creed h2 { margin: 0; font-size: 12px; letter-spacing: 0.16em; font-weight: 600; color: rgba(147,204,242, 0.82); }
.atlas-creed p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: #b0cbde; }
.orbit-seal { width: 42px; height: 42px; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 0 8px rgba(39,136,201,.65)); }
.pay-steps { display: grid; gap: 10px; }
.tx-screen { display: grid; gap: 10px; margin-top: 16px; }
.tx-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tx-tools { display: grid; gap: 8px; }
.tx-search {
  width: 100%; min-height: 40px; border-radius: 20px; border: 0;
  background: #1c1c1e; color: #f4f7fb; padding: 0 14px; font-size: 15px;
}
.tx-chips { display: flex; gap: 8px; overflow: auto; }
.tx-chip {
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  background: #2a2a2e; color: #f4f7fb; font-weight: 650; white-space: nowrap;
}
.tx-chip.active { background: var(--orbit-gold-deep); color: var(--orbit-on-gold); }
.tx-list { display: grid; gap: 0; }
.tx-day { margin: 16px 4px 8px; color: #f4f7fb; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tx-card { background: #1c1c1e; border-radius: 22px; padding: 4px 14px; }
.tx-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; }
.tx-card .tx-row + .tx-row { border-top: 1px solid rgba(255,255,255,0.06); }
.tx-row.denied { opacity: 0.55; }
.tx-mark {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #2c4d63; color: #f4f7fb; font-weight: 700;
}
.tx-badge {
  position: absolute; top: -2px; inset-inline-end: -2px; width: 16px; height: 16px;
  border-radius: 50%; background: #e23b3b; color: #fff; font-style: normal; font-size: 11px;
  display: grid; place-items: center;
}
.tx-copy { display: grid; min-width: 0; }
.tx-copy strong { font-size: 16px; font-weight: 700; }
.tx-copy span { color: var(--orbit-muted); font-size: 13px; }
.tx-amt { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.tx-amt sup { font-size: 0.62em; margin-inline-start: 1px; }
.tx-amt.out { color: #3c9ee0; }
.tx-amt.in { color: var(--orbit-gold-bright); }
.tx-amt.denied { color: rgba(60,158,224, 0.55); text-decoration: line-through; }

.app input, .app select, .app textarea, .pay-steps select, .bunq-select {
  width: 100%;
  min-height: 56px;
  margin: 8px 0;
  padding: 0 44px 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background-color: #1c1c1e;
  color: #f4f7fb;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.app select, .pay-steps select, .bunq-select {
  background-image: linear-gradient(45deg, transparent 50%, #f4f7fb 50%), linear-gradient(135deg, #f4f7fb 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.app input::placeholder, .app textarea::placeholder { color: rgba(244,247,251,.45); }
.bunq-top { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.avatar, .account-switch {
  border: 0;
  background: #1c1c1e;
  color: #f4f7fb;
  cursor: pointer;
}
.avatar { width: 40px; height: 40px; border-radius: 50%; font-weight: 700; }
.account-switch { min-height: 40px; border-radius: 999px; padding: 0 16px; font-weight: 700; }
.home-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 8px; }
.home-pills button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1c1c1e;
  color: #f4f7fb;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.home-pills button:first-child { background: #101010; color: #FFFFFF; }
.is-placeholder { display: none !important; }
.flow-title { margin: 4px 0 8px; font-size: 28px; }
.address-book { display: grid; gap: 8px; }
.address-person {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.address-person strong, .address-person span, .address-person small { display: block; }
.address-person small, .address-person span { color: rgba(244,247,251,.62); font-size: 13px; }
.address-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #2c4d63; color: #f4f7fb; font-weight: 700;
}
.portrait-wrap { width: 100%; max-width: 100%; align-self: start; overflow: hidden; }
.portrait-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 14% 10px;
  gap: 12px;
  scrollbar-width: none;
}
.portrait-track::-webkit-scrollbar { display: none; }
.portrait-slide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.portrait-wrap { display: grid; justify-items: center; }
.portrait-slide { display: flex; justify-content: center; }
.portrait-card {
  width: min(46vw, 150px);
  height: auto;
  aspect-ratio: 0.63 / 1;
  min-height: 0;
  border-radius: 24px;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #aecce0;
  border: 0.5px solid rgba(123,188,231,0.28);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(156,207,241,0.12);
}
.portrait-card img { width: 96px; height: auto; max-height: 42px; object-fit: contain; align-self: flex-start; }
.portrait-card strong { font-size: 22px; letter-spacing: .08em; }
.tone-blue { background: linear-gradient(160deg, #2f6bff 0%, #1d4ed8 55%, #0b1d4a 100%); }
.tone-green { background: linear-gradient(160deg, #1f8a4c 0%, #146c3a 60%, #08331c 100%); }
.tone-black { background: linear-gradient(160deg, #2a2a2a 0%, #111 55%, #050505 100%); border: 1px solid rgba(39,136,201,.45); }
.tone-crypto { background: linear-gradient(155deg, #1898f4 0%, #114f99 46%, #0b568b 72%, #000000 100%); color: #aecce0; }
.card-tone-name { font-size: 15px; letter-spacing: 0.04em; font-weight: 600; }
.add-card {
  background: #1c1c1e;
  color: #f4f7fb;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.portrait-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.portrait-dot { width: 7px; height: 7px; border: 0; border-radius: 50%; background: rgba(255,255,255,.28); padding: 0; }
.portrait-dot[aria-current="true"] { background: #f4f7fb; }
.card-panel, .card-settings { margin-top: 8px; }
.card-panel-head, .card-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.card-line span { color: rgba(244,247,251,.62); }
.gear, .show-pan { border: 0; background: transparent; color: #f4f7fb; cursor: pointer; font: inherit; }
.card-settings { display: none; }
.card-settings.is-open { display: block; }
.card-blocked {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #2c4d63;
  color: #a1cfed;
}
.card-blocked h2 { margin: 0 0 8px; font-size: 22px; }
.empty-state { padding: 28px 8px 12px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: rgba(244,247,251,.68); }
.customer-line { display: flex; align-items: center; gap: 8px; }
.customer-line .row { flex: 1; }
.history-list { display: grid; gap: 10px; margin-top: 12px; }
.history-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.history-item time, .history-item p { display: block; color: rgba(244,247,251,.68); }
@media (max-width: 480px) {
  .chart { height: 108px; }
  .founding-quote {
    margin: 4px 2px 0;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Luxury Pay / Add Money — frosted glass */
.pay-option { display: none; }
.stripe-card-field {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
}
.pay-reference {
  margin: 2px 2px 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(123,188,231,0.62);
}
.pay-error { color: #ff9b9b !important; }
.pay-now:disabled { opacity: 0.55; cursor: default; }
.pay-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #7bbce7; }

.motto-footer,
#motto-footer {
  position: fixed;
  z-index: 39;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  bottom: calc(var(--orbit-nav-clear, 90px) + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 4px 18px 6px;
  border: 0;
  background: transparent;
  text-align: center;
  pointer-events: none;
}
.motto-footer .motto-ar,
.motto-footer .founding-quote {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Noto Naskh Arabic", Amiri, serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: rgba(123,188,231,0.28);
}
.motto-footer .qbody {
  display: inline-block;
  direction: rtl;
  unicode-bidi: isolate;
}
.motto-footer .motto-line {
  margin: 1px 0 0;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(123,188,231,0.2);
}
.motto-footer .qmark,
.founding-quote .qmark {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 500;
  unicode-bidi: isolate;
  direction: ltr;
}

.pay-form {
  display: grid;
  gap: 10px;
  padding: 4px 0 80px;
}
.pay-field { display: grid; gap: 3px; }
.pay-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(123,188,231,0.62);
}
.pay-glass {
  border-radius: 16px;
  border: 0.5px solid rgba(123,188,231,0.2);
  background: linear-gradient(165deg, rgba(44,77,99,0.5), rgba(8,8,8,0.7));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(156,207,241,0.07);
  overflow: hidden;
}
.pay-glass .pay-field { padding: 8px 14px 9px; }
.pay-stack .pay-field + .pay-field {
  border-top: 0.5px solid rgba(123,188,231,0.14);
}
.pay-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.pay-split .pay-field + .pay-field {
  border-inline-start: 0.5px solid rgba(123,188,231,0.14);
}
.pay-form input,
.pay-form select,
.pay-form textarea,
.pay-field input,
.pay-field select,
.pay-field textarea,
.pay-glass input,
.pay-glass select {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #accce1;
  padding: 2px 0 4px;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}
.pay-form input:focus,
.pay-form select:focus,
.pay-glass input:focus,
.pay-glass select:focus {
  outline: none;
}
.pay-source { padding: 0; }
.pay-category { padding: 0; }

.action.pay-submit,
.action.pay-now,
.pay-submit,
.pay-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  height: 46px;
  margin: 6px 0 0;
  padding: 0 16px;
  direction: ltr;
  unicode-bidi: isolate;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9cd0f2 0%, #5aa5d7 46%, #3a86b8 100%);
  color: #224f6d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(58,134,184,0.28), inset 0 1px 0 rgba(255,255,255,0.38);
  text-decoration: none;
}

.pay-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: 0.5px solid rgba(123,188,231,0.2);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.pay-switch-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(156,207,241,0.22), rgba(39,136,201,0.12));
  border: 0.5px solid rgba(123,188,231,0.32);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.28s ease;
  pointer-events: none;
}
html[dir="rtl"] .pay-switch-indicator { left: auto; right: 3px; }
.pay-switch-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  color: rgba(244,247,251,0.58);
  min-height: 36px;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  direction: ltr;
  unicode-bidi: isolate;
}
.pay-switch-btn.active { color: #9ecff0; }
.pay-pane { display: grid; gap: 10px; }
.pay-brands {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.pay-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 0.5px solid rgba(123,188,231,0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(158,207,239,0.8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-card-slot { padding: 6px 14px 8px; }
.pay-bank-card {
  display: grid;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(123,188,231,0.2);
  background: linear-gradient(165deg, rgba(44,77,99,0.5), rgba(8,8,8,0.7));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(156,207,241,0.07);
}
.pay-bank-text { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(244,247,251,0.86); }
.pay-bank-ref { display: grid; gap: 3px; }
.pay-bank-ref span { font-size: 10px; letter-spacing: 0.08em; color: rgba(123,188,231,0.58); text-transform: uppercase; }
.pay-bank-ref strong { font-size: 14px; font-weight: 650; color: rgba(123,188,231,0.9); word-break: break-all; }

body[data-section="pay"] .flow { padding-top: 8px; }
body[data-section="pay"] #worldLabel { display: none; }
body[data-section="pay"] h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 2px 0 10px;
}
body[data-section="pay"] .pay-submit,
body[data-section="pay"] .action.pay-submit,
body[data-section="pay"] .action.pay-now { margin-bottom: 0; }


/* t139 overhaul: sphere, sheets, unified colour */
.orbit-sphere-stand {
  position: fixed;
  z-index: 37;
  right: 18px;
  left: auto;
  bottom: max(108px, 22vh);
  display: grid;
  place-items: center;
  width: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
}
html[dir="rtl"] .orbit-sphere-stand {
  right: auto;
  left: 16px;
}
.orbit-sphere-stand img {
  width: 52px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(39,136,201,0.45));
  pointer-events: none;
}
.home-top .ai-fab,
.ai-fab {
  display: none !important;
}
.ai-fab img { display: none !important; }

.orbit-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.sheet-open .orbit-sheet-backdrop { display: block; }
body.sheet-open #overview { display: block; }
body.sheet-open #money-views {
  display: block;
  position: fixed;
  z-index: 46;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(480px, 100%);
  max-height: min(calc(86vh - 64px), 696px);
  overflow: auto;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(126,200,255,0.18);
  border-bottom: 0;
  background: radial-gradient(ellipse 120% 28% at 50% 0%, rgba(24,152,244,0.10), transparent 76%), linear-gradient(180deg, #101010 0%, #080808 100%);
  box-shadow: 0 -20px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(126,200,255,0.08);
}
body.sheet-open #money-views::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: rgba(126,200,255,0.55);
}
body.sheet-open .flow > #heading,
body.sheet-open .flow > #worldLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.sheet-open .flow > #backBar {
  position: fixed;
  z-index: 48;
  top: calc(max(14vh, calc(100vh - 760px)) + 14px);
  right: max(18px, calc(50% - 222px));
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  border: 1px solid rgba(126,200,255,0.32);
  border-radius: 50%;
  background: rgba(4,14,27,0.96);
  color: #bde7ff;
  box-shadow: 0 0 18px rgba(24,152,244,0.16);
  font-size: 19px;
}
body.sheet-open .nav { display: flex !important; z-index: 47; }


.trade-form, .crypto-book { display: grid; gap: 10px; padding-bottom: 24px; }
.trade-quote, .crypto-source {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(123,188,231,0.8);
}
.trade-status { margin: 0; font-size: 12.5px; color: var(--orbit-muted); }
.trade-status[data-live="true"] { color: var(--orbit-up); }


/* Active home and market navigation use the ordered approved symbols. */
.nav-symbol { display: block; }
.card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.card-actions .card-action,
.card-actions button {
  margin: 0;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 0.5px solid rgba(123,188,231,0.22);
  background: rgba(255,255,255,0.04);
  color: #9ecfef;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.request-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 16px 12px 14px;
  border-radius: 18px;
  border: 0.5px solid rgba(123,188,231,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.request-qr-mark {
  width: 140px;
  height: 140px;
}
.request-qr-mark svg { width: 100%; height: 100%; display: block; border-radius: 8px; }
.trade-receipt {
  margin: 12px 0 8px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 0.5px solid rgba(123,188,231,0.45);
  background:
    radial-gradient(circle at 90% 8%, rgba(123,188,231,0.2), transparent 40%),
    linear-gradient(160deg, rgba(44,77,99,0.96), rgba(8,8,8,0.96));
}
.trade-receipt h2 { margin: 0 0 10px; font-size: 20px; color: #9ecfef; }
.account-sheet {
  position: fixed;
  z-index: 60;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  inset-block-start: calc(74px + env(safe-area-inset-top, 0px));
  inset-block-end: auto;
  left: auto;
  right: auto;
  transform: none;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(123,188,231,0.2);
  border-inline-end: 1px solid rgba(123,188,231,0.22);
  border-radius: 14px;
  background: #05070B;
  box-shadow: 0 18px 48px rgba(0,0,0,0.68);
}
.account-sheet-head { position: sticky; top: -16px; z-index: 1; padding-top: 4px; background: #05070B; }
.account-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  border: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.account-open .account-sheet-backdrop { display: block; }
#menu { position: relative; z-index: 1000; }
.account-sheet.hidden { display: none; }
.account-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.account-sheet-head strong {
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #9ecfef;
}
.account-sheet-body { display: grid; gap: 8px; }
.account-sheet-body .menuItem,
.account-sheet-body button {
  min-height: 44px;
  border-radius: 14px;
  border: 0.5px solid rgba(123,188,231,0.16);
  background: rgba(255,255,255,0.04);
  color: #f4f7fb;
  text-align: start;
  padding: 0 14px;
}
.account-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.account-langs button {
  min-width: 48px;
  min-height: 36px !important;
  justify-content: center;
  text-align: center !important;
}
.account-langs button.active {
  color: #224f6d;
  background: linear-gradient(180deg, #9cd0f2, #5aa5d7 50%, #3a86b8);
  border-color: transparent;
}
.account-lang-label {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(123,188,231,0.7);
}
body.account-open { overflow: hidden; }
.show-pan {
  border: 0;
  background: transparent;
  color: #7bbce7;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

/* hide duplicate kicker — brand already lives in the header */
#worldLabel { display: none !important; }
body:not([data-section="home"]) h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 2px 0 8px;
}
.card-panel-head, .card-line { min-height: 36px; }
.card-actions { margin-top: 8px; margin-bottom: 16px; }
.card-actions .card-action,
.card-actions button { min-height: 36px; }
.card-blocked { padding: 14px 14px 16px; margin-top: 8px; margin-bottom: 12px; }
.card-blocked h2 { font-size: 18px; }
.card-panel { padding-bottom: 12px; }
.motto-footer, #motto-footer { padding-inline: 24px 108px; }

html[lang="ar"] .motto-footer .motto-ar,
html[dir="rtl"] .motto-footer .motto-ar,
html[dir="rtl"] .motto-footer .founding-quote,
.motto-footer[data-locale="ar"] .motto-ar {
  direction: rtl;
  unicode-bidi: isolate;
}


.balance.is-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}
.balance-skeleton {
  display: inline-block;
  width: 5.6em;
  height: 0.72em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123,188,231,0.08), rgba(123,188,231,0.22), rgba(123,188,231,0.08));
  background-size: 200% 100%;
  animation: orbit-skel 1.2s ease-in-out infinite;
}
@keyframes orbit-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .balance-skeleton { animation: none; background: rgba(123,188,231,0.16); }
}

/* ORBIT ATLAS compact mobile acceptance: preserve existing Crypto palette. */
@media (max-width: 480px) {
  body:not(.crypto-mode):not([data-world="crypto"]) {
    --orbit-bg:#080808;
    --orbit-bg-mid:#080808;
    --orbit-bg-warm:#101010;
    --orbit-glow:linear-gradient(180deg,#080808 0%,#101010 54%,#080808 100%);
    --orbit-glass:linear-gradient(165deg,rgba(22,22,22,.86),rgba(8,8,8,.95));
    --orbit-glass-fill:rgba(16,16,16,.88);
  }
  .app {padding:calc(8px + env(safe-area-inset-top)) 14px calc(88px + env(safe-area-inset-bottom));gap:6px;}
  body.money-mode .app,body.crypto-mode .app {padding-bottom:calc(88px + env(safe-area-inset-bottom));}
  .flow {padding-top:8px;gap:6px;min-height:0;}
  h1 {font-size:clamp(22px,5.8vw,24px);line-height:1.16;font-weight:600;}
  h2,.section-title {font-size:16px;line-height:1.25;}
  .lead {font-size:13px;margin:2px 0 6px;}
  .balance {color:#FFFFFF;font-size:clamp(28px,7.5vw,32px);}
  .kicker,.sub,.hint {font-size:11px;}
  .chart {height:118px;margin:4px 0;}
  .views {gap:10px;padding-top:3px;}
  .row {padding:9px 0;}
  .account-list .account-row {height:50px;min-height:48px;max-height:52px;}
  .state-block {padding:8px 2px;margin:4px 0;}
  .ghost {width:34px;height:34px;flex-shrink:0;}
  .top {gap:6px;padding-top:3px;}
  .tools {gap:4px;}
  .worlds {gap:12px;}
  .worlds button {font-size:12px;padding:7px 0;}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea {font-size:13px;max-width:100%;}
  .form-line input,.form-line select,.form-line button {min-height:44px;}
  .nav {min-height:56px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));}
  .nav button {font-size:10px;gap:2px;padding:4px 2px;min-width:0;}
  .nav .ico {font-size:17px;}
  .nav-mark {width:30px;height:30px;}
  .nav-symbol {width:29px;height:29px;filter:none;}
  .nav button.active .nav-symbol {filter:none;}
  .ai-fab {width:40px;height:40px;flex-basis:40px;box-shadow:none;}
  .slogan,.founding-quote {font-size:12px;margin:4px 2px 0;padding:4px 6px;}
}

/* PAY MOBILE — compact transfer form without changing transfer handlers. */
@media (max-width: 480px) {
  body[data-section="pay"] .flow { padding-top: 2px; gap: 6px; min-height: 0; }
  body[data-section="pay"] .pay-form {
    gap: 8px;
    padding: 0 0 16px;
    align-content: start;
    min-height: 0;
  }
  body[data-section="pay"] .pay-pane { gap: 8px; align-content: start; min-height: 0; }
  body[data-section="pay"] .pay-glass {
    border-radius: 12px;
    background: linear-gradient(165deg,rgba(20,20,20,.96),rgba(8,8,8,.98));
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
  }
  body[data-section="pay"] .pay-glass .pay-field {
    padding: 7px 12px 6px;
    gap: 2px;
    min-height: 0;
    align-content: start;
  }
  body[data-section="pay"] .pay-field label {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .075em;
  }
  body[data-section="pay"] .pay-form input,
  body[data-section="pay"] .pay-form select,
  body[data-section="pay"] .pay-form textarea,
  body[data-section="pay"] .pay-field input,
  body[data-section="pay"] .pay-field select,
  body[data-section="pay"] .pay-field textarea,
  body[data-section="pay"] .pay-glass input,
  body[data-section="pay"] .pay-glass select {
    min-height: 32px;
    height: 32px;
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
  }
  body[data-section="pay"] .pay-form textarea {
    height: auto;
    min-height: 36px;
    resize: vertical;
  }
  body[data-section="pay"] .pay-split {
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  }
  body[data-section="pay"] .pay-category select {
    min-height: 36px;
    height: 36px;
  }
  body[data-section="pay"] .pay-submit,
  body[data-section="pay"] .action.pay-submit,
  body[data-section="pay"] .action.pay-now {
    height: 46px;
    min-height: 46px;
    margin-top: 4px;
    padding-inline: 12px;
    font-size: 12px;
    box-shadow: 0 5px 14px rgba(58,134,184,.16);
  }
  body[data-section="pay"] .pay-source { margin: 0; padding: 0; }
  body[data-section="pay"] .pay-switch { margin: 0; }
  body[data-section="pay"] .motto-footer,
  body[data-section="pay"] #motto-footer {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 8px;
  }
}

/* Cross-page mobile density: Money UI only; layout and typography, no financial logic. */
@media (max-width:480px) {
  body:not(.crypto-mode):not([data-world="crypto"]) .views,
  body:not(.crypto-mode):not([data-world="crypto"]) .pay-pane,
  body:not(.crypto-mode):not([data-world="crypto"]) .card-settings {
    gap:8px;
    align-content:start;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .flow-title {
    font-size:23px;
    line-height:1.15;
    margin:2px 0 6px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .account-list .account-row {
    padding-block:6px;
    min-height:48px;
    height:auto;
    max-height:none;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .account-list .account-row .name {
    font-size:13px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .account-list .account-row .meta {
    font-size:11px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .card-panel,
  body:not(.crypto-mode):not([data-world="crypto"]) .card-settings {
    margin-top:6px;
    padding-bottom:8px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .card-panel-head,
  body:not(.crypto-mode):not([data-world="crypto"]) .card-line {
    min-height:38px;
    gap:8px;
    font-size:13px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .card-blocked {
    margin:6px 0;
    padding:10px 12px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .card-blocked h2 {
    font-size:16px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .form-line {
    gap:8px;
    margin-top:6px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .form-line input,
  body:not(.crypto-mode):not([data-world="crypto"]) .form-line select,
  body:not(.crypto-mode):not([data-world="crypto"]) .form-line button {
    min-height:44px;
    height:44px;
    font-size:13px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .account-switch {
    min-height:48px;
    font-size:13px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .account-sheet-body .menuItem,
  body:not(.crypto-mode):not([data-world="crypto"]) .account-sheet-body button {
    min-height:44px;
    font-size:13px;
  }
  body:not(.crypto-mode):not([data-world="crypto"]) .motto-footer,
  body:not(.crypto-mode):not([data-world="crypto"]) #motto-footer {
    margin-bottom:calc(64px + env(safe-area-inset-bottom));
  }
}

/* UI-02 follow-up: one original royal-black palette across every Money section.
   Scoped to Money only; card tier artwork, Crypto and financial logic remain intact. */
body.money-mode,
body[data-world="money"] {
  --orbit-bg: #080808;
  --orbit-bg-mid: #080808;
  --orbit-bg-warm: #101010;
  --orbit-glow: linear-gradient(180deg,#080808 0%,#101010 55%,#080808 100%);
  --orbit-glass: linear-gradient(165deg,rgba(20,20,20,.96),rgba(8,8,8,.98));
  --orbit-glass-fill: #101010;
  background: #080808;
}
body.money-mode .app,
body[data-world="money"] .app {
  background: transparent;
}
body.money-mode :is(.pay-glass,.account-switch,.account-sheet,.card-panel,.card-settings,.state-block),
body[data-world="money"] :is(.pay-glass,.account-switch,.account-sheet,.card-panel,.card-settings,.state-block) {
  background: linear-gradient(165deg,#151515,#090909);
  border-color: rgba(102,172,218,.18);
  box-shadow: none;
}
body.money-mode :is(input,select,textarea),
body[data-world="money"] :is(input,select,textarea) {
  background-color: #101010;
  color: #b2cbdc;
}
body.money-mode :is(.nav,.account-sheet-body),
body[data-world="money"] :is(.nav,.account-sheet-body) {
  background: #0b0b0b;
}
@media (max-width:480px) {
  body.money-mode :is(.pay-glass,.card-panel,.card-settings),
  body[data-world="money"] :is(.pay-glass,.card-panel,.card-settings) {
    border-radius: 12px;
  }
}

/* Pay visual correction: compact dimensions and neutral royal-black, all viewport sizes. */
body.money-mode .glow,body[data-world="money"] .glow {background:radial-gradient(ellipse 120% 40% at 50% 0%,rgba(24,152,244,.2),transparent 66%),radial-gradient(ellipse 90% 34% at 55% 14%,rgba(11,86,139,.14),transparent 78%),linear-gradient(180deg,#080808 0%,#050505 54%,#000000 100%);animation:none;}
body.money-mode .pay-form,body[data-world="money"] .pay-form {gap:10px;padding:0 0 18px;align-content:start;min-height:0;}
body.money-mode .pay-pane,body[data-world="money"] .pay-pane {gap:10px;min-height:0;}
body.money-mode .pay-glass,body[data-world="money"] .pay-glass {background:#101010;border:1px solid #161b22;border-radius:12px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
body.money-mode .pay-glass .pay-field,body[data-world="money"] .pay-glass .pay-field {padding:8px 12px;gap:3px;min-height:0;}
body.money-mode .pay-field label,body[data-world="money"] .pay-field label {font-size:11px;line-height:1.25;letter-spacing:.05em;}
body.money-mode .pay-form :is(input,select,textarea),body[data-world="money"] .pay-form :is(input,select,textarea) {height:36px;min-height:36px;padding:4px 0;font-size:14px;background:transparent;border-radius:0;}
body.money-mode .pay-form textarea,body[data-world="money"] .pay-form textarea {height:40px;min-height:40px;}
body.money-mode .pay-form .pay-submit,body[data-world="money"] .pay-form .pay-submit {min-height:46px;height:46px;margin:8px 0 0;font-size:13px;box-shadow:none;}
body.money-mode .pay-stack .pay-field + .pay-field,body[data-world="money"] .pay-stack .pay-field + .pay-field {border-top:1px solid #161b22;}
body.money-mode .pay-split .pay-field + .pay-field,body[data-world="money"] .pay-split .pay-field + .pay-field {border-inline-start:1px solid #161b22;}
@media(max-width:480px) {
 body.money-mode .pay-form,body[data-world="money"] .pay-form {padding-bottom:12px;gap:8px;}
 body.money-mode .pay-glass .pay-field,body[data-world="money"] .pay-glass .pay-field {padding:7px 10px;}
 body.money-mode .pay-form :is(input,select),body[data-world="money"] .pay-form :is(input,select) {height:36px;min-height:36px;}
}

/* Consistent neutral black Money surfaces; preserve Crypto and card artwork. */
body.money-mode,body[data-world="money"] {background:#080808!important;background-image:none!important;}
body.money-mode::before,body.money-mode::after,
body[data-world="money"]::before,body[data-world="money"]::after {background-image:none!important;}
body.money-mode .app,body[data-world="money"] .app {background:#080808!important;background-image:none!important;}
body.money-mode .pay-pane,body[data-world="money"] .pay-pane {background:#080808!important;background-image:none!important;}
body.money-mode .pay-glass,body[data-world="money"] .pay-glass {background:#111!important;background-image:none!important;border-color:#292929!important;box-shadow:none!important;}
body.money-mode .pay-glass .pay-field,body[data-world="money"] .pay-glass .pay-field {background:#111!important;background-image:none!important;}
body.money-mode .pay-form .pay-submit,body[data-world="money"] .pay-form .pay-submit {margin-top:8px!important;}

/* Full account menu remains accessible as a scrollable, refined panel. */
body.money-mode .account-sheet, body[data-world="money"] .account-sheet {
  max-height: min(92dvh, 920px);
  overflow-y: auto;
  background: linear-gradient(145deg, #0a1730 0%, #081329 58%, #071022 100%);
  border: 1px solid rgba(126,200,255,0.24);
  box-shadow: 0 16px 44px rgba(0,0,0,0.48), inset 0 1px 0 rgba(126,200,255,0.10);
}
.account-sheet-body .account-menu-links { display: grid; gap: 2px; }
.account-sheet-body .account-menu-links .menuItem { min-height: 42px; padding: 8px 10px; border-radius: 10px; }
.account-sheet-body .account-menu-links .menuItem:hover,
.account-sheet-body .account-menu-links .menuItem:focus-visible { background: rgba(126,200,255,0.08); color: #f4f7fb; }
.account-sheet-body .account-menu-links .menuItem-signOut { margin-top: 8px; }
.nav-symbol { filter: drop-shadow(0 0 7px rgba(24,152,244,0.58)); }
body.sheet-open .flow > #backBar:focus-visible { outline: 2px solid #82c9f5; outline-offset: 3px; }
/* ORBIT Money navigation and visual corrections. */
.home-top { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 48px auto; grid-template-areas: "menu brand lang" "tabs tabs tabs"; min-height: 88px; }
.home-top .brand-lockup { justify-self: center; max-width: none; }
.home-top .tools { justify-self: start; }
.home-top .lang-slot { position: relative; grid-area: lang; justify-self: end; inset: auto; z-index: 1000; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; margin: 0; padding: 0; pointer-events: auto; }
.home-top .worlds { grid-area: tabs; justify-self: center; }
.home-top #menu.avatar-menu, .avatar-menu { position: fixed; top: 1.5rem; left: 1rem; z-index: 1000; width: 48px; height: 48px; flex: 0 0 48px; border: 2px solid #2f78e5; background: #05070b; color: #bde7ff; box-shadow: 0 0 0 5px rgba(47,120,229,.14), 0 0 18px rgba(24,152,244,.2); }
.menu-hamburger { display: grid; gap: 4px; width: 19px; }
.menu-hamburger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.account-sheet, body.money-mode .account-sheet, body[data-world="money"] .account-sheet { position: fixed; z-index: 70; top: calc(72px + env(safe-area-inset-top, 0px)); right: auto; bottom: 0; left: 0; width: min(320px, 86vw); max-width: 320px; max-height: 100vh; height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); margin: 0; padding: 16px 14px calc(2rem + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border: 0; border-right: 1px solid rgba(47,120,229,.2); border-radius: 0; background: #05070b; box-shadow: 12px 0 36px rgba(0,0,0,.38); transform: translateX(-105%); transition: transform 240ms cubic-bezier(.2,.75,.25,1); }
.account-sheet::-webkit-scrollbar { display: none; }
body.account-open .account-sheet { transform: translateX(0); }
.account-sheet.hidden { display: none; }
.account-sheet-head { position: sticky; top: -16px; z-index: 2; min-height: 40px; margin: -4px 0 8px; padding: 4px 0; background: #05070b; }
.account-sheet-head strong { color: #f4f7fb; }
.account-sheet-head .close { width: 36px; height: 36px; border: 1px solid rgba(47,120,229,.2); border-radius: 50%; color: #f4f7fb; font-size: 24px; }
.account-sheet-body { display: block; }
.account-sheet-body .account-menu-links { display: grid; gap: 2px; }
.account-sheet-body .account-menu-links .menuItem { width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #edf2fa; text-align: left; font-size: 14px; }
.account-sheet-body .account-menu-links .menuItem:hover, .account-sheet-body .account-menu-links .menuItem:focus-visible { background: rgba(126,200,255,.08); color: #fff; }
.account-sheet-body .account-menu-links .menuItem-signOut { margin-top: 8px; border-top: 1px solid rgba(47,120,229,.25); border-radius: 0; color: #2f78e5 !important; }
.home-pills button, .home-pills button:first-child { border: 1px solid rgba(47,120,229,.3); background: #101010; color: #FFFFFF; box-shadow: none; }
.home-pills button:hover, .home-pills button:focus-visible { background: #171717; border-color: rgba(47,120,229,.48); }
.chart path:last-child { filter: drop-shadow(0 0 4px rgba(107,190,216,.18)); }
.motto-footer .motto-ar, .motto-footer .founding-quote { display: none !important; }
html[lang="ar"] .motto-footer .motto-line, html[dir="rtl"] .motto-footer .motto-line, .motto-footer[lang^="ar"] .motto-line { font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; direction: rtl; }
.motto-footer .motto-line { display: block !important; color: rgba(130,201,245,.88); font-family: Inter, "Segoe UI", sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .045em; line-height: 1.4; text-shadow: 0 0 12px rgba(24,152,244,.18); }
@media (prefers-reduced-motion: reduce) { .account-sheet { transition: none; } }

body.money-mode .glow, body[data-world="money"] .glow { background: radial-gradient(ellipse 120% 40% at 50% 0%, rgba(24,152,244,.08), transparent 66%), radial-gradient(ellipse 90% 34% at 55% 14%, rgba(11,86,139,.05), transparent 78%), linear-gradient(180deg,#080808 0%,#050505 54%,#000000 100%); animation:none; }

/* Ensure the section router can actually hide the slogan outside Home. */
.motto-footer[hidden], #motto-footer[hidden] { display: none !important; }

/* The slogan belongs to the Home section across both Money and Crypto routes. */
body:not([data-section="home"]) .motto-footer,
body:not([data-section="home"]) #motto-footer { display: none !important; }

/* The slogan is reserved for the Money Home landing page. */
body[data-world="crypto"] .motto-footer,
body[data-world="crypto"] #motto-footer { display: none !important; }

/* Money transfer submit controls use the same quiet dark hierarchy as home actions. */
body.money-mode .pay-form .pay-submit,
body[data-world="money"] .pay-form .pay-submit,
body.money-mode .pay-form .pay-now,
body[data-world="money"] .pay-form .pay-now {
  border: 1px solid rgba(126,200,255,0.28);
  background: #101010;
  color: #FFFFFF;
  box-shadow: none;
}
body.money-mode .pay-form .pay-submit:hover,
body[data-world="money"] .pay-form .pay-submit:hover,
body.money-mode .pay-form .pay-now:hover,
body[data-world="money"] .pay-form .pay-now:hover {
  background: #171717;
  border-color: rgba(126,200,255,0.42);
}

/* Cards controls: keep the entire control row above the fixed navigation. */
body[data-section="cards"] .app {
  padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
}
body[data-section="cards"] .portrait-wrap {
  overflow: visible;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
body[data-section="cards"] .card-panel {
  padding-bottom: 24px;
}
body[data-section="cards"] .card-actions {
  margin-bottom: 12px;
}
.card-settings.is-open {
  position: fixed;
  z-index: 46;
  left: max(14px, calc(50% - 226px));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  width: min(452px, calc(100vw - 28px));
  max-height: min(72vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 16px 22px;
  border: 1px solid rgba(126,200,255,0.24);
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #111820 0%, #080a0d 100%);
  box-shadow: 0 -18px 48px rgba(0,0,0,0.56), inset 0 1px 0 rgba(126,200,255,0.08);
}
.card-settings-head {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  margin: -18px -16px 4px;
  padding: 8px 16px;
  background: #101820;
  border-bottom: 1px solid rgba(126,200,255,0.16);
}
.card-settings-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(126,200,255,0.25);
  border-radius: 50%;
  background: #0a0d12;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 480px) {
  body[data-section="cards"] .app {
    padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .card-settings.is-open {
    left: 10px;
    width: calc(100vw - 20px);
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-height: min(72dvh, 620px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}



/* Money uses the supplied original background across Money screens only. */
body.money-mode,
body[data-world="money"] {
  background: #000 !important;
}
body.money-mode .glow,
body[data-world="money"] .glow {
  background-color: #000 !important;
  background-image: url("./assets/money-home-reference.jpeg") !important;
  background-position: center center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  animation: none !important;
}
body.money-mode .app,
body[data-world="money"] .app {
  background-color: transparent !important;
  background-image: none !important;
}

/* Cards mobile: compact the visual gap and rows so all four actions clear the fixed nav. */
@media (max-width: 480px) {
  body[data-section="cards"] .portrait-dots {
    margin-bottom: 0 !important;
  }
  body[data-section="cards"] .card-panel {
    margin-top: 0 !important;
    padding-bottom: 32px !important;
  }
  body[data-section="cards"] .card-panel-head,
  body[data-section="cards"] .card-line {
    min-height: 34px !important;
  }
  body[data-section="cards"] .card-actions {
    margin: 4px 0 8px !important;
  }
  body[data-section="cards"] .card-actions .card-action {
    min-height: 36px;
  }
}

/* Keep the world switch clear of header tools on narrow phones. */
.home-top .worlds { position: relative; z-index: 3; }
.home-top .worlds button { position: relative; z-index: 1; }
.home-top .tools { position: relative; z-index: 2; flex-wrap: nowrap; }
@media (max-width: 380px) {
  .home-top { column-gap: 6px; }
  .home-top .brand-name { font-size: 12px; letter-spacing: 0.04em; }
  .home-top .worlds button { padding: 6px 9px; letter-spacing: 0.05em; }
}

/* Approved drawer placement: physical right in both LTR and RTL. */
.account-sheet,
body.money-mode .account-sheet,
body[data-world="money"] .account-sheet {
  inset-inline-start: auto;
  inset-inline-end: auto;
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid rgba(47,120,229,.2);
  box-shadow: -12px 0 36px rgba(0,0,0,.38);
  transform: translateX(105%);
}
body.account-open .account-sheet { transform: translateX(0); }
html[dir="rtl"] .account-sheet-body .account-menu-links .menuItem { text-align: right; }

/* The fixed trigger mirrors the header grid in RTL so it cannot cover Language. */
html[dir="rtl"] .home-top #menu.avatar-menu { left: auto; right: 1rem; }
