* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #121826;
  min-height: 100dvh;
}

.phone {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  width: 100%;
}

.app {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  min-height: min(860px, 100dvh);
  background: #f4f5f7;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.screen {
  min-height: 100%;
  padding: 22px clamp(14px, 4vw, 18px)
    calc(88px + env(safe-area-inset-bottom));
}

@media (max-width: 480px) {
  .phone {
    padding: 0;
    align-items: stretch;
  }

  .app {
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Desktop: a real full-width shell instead of a wider floating card.
   .side-panel carries branding (logged out) or navigation (logged in) —
   see renderSidePanel() in app.js — and .app becomes the flexible content
   pane filling the rest of the viewport. Below 900px this block doesn't
   apply at all, so mobile is untouched. */
.side-panel {
  display: none;
}

@media (min-width: 640px) {
  .app {
    max-width: 480px;
  }

  .nav {
    max-width: 480px;
  }
}

@media (min-width: 900px) {
  .phone {
    justify-content: stretch;
    align-items: stretch;
    padding: 0;
  }

  .side-panel {
    display: flex;
    flex-direction: column;
    width: 300px;
    flex-shrink: 0;
    height: 100dvh;
    position: sticky;
    top: 0;
    padding: 32px 24px;
    background: linear-gradient(160deg, #1a2a4d 0%, #0b1220 70%);
    color: #fff;
    box-sizing: border-box;
  }

  .app {
    flex: 1;
    width: auto;
    max-width: none;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #eef0f4;
    padding: 48px clamp(24px, 5vw, 64px);
    box-sizing: border-box;
  }

  /* .screen becomes an actual card sitting on the canvas above, instead of
     a form floating directly on a flat background — that contrast is what
     makes the surrounding space read as designed rather than empty. */
  .screen {
    width: 100%;
    max-width: 760px;
    padding: 40px clamp(28px, 4vw, 56px) 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .nav {
    display: none;
  }

  /* Desktop form language: rectangular, not pill-shaped — the mobile
     touch-target pills read as a transplanted phone UI at this width. */
  .btn {
    border-radius: 10px;
    padding: 12px 18px;
  }

  .field {
    border-radius: 10px;
  }

  .icon {
    background: transparent;
    color: #9ca3af;
    width: auto;
    font-size: 15px;
  }

  .card {
    border-radius: 14px;
  }

  .item {
    border-radius: 12px;
  }

  .brand .logo {
    border-radius: 14px;
  }

  /* Login/signup: "Floating Card" — no sidebar, a single vivid full-bleed
     gradient with the form adrift in it. Deliberately different structure
     from the sidebar-rail shell the rest of the app uses. */
  body.floating-auth .side-panel {
    display: none;
  }

  body.floating-auth .app {
    background: radial-gradient(circle at 30% 20%, #ff8a5c 0%, #ff3d6e 55%, #7c2a63 100%);
    align-items: center;
    padding: 40px;
  }

  body.floating-auth .screen {
    max-width: 440px;
    border: 0;
    box-shadow: 0 24px 60px rgba(124, 42, 99, 0.35);
  }

  /* Landing page: its own full-bleed shell, escaping the sidebar+card
     paradigm entirely rather than sitting inside it. */
  body.landing-page .side-panel {
    display: none;
  }

  body.landing-page .app {
    padding: 0;
    background: none;
    align-items: stretch;
    justify-content: stretch;
  }

  body.landing-page .screen {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: none;
  }
}

/* =====================================================================
   Landing page — desktop-only marketing page (see renderLanding() and
   isDesktopViewport() in app.js). Deliberately its own typography and
   visual language, not a reuse of the mobile app's .btn/.card/.field
   classes — every class here is lp-prefixed so nothing here can leak
   into or collide with the mobile screens' styling.
   ===================================================================== */
.landing {
  background: #170f14;
  color: #f5efe9;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  min-height: 100dvh;
  width: 100%;
}

.landing h1,
.landing h2,
.landing h3 {
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  margin: 0;
}

.lp-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.landing a {
  color: inherit;
}

.lp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 239, 233, 0.09);
}

.lp-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.lp-brand span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.lp-nav-links {
  display: flex;
  gap: 32px;
}

.lp-nav-links a {
  font-size: 14px;
  color: #b7a6ac;
  text-decoration: none;
  font-weight: 500;
}

.lp-nav-links a:hover {
  color: #f5efe9;
}

.lp-nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: #f5efe9;
  text-decoration: none;
  padding: 10px 6px;
}

.lp-btn-solid {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a3d, #ff3d6e);
  box-shadow: 0 8px 24px rgba(255, 61, 110, 0.28);
  display: inline-block;
}

.lp-btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.lp-hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

.lp-hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.35) 0%, rgba(255, 61, 110, 0.16) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.lp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb28c;
  background: rgba(255, 106, 61, 0.12);
  border: 1px solid rgba(255, 106, 61, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb28c;
  display: inline-block;
}

.lp-hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lp-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff6a3d, #ff3d6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-lede {
  margin: 22px 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: #b7a6ac;
  max-width: 46ch;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-hero-note {
  margin-top: 26px;
  font-size: 13px;
  color: #8c7d82;
}

.lp-receipt {
  background: #241823;
  border: 1px solid rgba(245, 239, 233, 0.09);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.lp-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.lp-receipt-head .lp-mono {
  font-size: 11px;
  color: #8c7d82;
  letter-spacing: 0.04em;
}

.lp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 0 4px rgba(51, 209, 122, 0.18);
  display: inline-block;
}

.lp-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 239, 233, 0.09);
  font-size: 14px;
}

.lp-receipt-row span:first-child {
  color: #b7a6ac;
}

.lp-receipt-row span:last-child {
  font-weight: 600;
}

.lp-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(245, 239, 233, 0.09);
}

.lp-receipt-total span:first-child {
  font-size: 13px;
  color: #b7a6ac;
}

.lp-receipt-total span:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  font-weight: 500;
}

.lp-receipt-status {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #33d17a;
}

.lp-networks {
  padding: 40px 0;
  border-top: 1px solid rgba(245, 239, 233, 0.09);
  border-bottom: 1px solid rgba(245, 239, 233, 0.09);
}

.lp-networks-row {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lp-networks-label {
  font-size: 12px;
  color: #8c7d82;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-network-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #241823;
  border: 1px solid rgba(245, 239, 233, 0.09);
  font-size: 13px;
  font-weight: 600;
}

.lp-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.lp-section {
  padding: 100px 0;
}

.lp-section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.lp-section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb28c;
  margin-bottom: 14px;
}

.lp-section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lp-section-head p {
  margin: 16px 0 0;
  color: #b7a6ac;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 50ch;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lp-step {
  background: #241823;
  border: 1px solid rgba(245, 239, 233, 0.09);
  border-radius: 18px;
  padding: 30px 26px;
}

.lp-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #8c7d82;
  margin-bottom: 22px;
}

.lp-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.lp-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #b7a6ac;
}

.lp-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245, 239, 233, 0.09);
  border: 1px solid rgba(245, 239, 233, 0.09);
  border-radius: 18px;
  overflow: hidden;
}

.lp-prop {
  background: #241823;
  padding: 30px 24px;
}

.lp-v-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  font-weight: 500;
  background: linear-gradient(90deg, #ff6a3d, #ff3d6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-v-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.lp-v-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: #8c7d82;
  line-height: 1.5;
}

.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lp-split h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.16;
  margin-bottom: 18px;
}

.lp-split p {
  color: #b7a6ac;
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 46ch;
}

.lp-split-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0 0 26px;
}

.lp-split-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: #f5efe9;
}

.lp-tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(51, 209, 122, 0.15);
  color: #33d17a;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-device-mock {
  background: #241823;
  border: 1px solid rgba(245, 239, 233, 0.09);
  border-radius: 22px;
  padding: 20px;
}

.lp-device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
}

.lp-device-row + .lp-device-row {
  border-top: 1px solid rgba(245, 239, 233, 0.09);
}

.lp-device-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.lp-dot2 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lp-device-amt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  color: #b7a6ac;
}

.lp-cta-wrap {
  padding: 0 32px 100px;
}

.lp-cta {
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  background: radial-gradient(circle at 30% 10%, rgba(255, 106, 61, 0.35), transparent 60%), #241823;
  border: 1px solid rgba(245, 239, 233, 0.09);
  max-width: 1180px;
  margin: 0 auto;
}

.lp-cta h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lp-cta p {
  color: #b7a6ac;
  font-size: 16px;
  margin-bottom: 34px;
}

.lp-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.lp-footer {
  border-top: 1px solid rgba(245, 239, 233, 0.09);
  padding: 48px 0;
}

.lp-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-foot-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: #8c7d82;
}

.lp-foot-links a {
  text-decoration: none;
}

.lp-foot-links a:hover {
  color: #f5efe9;
}

@media (max-width: 980px) {
  .lp-hero-grid,
  .lp-split {
    grid-template-columns: 1fr;
  }
  .lp-props {
    grid-template-columns: 1fr 1fr;
  }
  .lp-nav-links {
    display: none;
  }
}

.side-panel__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-panel__brand--center {
  flex-direction: column;
  text-align: center;
  margin-top: 20%;
  gap: 16px;
}

.side-panel__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.side-panel__logo--big {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.side-panel__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-panel__name {
  font-weight: 900;
  font-size: 18px;
}

.side-panel__name--big {
  font-size: 26px;
}

.side-panel__tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
  max-width: 240px;
}

.side-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
}

.side-nav-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.side-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side-nav-item.active {
  background: rgba(255, 106, 61, 0.18);
  color: #ff9a6d;
}

.side-panel__logout {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
}

.side-panel__logout:hover {
  background: rgba(255, 255, 255, 0.14);
}

.brand {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 18px;
}

.brand .logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.field {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 10px;
  min-width: 0;
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

.field input {
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  font-size: 12px;
}

.link {
  color: #c2410c;
  text-decoration: none;
  font-weight: 600;
}

.btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a3d, #ff3d6e);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111827;
  font-weight: 800;
}

.divider {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  margin: 14px 0 10px;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social {
  border: 0;
  border-radius: 999px;
  padding: 12px 12px;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
}

.social.google {
  background: #f97316;
}

.footer-row {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.toast {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, #ff3d6e);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

.h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wallet-balance-row {
  align-items: flex-end;
  flex-wrap: wrap;
}

.wallet-balance-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.wallet-balance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-balance-toggle {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-grid;
  place-items: center;
}

.wallet-balance-toggle__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.pill.success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #065f46;
}

.pill.pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.pill.failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
}

.input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  z-index: 30;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .nav {
    left: 0;
    transform: none;
    max-width: none;
  }
}

.nav .row {
  justify-content: space-around;
}

.nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 800;
  font-size: 12px;
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 14px;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item.active {
  background: rgba(255, 106, 61, 0.12);
  color: #c2410c;
}

.nav-item.active svg path {
  stroke: #c2410c;
}

.nav-item svg path {
  stroke: #111827;
}

.splash {
  position: fixed;
  inset: 0;
  background: #0b1220;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 100;
}

.splash-inner {
  text-align: center;
  padding: 24px;
}

.splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 12px;
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-title {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.splash-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Insufficient funds — welcoming callout */
.toast.msg--funds {
  margin-top: 16px;
  font-size: inherit;
  color: inherit;
}

.funds-callout {
  margin-top: 4px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff8f5 0%, #fff 45%, #fef3f2 100%);
  border: 1px solid rgba(255, 106, 61, 0.22);
  box-shadow: 0 10px 28px rgba(255, 61, 110, 0.12);
  text-align: center;
}

.funds-callout__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.funds-callout__title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 8px;
}

.funds-callout__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
}

.funds-callout__amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.funds-callout__amt {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fce7e2;
  border-radius: 14px;
  padding: 10px 12px;
}

.funds-callout__amt span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.funds-callout__amt strong {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.funds-callout__btn {
  margin-top: 0;
  box-shadow: 0 8px 22px rgba(255, 61, 110, 0.28);
}

/* Customer care / support */
.avatar--tap {
  cursor: pointer;
  border: 0;
  padding: 0;
  font: inherit;
  display: grid;
  place-items: center;
}

.avatar--tap:focus-visible {
  outline: 2px solid #ff6a3d;
  outline-offset: 3px;
}

.support-top-spacer {
  display: inline-block;
  width: 72px;
}

.support-screen .support-hero {
  text-align: center;
  padding: 8px 4px 20px;
}

.support-hero__avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, #ff3d6e);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(255, 61, 110, 0.25);
}

.support-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.support-hero__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.25;
}

.support-hero__text {
  margin: 0 auto;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.support-choose {
  margin: 22px 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-actions {
  display: grid;
  gap: 12px;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-card:active {
  transform: scale(0.99);
}

.support-card--wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, #f0fff4 0%, #fff 55%);
}

.support-card--call {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 55%);
}

.support-card__icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.support-card__icon-wrap--wa {
  background: #dcfce7;
  color: #16a34a;
}

.support-card__icon-wrap--call {
  background: #dbeafe;
  color: #2563eb;
}

.support-card__svg {
  width: 28px;
  height: 28px;
  display: block;
}

.support-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.support-card__label {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.support-card__sub {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

.support-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: #d1d5db;
}

.support-account {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.support-account__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-logout {
  margin-top: 0;
}

.support-footnote {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
  padding: 0 8px;
}
