:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0b111d;
  --surface-2: #111a2a;
  --panel: rgba(14, 22, 36, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --ink: #f8fbff;
  --muted: #8fa3bd;
  --blue: #0ea5ff;
  --blue-2: #1262ff;
  --silver: #e8edf4;
  --cyan: #39d5ff;
  --danger: #ff6b6b;
  --warning: #ffd166;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(14, 165, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #03050a 0%, #07111f 54%, #03050a 100%);
}

.wallet-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 30% 0%, rgba(57, 213, 255, 0.2), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(18, 98, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #01030a 0%, #06101d 48%, #02040a 100%);
}

.login-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(57, 213, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(18, 98, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #01030a 0%, #06101f 46%, #02040a 100%);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.login-stage::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(57, 213, 255, 0.045) 35px 36px),
    linear-gradient(90deg, transparent, rgba(232, 237, 244, 0.06), transparent);
  animation: vertexGrid 16s linear infinite;
  transform: rotate(-8deg);
}

.login-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.035) 50%, transparent 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.32;
}

.vertex-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vertex-aurora span {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.55;
  animation: vertexFloat 9s ease-in-out infinite alternate;
}

.vertex-aurora span:nth-child(1) {
  left: -70px;
  top: 15%;
  background: rgba(14, 165, 255, 0.45);
}

.vertex-aurora span:nth-child(2) {
  right: -90px;
  top: 8%;
  background: rgba(232, 237, 244, 0.26);
  animation-delay: -3s;
}

.vertex-aurora span:nth-child(3) {
  left: 30%;
  bottom: -120px;
  background: rgba(18, 98, 255, 0.42);
  animation-delay: -6s;
}

.login-shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-shards i {
  position: absolute;
  width: 160px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 237, 244, 0.78), rgba(57, 213, 255, 0.8), transparent);
  box-shadow: 0 0 22px rgba(14, 165, 255, 0.52);
  opacity: 0.58;
  transform: rotate(-28deg);
  animation: vertexShard 7s ease-in-out infinite;
}

.login-shards i:nth-child(1) {
  left: 8%;
  top: 18%;
}

.login-shards i:nth-child(2) {
  right: 4%;
  top: 28%;
  width: 210px;
  animation-delay: -2s;
}

.login-shards i:nth-child(3) {
  left: 18%;
  bottom: 18%;
  width: 190px;
  animation-delay: -4s;
}

.login-shards i:nth-child(4) {
  right: 20%;
  bottom: 10%;
  width: 120px;
  animation-delay: -5.5s;
}

.login-panel {
  width: min(410px, 100%);
  padding: 24px;
  border: 1px solid rgba(232, 237, 244, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 165, 255, 0.12), transparent 210px),
    rgba(5, 8, 15, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--silver), transparent);
  opacity: 0.78;
}

.login-logo-wrap {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(57, 213, 255, 0.32);
  border-radius: 8px;
  background: radial-gradient(circle, rgba(14, 165, 255, 0.16), rgba(3, 5, 10, 0.9));
  box-shadow: 0 0 38px rgba(14, 165, 255, 0.34);
}

.login-logo-wrap img {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
}

.login-heading {
  text-align: center;
  margin-bottom: 18px;
}

.login-heading h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.login-heading p:last-child {
  max-width: 310px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 5, 12, 0.62);
}

.login-access-tabs label {
  display: block;
}

.login-access-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-access-tabs span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.login-access-tabs input:checked + span {
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
  box-shadow: 0 10px 22px rgba(14, 165, 255, 0.22);
}

.login-alert {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 8px;
  color: #ffe5a3;
  background: rgba(255, 209, 102, 0.1);
  font-size: 13px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="tel"],
.login-form input[type="email"],
.login-form select {
  min-height: 50px;
  background:
    linear-gradient(135deg, rgba(232, 237, 244, 0.04), rgba(14, 165, 255, 0.04)),
    rgba(2, 5, 12, 0.86);
}

.login-form input::placeholder {
  color: rgba(143, 163, 189, 0.56);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  font-size: 12px;
}

.remember-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.remember-line input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.login-row a {
  color: var(--cyan);
  text-decoration: none;
}

.login-button {
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--silver) 0%, var(--cyan) 42%, var(--blue-2) 100%);
  box-shadow: 0 16px 34px rgba(14, 165, 255, 0.28);
  cursor: pointer;
  font-weight: 900;
}

.login-create-account {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(57, 213, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(17, 26, 42, 0.52);
  font-size: 12px;
}

.login-create-account a {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.login-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.login-status-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.58);
}

.login-status-grid span {
  color: var(--muted);
  font-size: 11px;
}

.login-status-grid strong {
  color: var(--silver);
  font-size: 13px;
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.login-meta strong {
  color: var(--cyan);
  white-space: nowrap;
}

.login-meta a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.register-panel {
  width: min(520px, 100%);
}

.register-form {
  gap: 12px;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-terms {
  align-items: flex-start;
  margin-top: 2px;
  line-height: 1.4;
}

.register-terms span {
  padding-top: 1px;
}

.pending-flow-card,
.credit-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 255, 0.12), rgba(232, 237, 244, 0.04)),
    rgba(17, 26, 42, 0.64);
}

.pending-flow-card span,
.credit-card span,
.credit-card small {
  color: var(--muted);
  font-size: 12px;
}

.pending-flow-card strong,
.credit-card strong {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 18px;
}

.pending-flow-card p {
  margin: 0;
  color: var(--silver);
  font-size: 12px;
  line-height: 1.45;
}

.referral-route {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 5, 12, 0.42);
}

.credit-card {
  margin-bottom: 14px;
}

.register-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.register-link-grid a {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 255, 0.14), rgba(232, 237, 244, 0.04)),
    rgba(17, 26, 42, 0.62);
  text-decoration: none;
}

.register-link-grid span {
  color: var(--muted);
  font-size: 12px;
}

.register-link-grid strong {
  color: var(--cyan);
  font-size: 13px;
}

@keyframes vertexGrid {
  from {
    transform: translate3d(-4%, -2%, 0) rotate(-8deg);
  }

  to {
    transform: translate3d(4%, 2%, 0) rotate(-8deg);
  }
}

@keyframes vertexFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(28px, -22px, 0) scale(1.08);
  }
}

@keyframes vertexShard {
  0%,
  100% {
    transform: translate3d(-18px, 0, 0) rotate(-28deg);
    opacity: 0.25;
  }

  50% {
    transform: translate3d(34px, -18px, 0) rotate(-28deg);
    opacity: 0.8;
  }
}

@keyframes walletPulse {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }

  to {
    transform: translate3d(70px, 34px, 0) scale(1.2);
    opacity: 0.32;
  }
}

@keyframes capGlow {
  from {
    filter: saturate(1);
  }

  to {
    filter: saturate(1.35) brightness(1.12);
  }
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 22px;
}

.mobile-app {
  width: min(430px, 100%);
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  padding: 18px 14px 86px;
  border: 1px solid rgba(232, 237, 244, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 98, 255, 0.1), transparent 280px),
    rgba(5, 7, 13, 0.9);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.wallet-dashboard {
  padding-bottom: 96px;
}

.dashboard-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.dashboard-aurora span {
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.48;
  animation: vertexFloat 8s ease-in-out infinite alternate;
}

.dashboard-aurora span:nth-child(1) {
  width: 180px;
  height: 180px;
  left: -70px;
  top: 70px;
  background: rgba(57, 213, 255, 0.38);
}

.dashboard-aurora span:nth-child(2) {
  width: 220px;
  height: 220px;
  right: -95px;
  top: 170px;
  background: rgba(18, 98, 255, 0.34);
  animation-delay: -3s;
}

.dashboard-aurora span:nth-child(3) {
  width: 170px;
  height: 170px;
  left: 34%;
  bottom: 160px;
  background: rgba(232, 237, 244, 0.17);
  animation-delay: -5s;
}

.mobile-app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0.7;
}

.app-header,
.brand-lockup,
.section-heading,
.wallet-card,
.quick-actions,
.mode-toggle,
.stack-layout,
.bottom-nav,
.dashboard-strip,
.cap-card,
.network-card,
.transaction-card {
  position: relative;
  z-index: 1;
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(57, 213, 255, 0.35);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(14, 165, 255, 0.32);
}

h1,
h2,
p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(17, 26, 42, 0.88);
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.notify-dot {
  position: relative;
}

.notify-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.wallet-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 237, 244, 0.18) 0%, rgba(14, 165, 255, 0.2) 38%, rgba(18, 98, 255, 0.56) 100%),
    #0a1322;
  box-shadow: 0 18px 38px rgba(18, 98, 255, 0.22);
}

.hero-wallet {
  position: relative;
  overflow: hidden;
}

.hero-wallet::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(18px);
  animation: walletPulse 5s ease-in-out infinite alternate;
}

.wallet-topline,
.wallet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-wallet strong {
  position: relative;
  z-index: 1;
}

.wallet-card-footer small {
  font-size: 12px;
}

.wallet-card span,
.wallet-card small {
  display: block;
  color: rgba(248, 251, 255, 0.72);
  font-size: 13px;
}

.wallet-card strong {
  display: block;
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.wallet-chip {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(232, 237, 244, 0.38);
  border-radius: 8px;
  color: #06111f;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--silver), #9ab2d0);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.dashboard-actions button {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-actions button:active {
  transform: translateY(2px) scale(0.98);
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.dashboard-strip article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.72);
}

.dashboard-strip span,
.cap-values span,
.network-columns span,
.transaction-list small {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-strip strong {
  color: var(--silver);
  font-size: 17px;
  line-height: 1.1;
}

.quick-actions button {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(17, 26, 42, 0.88);
  cursor: pointer;
  font-size: 12px;
}

.quick-actions a {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(17, 26, 42, 0.88);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
}

.quick-actions span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue-2));
  font-size: 18px;
  font-weight: 700;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 5, 10, 0.64);
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.mode-button.active {
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
}

.stack-layout {
  display: grid;
  gap: 14px;
}

.panel,
.rules-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.panel {
  padding: 14px;
}

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

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.package-list {
  display: grid;
  gap: 8px;
}

.horizontal-packages {
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 1fr);
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.horizontal-packages .package-card {
  scroll-snap-align: start;
}

.package-card {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  background: rgba(17, 26, 42, 0.7);
  cursor: pointer;
}

.package-card.active {
  border-color: rgba(57, 213, 255, 0.82);
  background: linear-gradient(135deg, rgba(14, 165, 255, 0.22), rgba(232, 237, 244, 0.08));
  box-shadow: inset 0 0 0 1px rgba(232, 237, 244, 0.08);
}

.package-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.package-card span,
.package-card small {
  color: var(--muted);
}

.package-card > span > strong {
  color: var(--silver);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.cap-card {
  margin-bottom: 14px;
}

.cap-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(57, 213, 255, 0.22);
  border-radius: 999px;
  background: rgba(2, 5, 12, 0.74);
}

.cap-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-2), var(--silver));
  box-shadow: 0 0 18px rgba(57, 213, 255, 0.44);
  animation: capGlow 2.8s ease-in-out infinite alternate;
}

.cap-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cap-values div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 5, 12, 0.42);
}

.cap-values strong {
  color: var(--silver);
  font-size: 14px;
}

.metric {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.74);
}

.metric span,
.result-strip span,
label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: var(--silver);
  font-size: 21px;
  line-height: 1.1;
}

.form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(3, 5, 10, 0.72);
}

select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(3, 5, 10, 0.72);
}

select option {
  color: #04101d;
}

input:focus,
select:focus {
  outline: 3px solid rgba(14, 165, 255, 0.18);
  border-color: var(--blue);
}

.calculate-button {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
  cursor: pointer;
  font-weight: 800;
}

.result-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.result-strip div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(17, 26, 42, 0.76);
}

.result-strip strong {
  display: block;
  color: var(--cyan);
  font-size: 20px;
  white-space: nowrap;
}

.notice {
  min-height: 50px;
  padding: 12px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 8px;
  color: #ffe5a3;
  background: rgba(255, 209, 102, 0.1);
  line-height: 1.45;
  font-size: 13px;
}

.notice.limit {
  border-color: rgba(255, 107, 107, 0.38);
  color: #ffc9c9;
  background: rgba(255, 107, 107, 0.1);
}

.rules-band {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
}

.network-card,
.transaction-card {
  margin-top: 14px;
}

.network-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.network-columns article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.66);
}

.network-columns strong {
  color: var(--silver);
  font-size: 17px;
}

.mini-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.transaction-list {
  display: grid;
  gap: 8px;
}

.transaction-list div {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.62);
}

.tx-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
  font-weight: 900;
}

.transaction-list p {
  margin: 0;
}

.transaction-list strong {
  display: block;
  font-size: 13px;
}

.transaction-list small {
  display: block;
  margin-top: 3px;
}

.transaction-list em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.team-page {
  padding-bottom: 96px;
}

.team-hero strong {
  font-size: 34px;
}

.team-tools {
  margin-bottom: 14px;
}

.binary-panel {
  overflow: hidden;
}

.tree-scroll {
  overflow-x: auto;
  padding: 4px 0 2px;
}

.binary-tree {
  min-width: 760px;
  display: grid;
  gap: 10px;
  padding: 6px 0 4px;
}

.tree-level {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.root-level {
  grid-template-columns: 180px;
  justify-content: center;
}

.level-one {
  grid-template-columns: repeat(2, 150px);
  justify-content: center;
  column-gap: 114px;
}

.level-two {
  grid-template-columns: repeat(4, 130px);
  justify-content: center;
  column-gap: 42px;
}

.level-three {
  grid-template-columns: repeat(8, 82px);
  justify-content: center;
  column-gap: 10px;
}

.member-node {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(57, 213, 255, 0.28);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(14, 165, 255, 0.16), rgba(232, 237, 244, 0.05)),
    rgba(17, 26, 42, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.member-node:hover,
a.member-node:focus {
  border-color: rgba(57, 213, 255, 0.72);
  box-shadow: 0 0 26px rgba(57, 213, 255, 0.18);
  transform: translateY(-2px);
}

.member-node span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.member-node strong {
  color: var(--silver);
  font-size: 14px;
  line-height: 1.1;
}

.member-node small {
  color: var(--muted);
  font-size: 11px;
}

.root-node {
  min-height: 90px;
  border-color: rgba(232, 237, 244, 0.4);
  background:
    linear-gradient(135deg, rgba(232, 237, 244, 0.24), rgba(14, 165, 255, 0.22), rgba(18, 98, 255, 0.32)),
    rgba(17, 26, 42, 0.9);
}

.left-node {
  box-shadow: 0 0 24px rgba(57, 213, 255, 0.16);
}

.right-node {
  box-shadow: 0 0 24px rgba(18, 98, 255, 0.18);
}

.member-node.mini {
  min-height: 70px;
  padding: 8px 6px;
}

.member-node.mini strong {
  font-size: 12px;
}

.member-node.pending {
  border-style: dashed;
  opacity: 0.62;
}

.tree-reset-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.profile-page {
  padding-bottom: 96px;
}

.profile-hero strong {
  font-size: 32px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.profile-actions a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.profile-section {
  margin-top: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-grid div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 26, 42, 0.62);
}

.profile-grid span {
  color: var(--muted);
  font-size: 11px;
}

.profile-grid strong {
  color: var(--silver);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.referral-page {
  padding-bottom: 96px;
}

.referral-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 237, 244, 0.08), rgba(14, 165, 255, 0.08)),
    rgba(2, 5, 12, 0.72);
}

.qr-box img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  background: #fff;
}

.referral-open {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.tree-connectors {
  height: 24px;
  position: relative;
}

.tree-connectors::before,
.tree-connectors::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.tree-connectors::before {
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--cyan), rgba(57, 213, 255, 0.1));
  box-shadow: 0 0 12px rgba(57, 213, 255, 0.42);
}

.tree-connectors::after {
  top: 10px;
  height: 1px;
  background: rgba(57, 213, 255, 0.36);
  box-shadow: 0 0 12px rgba(57, 213, 255, 0.34);
}

.tree-connectors.two::after {
  width: 264px;
}

.tree-connectors.four::after {
  width: 560px;
}

.tree-connectors.eight::after {
  width: 710px;
}

.rules-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.rules-band ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--silver);
  font-size: 13px;
}

.rules-band li {
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(402px, calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.44);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav a.active {
  color: #04101d;
  background: linear-gradient(135deg, var(--silver), var(--blue));
}

@media (min-width: 900px) {
  .app-shell {
    padding: 32px;
  }

  .mobile-app {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  .login-stage {
    align-items: stretch;
    padding: 0;
  }

  .login-panel {
    min-height: 100vh;
    display: grid;
    align-content: center;
    border: 0;
    border-radius: 0;
  }

  .login-logo-wrap {
    width: 104px;
    height: 104px;
  }

  .login-logo-wrap img {
    width: 92px;
    height: 92px;
  }

  .register-panel {
    align-content: start;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .register-link-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 0;
  }

  .mobile-app {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .bottom-nav {
    bottom: 10px;
    width: calc(100% - 28px);
  }

  .compact-form,
  .network-columns {
    grid-template-columns: 1fr;
  }

  .cap-values {
    grid-template-columns: 1fr;
  }
}
