:root {
  --ink: #0b1726;
  --ink-soft: #1c2b3a;
  --mist: #5b6b7a;
  --line: rgba(11, 23, 38, 0.1);
  --line-strong: rgba(11, 23, 38, 0.16);
  --paper: #f3f6f9;
  --surface: #ffffff;
  --teal: #007eb6;
  --teal-bright: #00aeef;
  --teal-soft: rgba(0, 126, 182, 0.1);
  --danger: #c23b3b;
  --warn: #b8860b;
  --ok: #007eb6;
  --shadow-sm: 0 1px 2px rgba(11, 23, 38, 0.04);
  --shadow: 0 12px 40px rgba(11, 23, 38, 0.08);
  --shadow-lg: 0 28px 80px rgba(11, 23, 38, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: 1.25rem;
  line-height: 1;
}
.brand span { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
  font-weight: 650;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
p { color: var(--mist); line-height: 1.6; margin: 0; font-size: 1.02rem; }

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-signal {
  background: var(--teal);
  color: #fff;
}
.btn-signal:hover { background: #006a9e; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(11, 23, 38, 0.03); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.block { width: 100%; }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.panel.tight { padding: 0.9rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--teal-soft);
  color: var(--teal);
}
.pill.warn { background: rgba(184, 134, 11, 0.12); color: #8a6500; }
.pill.bad { background: rgba(194, 59, 59, 0.12); color: var(--danger); }
.pill.mute { background: rgba(11, 23, 38, 0.06); color: var(--mist); }

/* —— Landing (full-bleed product composition) —— */
.landing-body { background: #001c30; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatPhone {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #f4f8fb;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(0, 174, 239, 0.22), transparent 55%),
    radial-gradient(700px 420px at 88% 70%, rgba(0, 126, 182, 0.18), transparent 50%),
    linear-gradient(145deg, #001c30 0%, #00395d 42%, #002640 100%);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 70% 45%, #000 15%, transparent 72%);
  pointer-events: none;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 32px; }
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
.lp-copy { max-width: 34rem; animation: rise 700ms var(--ease) both; }
.lp-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 1.1rem;
}
.lp-brand em { font-style: normal; color: #7fd6f7; }
.lp-copy h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.lp-lede {
  color: rgba(244, 250, 248, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 1.35rem;
}
.lp-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.7rem;
}
.lp-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.lp-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00aeef;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.18);
  flex-shrink: 0;
}
.lp-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.lp-actions .btn-signal {
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1.35rem;
}
.lp-actions .btn-signal:hover { background: #e8f3f9; }
.lp-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  padding: 0.95rem 1.35rem;
}
.lp-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.lp-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.lp-links a {
  font-size: 0.92rem;
  font-weight: 650;
  color: #b3e6fa;
  border-bottom: 1px solid rgba(179, 230, 250, 0.35);
  padding-bottom: 0.1rem;
}
.lp-links a:hover { color: #fff; border-color: #fff; }

.lp-stage {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  animation: rise 700ms var(--ease) 100ms both;
}
.lp-phone-ghost {
  display: none;
}
.lp-phone {
  position: relative;
  z-index: 2;
  padding: 11px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2f33, #111417 55%, #0a0c0e);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: floatPhone 5.5s var(--ease) infinite alternate;
}
.lp-phone-notch {
  width: 96px;
  height: 7px;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: #3a3f44;
}
.lp-phone-screen {
  background: #f1f3f4;
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
  color: var(--ink);
}
.lp-mock-header {
  background: linear-gradient(145deg, #007eb6 0%, #005a8c 55%, #00395d 100%);
  color: #fff;
  padding: 1.1rem 1.05rem 1.25rem;
  border-radius: 0 0 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-mock-eyebrow { font-size: 0.75rem; opacity: 0.8; margin-bottom: 0.15rem; }
.lp-mock-header strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.lp-mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
}
.lp-mock-card {
  margin: -0.95rem 0.85rem 0;
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 1;
}
.lp-mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mist);
}
.lp-mock-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.lp-mock-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.lp-mock-hint { font-size: 0.78rem; color: var(--mist); margin-top: 0.25rem; }
.lp-mock-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 1.1rem 0.85rem 1.4rem;
  text-align: center;
}
.lp-mock-actions span {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.lp-mock-actions svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.lp-mock-actions .on svg {
  background: linear-gradient(145deg, #00aeef, #007eb6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 126, 182, 0.35);
}

@media (min-width: 960px) {
  .lp-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .lp-stage { width: 380px; justify-self: end; margin-right: 1.5rem; }
  .lp-phone-ghost {
    display: block;
    position: absolute;
    right: -70px;
    top: 8%;
    width: 220px;
    height: 420px;
    border-radius: 28px;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 60%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%2300aeef' stroke-opacity='0.22' d='M0 40h80M40 0v80'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 1;
  }
}
@media (max-width: 640px) {
  .lp-hero-inner { padding: 2.25rem 0 2.75rem; }
  .lp-phone-screen { min-height: 460px; }
}

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 840px) { .grid-3 { grid-template-columns: 1fr; } }

/* —— App shell (Google Pay / PhonePe-inspired mobile UX) —— */
body.app-body {
  background: #e8eaed;
  margin: 0;
}
.app-web {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-web-aside { display: none; }
.app-shell {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 5.5rem;
  background: #f1f3f4;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.app-header {
  background: linear-gradient(145deg, #007eb6 0%, #005a8c 55%, #00395d 100%);
  color: #fff;
  padding: 1.15rem 1.15rem 1.35rem;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.app-header::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.app-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.app-greet .eyebrow {
  font-size: 0.78rem;
  opacity: 0.8;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.app-greet strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
}
.app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}
.app-balance-card {
  margin: -1.1rem 1rem 0;
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 2;
  animation: rise 520ms var(--ease) 80ms both;
}
.app-balance-card .label {
  font-size: 0.78rem;
  color: var(--mist);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-balance-card .hint {
  font-size: 0.86rem;
  color: var(--mist);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.app-section {
  padding: 1.15rem 1rem 0;
  animation: rise 520ms var(--ease) 140ms both;
}
.app-section + .app-section { animation-delay: 200ms; }
.app-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.app-section-title h2,
.app-section-title strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.app-section-title a {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--teal);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  text-align: center;
}
.quick-action {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.quick-action .ico {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  font-size: 1.35rem;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.quick-action .ico svg {
  width: 24px;
  height: 24px;
  display: block;
}
.pill-live {
  background: rgba(0, 126, 182, 0.12);
  color: #007eb6;
}
.quick-action:hover .ico,
.quick-action:active .ico {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 126, 182, 0.18);
}
.quick-action.primary .ico {
  background: linear-gradient(145deg, #00aeef, #007eb6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 126, 182, 0.35);
}

.app-card {
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.05rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.app-card + .app-card { margin-top: 0.75rem; }

.txn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef0f2;
}
.txn:last-child { border-bottom: 0; padding-bottom: 0.15rem; }
.txn:first-child { padding-top: 0.15rem; }
.txn-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5f4fb;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.txn-body { flex: 1; min-width: 0; }
.txn-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn-body span {
  font-size: 0.78rem;
  color: var(--mist);
}
.txn-meta { text-align: right; flex-shrink: 0; }
.txn-meta .amt {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.txn-meta .amt.out { color: var(--ink); }
.txn-meta .amt.in { color: var(--teal); }

.app-page-head {
  padding: 1rem 1.1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.app-page-head h1 {
  font-size: 1.35rem;
  margin: 0;
  flex: 1;
}
.app-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  font-size: 1.1rem;
  color: var(--ink);
}
.app-page-body { padding: 0.5rem 1rem 1rem; }

.pay-amount-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem 1.15rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 0.85rem;
}
.pay-amount-wrap label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pay-amount-wrap .currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mist);
  margin-right: 0.15rem;
}
.pay-amount-wrap input {
  border: 0;
  outline: 0;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: left;
  width: 8ch;
  max-width: 70%;
  background: transparent;
  color: var(--ink);
}
.pay-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 0.35rem;
}

.chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}
.chip {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }

.scan-frame {
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0.5rem auto 1rem;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #00aeef, #007eb6) border-box;
  border: 3px solid transparent;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 126, 182, 0.15);
  position: relative;
  overflow: hidden;
}
.scan-frame::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(0, 174, 239, 0.85);
  animation: scanLine 2.2s ease-in-out infinite;
}
@keyframes scanLine {
  0%, 100% { top: 18%; opacity: 0.3; }
  50% { top: 78%; opacity: 1; }
}
.scan-frame .inner {
  width: 70%;
  text-align: center;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.45;
  z-index: 1;
}

.profile-hero {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
}
.profile-hero .big-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  background: linear-gradient(145deg, #00aeef, #007eb6);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 126, 182, 0.3);
}
.settings-list a,
.settings-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  padding: 0.95rem 0.25rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}
.settings-list a:last-child,
.settings-list button:last-child { border-bottom: 0; }
.settings-list .si {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e5f4fb;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.settings-list .chev { margin-left: auto; color: #9aa0a6; font-weight: 400; }

.bank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef0f2;
}
.bank-item:last-child { border-bottom: 0; }
.bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef6f5;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font-display);
}
.fab-pay {
  position: sticky;
  bottom: 0;
  padding: 0.85rem 0 0.25rem;
  background: linear-gradient(180deg, transparent, #f1f3f4 28%);
}
.fab-pay .btn {
  width: 100%;
  border-radius: 999px;
  padding: 1rem;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 126, 182, 0.3);
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.action-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 108px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 126, 182, 0.35);
  box-shadow: var(--shadow);
}
.action-tile strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.action-tile span { color: var(--mist); font-size: 0.88rem; line-height: 1.4; }

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid #e4e7ea;
  padding: 0.35rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.06);
}
.bottom-nav a {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 650;
  padding: 0.4rem 0.1rem;
  border-radius: 12px;
  color: #80868b;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.bottom-nav a .ni {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border-radius: 10px;
}
.bottom-nav a .ni svg {
  width: 18px;
  height: 18px;
  display: block;
}
.bottom-nav a.active {
  color: var(--teal);
}
.bottom-nav a.active .ni {
  background: #e5f4fb;
}
.bottom-nav a:hover { color: var(--ink-soft); }

body.portal-body {
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(0, 174, 239, 0.12), transparent 50%),
    #eef2f6;
}
.portal {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}
.side {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(400px 280px at 20% 10%, rgba(0, 174, 239, 0.25), transparent 55%),
    linear-gradient(175deg, #001c30 0%, #00395d 55%, #002640 100%);
  color: #eaf4fb;
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  animation: rise 500ms var(--ease) both;
}
.side-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.35rem;
}
.side-brand span { color: #7fd6f7; }
.side-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(179, 230, 250, 0.7);
  margin: 0 0 1.1rem;
}
.side-nav { display: grid; gap: 0.2rem; flex: 1; }
.side a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: rgba(234, 255, 245, 0.72);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.side a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}
.side a.active {
  background: rgba(0, 174, 239, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.28);
}
.side-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.25rem;
}
.side-foot a { font-size: 0.85rem; color: #b3e6fa; }
.main { padding: clamp(1.5rem, 3vw, 2.5rem); }
.portal .main { animation: rise 560ms var(--ease) 60ms both; }
.portal .main > h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.portal .panel {
  border: 1px solid rgba(0, 126, 182, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.portal .panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .side { padding-bottom: 1rem; }
  .side-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }
  .side a { white-space: nowrap; }
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.8rem 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mist); }
.muted { color: var(--mist); }
.err {
  background: rgba(194, 59, 59, 0.08);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.okbox {
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.fade-in { animation: rise 480ms var(--ease) both; }
.qr-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0f8fc, #fff);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-align: center;
  padding: 1.1rem;
  word-break: break-all;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal-bright);
  display: inline-block;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.55; }
}
/* —— Full-page auth / setup / checkout —— */
body.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #001c30;
  overflow-x: hidden;
}
.auth-full {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  color: #f4f8fb;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(700px 420px at 20% 15%, rgba(0, 174, 239, 0.28), transparent 55%),
    linear-gradient(155deg, #001c30 0%, #00395d 48%, #002640 100%);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 10%, transparent 70%);
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orbFloat 10s var(--ease) infinite alternate;
}
.auth-orb-a {
  width: 280px; height: 280px; left: -60px; top: 10%;
  background: rgba(0, 174, 239, 0.35);
}
.auth-orb-b {
  width: 220px; height: 220px; right: 8%; bottom: 18%;
  background: rgba(0, 126, 182, 0.45);
  animation-delay: -3s;
}
.auth-orb-c {
  width: 140px; height: 140px; left: 40%; top: 28%;
  background: rgba(127, 214, 247, 0.22);
  animation-delay: -6s;
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -24px, 0) scale(1.08); }
}
.auth-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  animation: rise 700ms var(--ease) both;
}
.auth-visual-brand {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
}
.auth-visual-brand span { color: #7fd6f7; }
.auth-visual h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
}
.auth-visual p {
  color: rgba(244, 250, 248, 0.78);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.auth-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.auth-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.auth-bullets li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #00aeef;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.18);
  flex-shrink: 0;
}
.auth-panel {
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(0, 174, 239, 0.1), transparent 50%),
    #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.auth-panel-inner {
  width: min(420px, 100%);
}
.fade-up { animation: rise 620ms var(--ease) both; }
.auth-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.45rem;
}
.auth-panel h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  margin-bottom: 0.45rem;
}
.auth-sub { margin-bottom: 1.25rem; font-size: 0.98rem; }
.auth-form { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.auth-form .btn { margin-top: 0.25rem; padding: 0.95rem 1.2rem; }
.auth-foot {
  font-size: 0.92rem;
  color: var(--mist);
}
.auth-foot a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 126, 182, 0.35);
}
.auth-foot a:hover { color: var(--teal); }
.session-note {
  background: rgba(184, 134, 11, 0.12);
  color: #8a6500;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.mobile-only { display: none; }
.checkout-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.setup-full .auth-panel { align-items: stretch; }
.setup-scroll {
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
}
.setup-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  animation: rise 560ms var(--ease) both;
}
.setup-block:nth-child(3) { animation-delay: 60ms; }
.setup-block:nth-child(4) { animation-delay: 120ms; }
.setup-block:nth-child(5) { animation-delay: 180ms; }
.setup-block h3 { font-size: 1rem; margin: 0 0 0.65rem; }
.setup-block ol, .setup-block ul { margin: 0; padding-left: 1.15rem; line-height: 1.55; color: var(--mist); }
.setup-block pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.9rem;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}
.setup-status-pill {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}
.setup-status-pill.is-ready {
  background: rgba(0, 174, 239, 0.18);
  color: #b3e6fa;
}
@media (max-width: 900px) {
  .auth-full { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: 38vh;
    align-items: flex-end;
    padding: 2rem 1.35rem 1.75rem;
  }
  .auth-visual h1 { font-size: 1.85rem; }
  .auth-bullets { display: none; }
  .mobile-only { display: block; margin-bottom: 0.85rem; }
  .auth-panel { padding: 1.75rem 1.25rem 2.5rem; }
}
.amount-xl {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .lp-copy h1 { font-size: 2.05rem; }
}
