:root {
  --bg: #06110f;
  --bg2: #0d191b;
  --panel: #101f1c;
  --panel2: #142b26;
  --line: #27443d;
  --text: #f4fbf7;
  --muted: #91aaa0;
  --green: #25d366;
  --cyan: #37d9d1;
  --gold: #e9bd63;
  --red: #fb7185;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(55, 217, 209, .18), transparent 30%),
    radial-gradient(circle at 15% 78%, rgba(233, 189, 99, .12), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
input, select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #071210;
  outline: none;
}
label { min-width: 0; display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; line-height: 1.12; }
h2 { font-size: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}
.primary { background: var(--green); color: #04130b; }
.secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.full { width: 100%; margin-top: 18px; }
.muted { color: var(--muted); }
.pill, .badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  color: #06110f;
  background: var(--gold);
  font-weight: 900;
  font-size: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.home-brand {
  min-width: 0;
  flex-shrink: 0;
  gap: 10px;
  color: var(--text);
}
.afrix-mark { padding: 0; background: transparent; }
.symbol-a,
.word-afrix {
  fill: #062d4f;
}
.symbol-a-cut,
.symbol-c,
.symbol-africa,
.symbol-madagascar,
.word-capital {
  fill: none;
  stroke: none;
  color: #c7962f;
}
.symbol-a-cut,
.symbol-africa,
.symbol-madagascar,
.word-capital {
  fill: currentColor;
}
.symbol-c {
  stroke: currentColor;
  stroke-width: 20;
  stroke-linecap: square;
}
.word-afrix,
.word-capital {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #05110d;
  font-weight: 900;
  font-size: 22px;
}
.brand .afrix-mark {
  display: block;
  width: 66px;
  height: 54px;
  border-radius: 0;
  background: transparent;
}
.brand small { display: block; color: var(--muted); font-size: 13px; }

.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 48px 18px;
}
.public-nav nav { display: flex; gap: 10px; align-items: center; }
.public-menu-check,
.public-menu-btn,
.public-menu-backdrop,
.mobile-menu-head {
  display: none;
}
.public-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 46px;
  align-items: center;
  padding: 50px 48px 44px;
}
.hero-copy {
  display: grid;
  gap: 20px;
}
.hero-copy h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: 60px;
}
.hero-copy p {
  max-width: 650px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.chain-visual {
  position: relative;
  min-height: 410px;
  border: 1px solid rgba(55, 217, 209, .28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(37, 211, 102, .18), transparent 34%),
    linear-gradient(145deg, rgba(16, 31, 28, .84), rgba(9, 24, 26, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26), inset 0 0 40px rgba(55, 217, 209, .08);
  overflow: hidden;
}
.chain-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55, 217, 209, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 217, 209, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 72%);
  animation: gridPulse 7s ease-in-out infinite;
}
.chain-visual::before,
.chain-visual::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  filter: blur(2px);
}
.chain-visual::before {
  left: -90px;
  top: -80px;
  background: rgba(55, 217, 209, .14);
}
.chain-visual::after {
  right: -110px;
  bottom: -110px;
  background: rgba(233, 189, 99, .14);
}
.chain-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(55, 217, 209, .9), rgba(233, 189, 99, .82), transparent);
  box-shadow: 0 0 18px rgba(55, 217, 209, .42);
  transform-origin: left center;
  animation: dataFlow 3.6s ease-in-out infinite;
}
.line-a { left: 22%; top: 28%; width: 42%; transform: rotate(-13deg); }
.line-b { left: 26%; top: 58%; width: 48%; transform: rotate(16deg); animation-delay: .45s; }
.line-c { left: 52%; top: 32%; width: 32%; transform: rotate(38deg); animation-delay: .9s; }
.line-d { left: 18%; top: 72%; width: 60%; transform: rotate(-29deg); animation-delay: 1.2s; }
.chain-node {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 92px;
  height: 92px;
  padding: 12px;
  border: 1px solid rgba(55, 217, 209, .68);
  border-radius: 8px;
  background: rgba(7, 18, 16, .78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26), inset 0 0 24px rgba(55, 217, 209, .08);
  animation: nodeFloat 5.4s ease-in-out infinite;
}
.chain-node strong { color: var(--text); font-size: 20px; }
.chain-node small { color: var(--cyan); font-size: 12px; font-weight: 800; }
.chain-node:nth-of-type(1) { left: 10%; top: 18%; }
.chain-node:nth-of-type(2) { left: 38%; top: 9%; animation-delay: .7s; }
.chain-node:nth-of-type(3) { left: 67%; top: 25%; animation-delay: 1.1s; }
.chain-node:nth-of-type(4) { left: 17%; top: 59%; animation-delay: .35s; }
.chain-node:nth-of-type(5) { left: 50%; top: 61%; animation-delay: 1.45s; }
.chain-node:nth-of-type(6) { left: 76%; top: 72%; animation-delay: .95s; }
.public-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 10px 48px 52px; }
.public-strip article, .panel, .stats article, .plans article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 31, 28, .92);
}
.public-strip article {
  min-height: 124px;
  display: grid;
  align-content: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.public-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 217, 209, .54);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.public-strip span, .stats span, .stats small { display: block; color: var(--muted); font-size: 13px; }
.public-strip strong, .stats strong { display: block; margin-top: 8px; font-size: 28px; }

body.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 5%, rgba(88, 193, 206, .2), transparent 25%),
    radial-gradient(circle at 68% 58%, rgba(233, 189, 99, .16), transparent 26%),
    linear-gradient(180deg, #07131b 0%, #0a1d22 46%, #07100f 100%);
}

.afrix-home {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px) clamp(22px, 7vw, 52px) 30px;
  background:
    linear-gradient(180deg, rgba(5, 16, 23, .12), rgba(3, 8, 9, .4)),
    radial-gradient(circle at 72% 64%, rgba(37, 211, 102, .12), transparent 26%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .34);
}

.afrix-home::before,
.afrix-home::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -3;
  pointer-events: none;
}

.afrix-home::before {
  left: -14%;
  right: -14%;
  bottom: 24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(119, 227, 234, .72), rgba(233, 189, 99, .82), transparent);
  box-shadow:
    0 -74px 0 rgba(119, 227, 234, .16),
    0 -122px 0 rgba(119, 227, 234, .1),
    0 44px 0 rgba(119, 227, 234, .12);
}

.afrix-home::after {
  left: 50%;
  bottom: 24%;
  width: min(520px, 86vw);
  aspect-ratio: 1;
  border: 2px solid rgba(134, 237, 235, .58);
  border-radius: 50%;
  transform: translateX(-18%);
  box-shadow:
    inset 0 0 52px rgba(55, 217, 209, .18),
    0 0 38px rgba(55, 217, 209, .16);
}

.home-noise {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background-image:
    radial-gradient(rgba(255, 255, 255, .72) 1px, transparent 1px),
    radial-gradient(rgba(55, 217, 209, .48) 1px, transparent 1px);
  background-position: 0 0, 11px 17px;
  background-size: 42px 42px, 58px 58px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

.world-map {
  position: absolute;
  top: 58px;
  right: -34px;
  z-index: -1;
  width: min(360px, 60vw);
  height: min(230px, 34vw);
  opacity: .44;
  background-image: radial-gradient(rgba(199, 225, 226, .8) 2px, transparent 2.5px);
  background-size: 13px 13px;
  clip-path: polygon(7% 33%, 28% 20%, 44% 30%, 56% 16%, 82% 24%, 94% 43%, 80% 64%, 58% 58%, 49% 77%, 28% 70%, 16% 55%);
}

.network-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.network-lines span {
  position: absolute;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(105, 220, 226, .88), rgba(233, 189, 99, .78), transparent);
  box-shadow: 0 0 12px rgba(55, 217, 209, .52);
}

.network-lines span:nth-child(1) { left: -8%; top: 42%; width: 50%; }
.network-lines span:nth-child(2) { right: -5%; top: 18%; width: 36%; transform: rotate(1deg); }
.network-lines span:nth-child(3) { right: 1%; top: 30%; width: 34%; transform: rotate(-35deg); }
.network-lines span:nth-child(4) { left: -9%; top: 51%; width: 38%; }
.network-lines span:nth-child(5) { right: -7%; bottom: 34%; width: 48%; }

.home-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 82px;
}

.home-header .home-brand {
  gap: 14px;
}

.home-header .brand .afrix-mark {
  width: clamp(86px, 17vw, 114px);
  height: clamp(68px, 13vw, 90px);
}

.home-header .brand strong {
  display: block;
  color: #f7fbfb;
  font-size: clamp(25px, 5vw, 35px);
  line-height: 1;
  letter-spacing: 0;
}

.home-header .brand small {
  margin-top: 6px;
  color: rgba(247, 251, 251, .88);
  font-size: clamp(15px, 3vw, 22px);
}

.home-title {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-top: clamp(48px, 9vw, 84px);
}

.home-title h1 {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.12;
}

.home-title h1 span {
  display: block;
}

.home-title em {
  color: #e6ba45;
  font-style: normal;
}

.home-title p {
  color: rgba(245, 250, 250, .9);
  font-size: clamp(18px, 3.6vw, 24px);
  line-height: 1.35;
}

.finance-visual {
  position: relative;
  z-index: 1;
  min-height: clamp(300px, 54vw, 420px);
  margin-top: clamp(22px, 4vw, 34px);
}

.globe {
  position: absolute;
  left: 18%;
  bottom: 6%;
  width: min(420px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 42%, rgba(233, 189, 99, .38), transparent 3%),
    radial-gradient(circle at 64% 53%, rgba(233, 189, 99, .3), transparent 4%),
    radial-gradient(circle at 38% 60%, rgba(233, 189, 99, .24), transparent 5%),
    radial-gradient(circle at 44% 42%, rgba(116, 226, 230, .22), transparent 38%),
    linear-gradient(135deg, rgba(8, 26, 31, .82), rgba(5, 12, 15, .1));
  border: 1px solid rgba(125, 234, 235, .48);
  box-shadow:
    inset 0 0 34px rgba(125, 234, 235, .18),
    0 0 44px rgba(233, 189, 99, .18);
  overflow: hidden;
}

.globe::before,
.globe::after,
.globe-ring {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.globe::before {
  inset: 6%;
  border: 1px solid rgba(125, 234, 235, .18);
  background-image:
    linear-gradient(rgba(125, 234, 235, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 234, 235, .12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.globe::after {
  inset: -9% 18%;
  border-left: 1px solid rgba(125, 234, 235, .34);
  border-right: 1px solid rgba(125, 234, 235, .24);
}

.globe-ring {
  inset: -10% -22% auto;
  height: 50%;
  border-bottom: 5px solid rgba(233, 189, 99, .9);
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 14px rgba(233, 189, 99, .72));
}

.continent {
  position: absolute;
  display: block;
  background: rgba(233, 189, 99, .36);
  filter: blur(.2px);
}

.continent.c1 {
  left: 28%;
  top: 24%;
  width: 25%;
  height: 34%;
  clip-path: polygon(36% 0, 78% 15%, 96% 50%, 70% 98%, 30% 82%, 0 46%);
}

.continent.c2 {
  left: 54%;
  top: 36%;
  width: 22%;
  height: 28%;
  clip-path: polygon(12% 16%, 74% 0, 100% 42%, 78% 100%, 20% 82%, 0 48%);
}

.continent.c3 {
  left: 22%;
  top: 58%;
  width: 16%;
  height: 18%;
  clip-path: polygon(20% 0, 100% 30%, 70% 100%, 0 68%);
}

.phone {
  position: absolute;
  right: 6%;
  bottom: 2%;
  width: min(218px, 38vw);
  aspect-ratio: .56;
  border: 9px solid #101a24;
  border-radius: 30px;
  background: linear-gradient(160deg, #183a44, #071116 74%);
  box-shadow:
    -24px 18px 44px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255, 255, 255, .2);
  transform: rotate(7deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 32%;
  right: 32%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.phone-screen {
  position: absolute;
  inset: 22px 12px auto;
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(68, 209, 205, .9), rgba(19, 96, 99, .82));
  box-shadow: 0 0 22px rgba(55, 217, 209, .38);
}

.phone-screen strong {
  color: #fff;
  font-size: clamp(22px, 4.8vw, 34px);
}

.phone-screen small {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

.phone-bar {
  width: 48%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.wallet-card {
  position: absolute;
  left: -42%;
  right: 10%;
  top: 47%;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 189, 99, .82);
  border-radius: 8px;
  background: linear-gradient(135deg, #1c342f, #091312);
  box-shadow: 0 16px 26px rgba(0, 0, 0, .36), inset 0 0 18px rgba(233, 189, 99, .12);
  transform: rotate(-3deg);
}

.wallet-card span {
  display: block;
  width: 38px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22) 50%, transparent 50%),
    #e0b13c;
}

.wallet-card strong {
  color: #e6ba45;
  font-size: clamp(8px, 1.8vw, 11px);
  letter-spacing: 1px;
}

.coin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(34px, 7vw, 54px);
  aspect-ratio: 1;
  border: 4px solid #f6ca54;
  border-radius: 50%;
  color: #7b4b00;
  background:
    radial-gradient(circle at 33% 28%, #fff3a3, #e3a923 58%, #a96403);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .38), 0 0 14px rgba(233, 189, 99, .5);
  font-weight: 900;
}

.coin-a { right: 30%; bottom: 44%; }
.coin-b { right: 22%; bottom: 54%; transform: scale(.78); }
.coin-c { right: 3%; bottom: 40%; transform: rotate(18deg); }
.coin-d { right: 9%; bottom: 28%; transform: scale(.88); }

.home-actions {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px 0 30px;
  border: 1px solid rgba(220, 244, 243, .28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, rgba(25, 42, 39, .9), rgba(9, 24, 29, .74));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .04), 0 12px 24px rgba(0, 0, 0, .26);
  font-size: clamp(16px, 3.7vw, 23px);
  font-weight: 900;
  line-height: 1.2;
}

.home-cta.join {
  border-color: rgba(119, 245, 169, .48);
  background: linear-gradient(90deg, rgba(45, 207, 102, .96), rgba(8, 44, 46, .82));
}

.home-cta strong {
  color: rgba(255, 255, 255, .88);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.home-categories {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2.6vw, 24px);
  margin-top: clamp(34px, 6vw, 50px);
  text-align: center;
}

.home-categories a {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
}

.home-categories strong {
  color: #fff;
  font-size: clamp(13px, 2.9vw, 19px);
  line-height: 1.2;
}

.cat-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 11vw, 72px);
  aspect-ratio: 1;
  color: #123432;
}

.blockchain-icon::before,
.blockchain-icon::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid #e6ba45;
}

.blockchain-icon::before {
  transform: rotate(30deg);
  background: rgba(55, 217, 209, .12);
}

.blockchain-icon::after {
  inset: 5%;
  border-color: rgba(238, 214, 133, .72);
  border-radius: 50%;
  box-shadow:
    24px 0 0 -18px #e6ba45,
    -24px 0 0 -18px #e6ba45,
    0 24px 0 -18px #e6ba45,
    0 -24px 0 -18px #e6ba45;
}

.crypto-icon {
  border: 4px solid #f2cb4e;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #fff0a3, #d89617 62%, #955700);
  color: #6c4400;
  font-size: clamp(25px, 6vw, 42px);
  font-weight: 900;
}

.defi-icon::before {
  content: "";
  position: absolute;
  inset: 9% 22% 18%;
  border: 4px solid #e6ba45;
  border-bottom: 0;
  transform: perspective(80px) rotateX(22deg);
}

.defi-icon::after {
  content: "";
  position: absolute;
  inset: 28% 12% 8%;
  background:
    linear-gradient(#e6ba45, #e6ba45) 50% 0 / 7px 100% no-repeat,
    linear-gradient(#e6ba45, #e6ba45) 28% 32% / 7px 68% no-repeat,
    linear-gradient(#e6ba45, #e6ba45) 72% 42% / 7px 58% no-repeat;
  border-bottom: 5px solid #e6ba45;
}

.card-icon {
  border: 3px solid #e6ba45;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(29, 112, 114, .9), rgba(12, 39, 45, .95));
  box-shadow: 8px -8px 0 -2px rgba(230, 186, 69, .9);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  left: 18%;
  border-radius: 2px;
  background: #e6ba45;
}

.card-icon::before {
  top: 28%;
  width: 25%;
  height: 18%;
}

.card-icon::after {
  right: 16%;
  bottom: 27%;
  height: 4px;
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes dataFlow {
  0%, 100% { opacity: .32; }
  50% { opacity: 1; }
}

@keyframes gridPulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .86; transform: scale(1.03); }
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 42px;
  align-items: center;
  padding: 48px;
}
.auth-intro {
  min-height: calc(100vh - 68px);
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 42px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 20%, rgba(55, 217, 209, .18), transparent 30%),
    radial-gradient(circle at 18% 76%, rgba(233, 189, 99, .12), transparent 34%),
    linear-gradient(120deg, rgba(16, 31, 28, .94), rgba(12, 32, 36, .86));
  box-shadow: inset 0 0 44px rgba(55, 217, 209, .06);
}
.auth-intro .pill { margin-top: 54px; }
.auth-intro h1 { max-width: 760px; margin-bottom: 0; font-size: 54px; }
.auth-intro p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.auth-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 18px;
}
.auth-chain span {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(55, 217, 209, .28);
  border-radius: 8px;
  background: rgba(7, 18, 16, .62);
  box-shadow: inset 0 0 22px rgba(55, 217, 209, .06);
}
.auth-chain strong { color: var(--text); font-size: 20px; }
.auth-chain small { color: var(--cyan); font-size: 12px; font-weight: 800; }
.auth-card {
  padding: 30px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 31, 28, .98), rgba(10, 23, 21, .96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26), inset 0 0 28px rgba(55, 217, 209, .05);
}
.form-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.auth-card p { margin-bottom: 0; color: var(--muted); }
.auth-card a { color: var(--cyan); font-weight: 800; }
.password-meter {
  --password-progress: 0%;
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.password-meter span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #071210;
}
.password-meter i {
  display: block;
  width: var(--password-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--warning);
  transition: width .18s ease, background .18s ease;
}
.password-meter.valid i { background: var(--green); }
.password-meter small { color: var(--muted); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(6, 17, 15, .94);
}
.nav { display: grid; gap: 6px; margin-top: 22px; }
.nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 800; font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--text); background: var(--panel2); }
.side-card { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.side-card span, .side-card small { display: block; color: var(--muted); font-size: 13px; }
.side-card strong { display: block; margin: 7px 0; color: var(--gold); font-size: 22px; }

.app {
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  min-width: 0;
  margin-left: 260px;
  padding: 34px;
}
.topbar { position: sticky; top: 0; z-index: 18; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: -8px -8px 18px; padding: 8px; border-radius: 8px; background: rgba(6, 17, 15, .9); backdrop-filter: blur(14px); }
.topbar-title p { margin-bottom: 7px; color: var(--cyan); font-size: 13px; }
.topbar-title { min-width: 0; }
.topbar-title h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(16, 31, 28, .76); }
.user-box span { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.hero-card {
  margin-bottom: 22px;
  padding: 32px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 22%, rgba(55, 217, 209, .16), transparent 30%),
    linear-gradient(120deg, rgba(16, 31, 28, .97), rgba(18, 43, 38, .78));
  box-shadow: inset 0 0 34px rgba(55, 217, 209, .05);
}
.hero-card p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-page="dashboard"] .topbar { margin-bottom: 26px; }
body[data-page="dashboard"] .hero-card { margin-bottom: 26px; }
body[data-page="dashboard"] .stats { gap: 20px; margin-bottom: 20px; }
body[data-page="dashboard"] .grid { gap: 20px; }
body[data-page="dashboard"] .panel,
body[data-page="dashboard"] .stats article {
  padding: 26px;
}
body[data-page="merchant"] .stats { grid-template-columns: repeat(5, 1fr); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--cyan); background: var(--panel2); }
.list { display: grid; gap: 10px; }
.list div, .switch-row, .wallet-address { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 8px; background: var(--panel2); }
.list span, .wallet-address span { display: block; color: var(--muted); font-size: 13px; }
.wallet-address small { display: block; margin-top: 6px; color: var(--muted); }
.wallet-address > div { min-width: 0; }
body[data-page="wallet"],
body[data-page="wallet"] .app,
body[data-page="wallet"] .panel,
body[data-page="wallet"] form,
body[data-page="wallet"] label,
body[data-page="wallet"] input,
body[data-page="wallet"] select {
  max-width: 100%;
}
.wallet-address strong,
.wallet-address small,
.info-grid strong,
.muted {
  overflow-wrap: anywhere;
}
.list small { display: block; margin-top: 4px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.compact-info { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.info-grid div { min-width: 0; padding: 12px; border-radius: 8px; background: var(--panel2); }
.info-grid span { display: block; color: var(--muted); font-size: 12px; }
.info-grid strong { display: block; margin-top: 6px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-stat-grid div { min-width: 0; padding: 12px; border-radius: 8px; background: var(--panel2); }
.admin-stat-grid span { display: block; color: var(--muted); font-size: 12px; }
.admin-stat-grid strong { display: block; margin-top: 6px; color: var(--gold); overflow-wrap: anywhere; }
.contact-card h1 { font-size: 24px; }
.pwa-install-card {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(55, 217, 209, .28);
  border-radius: 8px;
  background: rgba(6, 17, 15, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}
.pwa-install-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pwa-install-card .btn { margin: 0; }
.pwa-install-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel2);
}
.admin-queues { margin-top: 14px; }
.queue-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center !important; }
.admin-inline-input { width: 120px; min-height: 42px; }
.merchant-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center !important; }
.exchange-list { display: grid; gap: 14px; margin-top: 16px; }
.exchange-ad {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
}
.exchange-ad h2 { margin-bottom: 4px; }
.exchange-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(7, 18, 16, .72);
}
.exchange-rate span { color: var(--muted); font-size: 12px; }
.exchange-rate strong { color: var(--gold); font-size: 24px; }
.proof-frame {
  display: grid;
  gap: 14px;
}
.proof-frame img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071210;
}
.positive { color: var(--green); }
.negative { color: var(--red); }
.progress { height: 12px; overflow: hidden; border-radius: 999px; background: #071210; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan), var(--gold)); }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.wallet-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.wallet-tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.wallet-tab-list {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(420px, 100%);
  padding: 6px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background: rgba(7, 18, 16, .72);
}
.wallet-tab-list label {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.wallet-tab-panel { display: none; }
.wallet-tab-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 18px;
}
.wallet-receive-fields {
  display: grid;
  gap: 14px;
}
.wallet-receive-fields[hidden] {
  display: none;
}
.conversion-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(233, 189, 99, .32);
  border-radius: 8px;
  background: rgba(233, 189, 99, .1);
}
.conversion-card[hidden] {
  display: none;
}
.conversion-card span,
.conversion-card small {
  color: var(--muted);
  font-size: 12px;
}
.conversion-card strong {
  color: var(--gold);
  font-size: 24px;
}
#wallet-deposit:checked ~ .wallet-tab-list label[for="wallet-deposit"],
#wallet-withdraw:checked ~ .wallet-tab-list label[for="wallet-withdraw"] {
  color: #04130b;
  background: var(--green);
}
#wallet-deposit:checked ~ .wallet-deposit-panel,
#wallet-withdraw:checked ~ .wallet-withdraw-panel {
  display: grid;
}
.plans-hero h1 { max-width: 980px; margin-bottom: 12px; font-size: 46px; }
.plans-hero p { max-width: 900px; line-height: 1.7; }
.principle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.principle-strip span,
.principle-list span {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.active-plans-panel { margin-bottom: 18px; }
.active-plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.active-plan-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background: rgba(7, 18, 16, .58);
}
.active-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.active-plan-head span { display: grid; gap: 4px; min-width: 0; }
.active-plan-head strong { color: var(--gold); font-size: 18px; overflow-wrap: anywhere; }
.active-plan-head small { color: var(--muted); }
.active-plan-head b { color: var(--green); font-size: 22px; }
.active-plan-progress { height: 14px; }
.active-plan-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.active-plan-stats small {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(16, 31, 28, .9);
  color: var(--text);
  font-weight: 800;
}
.active-plan-stats span {
  color: var(--cyan);
  font-size: 11px;
  text-transform: uppercase;
}
.plans article { min-height: 360px; display: flex; flex-direction: column; gap: 12px; }
.plans h2 { margin-bottom: 0; font-size: 22px; }
.plans strong { color: var(--gold); font-size: 30px; line-height: 1.1; }
.plans small { color: var(--muted); }
.plans p { flex: 1; color: var(--text); line-height: 1.55; }
.plans .featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(233, 189, 99, .14), rgba(16, 31, 28, .96)); }
.plan-tier {
  width: fit-content;
  padding: 7px 9px;
  border-radius: 8px;
  color: #06110f;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.plans .featured .plan-tier { background: var(--gold); }
.plan-metrics {
  display: grid;
  gap: 8px;
}
.plan-metrics small {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(7, 18, 16, .64);
}
.plan-metrics span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.principle-list { display: grid; gap: 10px; margin-top: 18px; }
.plans-principles { margin-top: 18px; }
.ecosystem-note {
  display: grid;
  align-content: center;
  gap: 14px;
}
.ecosystem-note p { color: var(--muted); line-height: 1.7; }
.ecosystem-note strong { color: var(--gold); font-size: 24px; }
.partner-hero h1 { max-width: 980px; margin-bottom: 12px; font-size: 46px; }
.partner-hero p { max-width: 920px; line-height: 1.7; }
.marketing-intro,
.marketing-rules,
.elite-hero {
  margin-bottom: 18px;
}
.activation-examples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.activation-examples div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel2);
}
.activation-examples span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.activation-examples strong {
  color: var(--gold);
  text-align: right;
  overflow-wrap: anywhere;
}
.partner-levels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.partner-level-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 31, 28, .88);
}
.partner-level-card:nth-child(4),
.partner-level-card:nth-child(5) {
  grid-column: span 3;
}
.partner-level-card.featured {
  border-color: rgba(233, 189, 99, .58);
  background: linear-gradient(180deg, rgba(233, 189, 99, .12), rgba(16, 31, 28, .94));
}
.partner-level-card.global {
  border-color: rgba(55, 217, 209, .56);
  background:
    radial-gradient(circle at 86% 14%, rgba(55, 217, 209, .16), transparent 32%),
    linear-gradient(180deg, rgba(20, 43, 38, .96), rgba(16, 31, 28, .94));
}
.partner-level-card h2 {
  margin-bottom: 0;
  font-size: 24px;
}
.partner-requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.partner-requirements span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(7, 18, 16, .68);
}
.partner-requirements small {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.partner-requirements strong {
  color: var(--gold);
  overflow-wrap: anywhere;
}
.partner-program-notes { margin-bottom: 18px; }
.money-hero h1 { max-width: 980px; margin-bottom: 12px; font-size: 46px; }
.money-hero p { max-width: 920px; line-height: 1.7; }
.money-fees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.money-fee-card {
  display: grid;
  align-content: start;
  gap: 12px;
}
.money-fee-card h2 { margin-bottom: 0; }
.money-fee-card p { color: var(--muted); line-height: 1.6; }
.money-performance,
.money-vision {
  margin-top: 18px;
}
.commission-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.commission-table div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  background: var(--panel2);
}
.commission-table span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.commission-table strong {
  color: var(--gold);
  font-size: 22px;
  white-space: nowrap;
}
.merchant-hero h1 { max-width: 980px; margin-bottom: 12px; font-size: 46px; }
.merchant-hero p { max-width: 920px; line-height: 1.7; }
.merchant-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.merchant-condition {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.merchant-condition h2 { margin-bottom: 0; }
.merchant-condition p {
  color: var(--muted);
  line-height: 1.6;
}
.merchant-condition > strong {
  margin-top: auto;
  color: var(--gold);
  font-size: 20px;
  overflow-wrap: anywhere;
}
.merchant-condition.featured {
  border-color: rgba(233, 189, 99, .54);
  background: linear-gradient(180deg, rgba(233, 189, 99, .1), rgba(16, 31, 28, .94));
}
.merchant-benefits { margin-bottom: 18px; }
.merchant-dashboard { margin-bottom: 18px; }
.merchant-results { margin-top: 14px; }
.cico-reference-card {
  border-color: rgba(233, 189, 99, .5);
  background:
    radial-gradient(circle at 88% 18%, rgba(233, 189, 99, .16), transparent 28%),
    rgba(16, 31, 28, .94);
}
.cico-reference-card[hidden] {
  display: none;
}
.cico-reference-card h1 {
  margin: 12px 0 8px;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.merchant-code-result {
  margin-top: 14px;
}
.merchant-code-card {
  padding: 14px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-radius: 8px;
  background: var(--panel2);
}
.merchant-code-card > span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.merchant-code-card h2 {
  margin: 8px 0;
  color: var(--gold);
}
.merchant-code-card p {
  color: var(--muted);
}
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.level { padding: 12px; border-radius: 8px; background: var(--panel2); }
.level.locked { opacity: .44; }
.level strong, .level span { display: block; }
.level span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(360px, calc(100vw - 2rem));
  max-width: 440px;
  padding: 15px 16px;
  border-radius: 8px;
  border: 1px solid rgba(55, 217, 209, .24);
  border-left: 5px solid var(--green);
  background: #f8fffb;
  color: #10201d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  z-index: 1000;
  animation: slideIn .24s ease;
}
.toast-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--green); background: rgba(37, 211, 102, .14); font-weight: 900; }
.toast-message { flex: 1; font-weight: 800; line-height: 1.35; }
.toast-close { border: 0; background: transparent; color: #607069; font-size: 22px; cursor: pointer; }
.toast.error { border-left-color: var(--red); }
.toast.error .toast-icon { color: var(--red); background: rgba(251, 113, 133, .14); }
.toast.warning { border-left-color: var(--warning); }
.toast.warning .toast-icon { color: var(--warning); background: rgba(245, 158, 11, .14); }
.toast.info { border-left-color: var(--cyan); }
.toast.info .toast-icon { color: #07837d; background: rgba(55, 217, 209, .16); }
@keyframes slideIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.app-error {
  margin-bottom: 18px;
  border-color: rgba(251, 113, 133, .38);
}

.maintenance-page {
  display: grid;
  place-items: center;
  padding: 18px;
}
.maintenance-card {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 31, 28, .94);
}
.maintenance-card .brand { margin-bottom: 26px; }
.maintenance-card h1 { font-size: 42px; }
.maintenance-card p { color: var(--muted); }

@media (max-width: 980px) {
  .public-nav, .public-hero, .auth-layout { padding: 16px; }
  .public-hero, .auth-layout, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .hero-copy h1, .auth-intro h1 { font-size: 36px; }
  .auth-intro { min-height: auto; }
  .auth-intro .pill { margin-top: 28px; }
  .auth-chain { grid-template-columns: 1fr; }
  .chain-visual { min-height: 340px; }
  .chain-node {
    width: 78px;
    height: 78px;
    padding: 10px;
  }
  .chain-node strong { font-size: 17px; }
  .chain-node small { font-size: 11px; }
  .public-strip, .stats, .plans, .levels, .principle-strip, .partner-levels, .money-fees, .merchant-access-grid, .active-plans-grid, .active-plan-stats { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .plans-hero h1 { font-size: 36px; }
  .partner-hero h1 { font-size: 36px; }
  .money-hero h1 { font-size: 36px; }
  .merchant-hero h1 { font-size: 36px; }
  .partner-level-card,
  .partner-level-card:nth-child(4),
  .partner-level-card:nth-child(5) {
    grid-column: auto;
  }
  .info-grid, .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .queue-row { grid-template-columns: 1fr !important; }
  .merchant-card { grid-template-columns: 1fr !important; }
  .sidebar {
    width: min(260px, 86vw);
    padding: 16px;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 20;
  }
  .sidebar.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .side-card { position: static; margin-top: 12px; }
  .app {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 16px;
  }
  .menu-btn {
    display: inline-flex;
    position: fixed !important;
    top: 14px;
    left: 16px;
    z-index: 999;
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .36);
  }
  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-left: 66px;
  }
  .user-box {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }
  .pwa-install-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .pwa-install-card [data-pwa-card-install] {
    grid-column: 1 / -1;
    width: 100%;
  }
  .user-box span { max-width: calc(100vw - 128px); }
  .stats,
  body[data-page="merchant"] .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .public-nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }
  .public-nav .home-brand { max-width: calc(100% - 62px); }
  .public-menu-btn {
    position: relative;
    z-index: 60;
    display: inline-grid;
    gap: 5px;
    place-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 1px solid rgba(55, 217, 209, .34);
    border-radius: 8px;
    background: rgba(16, 31, 28, .86);
    box-shadow: inset 0 0 18px rgba(55, 217, 209, .08);
    cursor: pointer;
  }
  .public-menu-btn span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    transition: transform .2s ease, opacity .2s ease;
  }
  .public-nav .public-nav-links {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(320px, 86vw);
    padding: 22px;
    border-left: 1px solid rgba(55, 217, 209, .26);
    background:
      radial-gradient(circle at 82% 14%, rgba(55, 217, 209, .18), transparent 32%),
      linear-gradient(180deg, rgba(6, 17, 15, .98), rgba(16, 31, 28, .98));
    box-shadow: -28px 0 80px rgba(0, 0, 0, .46);
    transform: translateX(100%);
    transition: transform .24s ease;
  }
  .public-nav .public-nav-links > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(55, 217, 209, .18);
    border-radius: 8px;
    background: rgba(20, 43, 38, .74);
    font-weight: 800;
  }
  .public-nav .public-nav-links > .btn {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    border-color: transparent;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: var(--gold);
  }
  .mobile-menu-head label {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid rgba(55, 217, 209, .22);
    border-radius: 8px;
    color: var(--text);
    background: rgba(7, 18, 16, .72);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .public-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(2, 8, 7, .58);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .public-menu-check:checked ~ .public-nav-links {
    transform: translateX(0);
  }
  .public-menu-check:checked ~ .public-menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .public-menu-check:checked ~ .public-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .public-menu-check:checked ~ .public-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .public-menu-check:checked ~ .public-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .chain-visual { min-height: 300px; }
  .chain-node {
    width: 68px;
    height: 68px;
  }
  .chain-node:nth-of-type(3) { left: 62%; }
  .chain-node:nth-of-type(6) { left: 68%; }
  .auth-card,
  .auth-intro {
    padding: 22px;
  }
  .auth-chain span { min-height: 84px; }
  .stats { grid-template-columns: 1fr; }
  body[data-page="merchant"] .stats { grid-template-columns: 1fr; }
  .partner-requirements { grid-template-columns: 1fr; }
  .activation-examples div {
    align-items: flex-start;
    flex-direction: column;
  }
  .activation-examples strong { text-align: left; }
  .commission-table div {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-title h1 { font-size: 23px; }
  .topbar-title p { font-size: 12px; }
  .hero-card { padding: 18px; }
  .copy-row { grid-template-columns: 1fr; }
  .list div, .switch-row, .wallet-address {
    align-items: flex-start;
    flex-direction: column;
  }
  .wallet-address .btn {
    width: 100%;
  }
  .info-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  body[data-page="wallet"] .panel {
    padding: 16px;
  }
  body[data-page="wallet"] input[type="file"] {
    font-size: 12px;
  }
  .maintenance-card h1 { font-size: 30px; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .afrix-home {
    min-height: 100svh;
    padding: 22px 18px 24px;
  }

  .home-header {
    min-height: 66px;
  }

  .home-header .brand .afrix-mark {
    width: 76px;
    height: 60px;
  }

  .home-header .brand strong {
    font-size: 25px;
  }

  .home-header .brand small {
    font-size: 15px;
  }

  .world-map {
    top: 48px;
    right: -54px;
    width: 260px;
    height: 160px;
  }

  .home-title {
    margin-top: 42px;
  }

  .home-title h1 {
    gap: 6px;
    margin-bottom: 14px;
    font-size: clamp(30px, 9vw, 38px);
  }

  .home-title p {
    font-size: 18px;
  }

  .finance-visual {
    min-height: 286px;
    margin-top: 14px;
  }

  .globe {
    left: 4%;
    bottom: 3%;
    width: 290px;
  }

  .phone {
    right: 2%;
    bottom: 0;
    width: 138px;
    border-width: 7px;
    border-radius: 24px;
  }

  .phone-screen {
    inset: 18px 9px auto;
    padding: 10px;
  }

  .wallet-card {
    left: -50%;
    right: 4%;
    top: 47%;
    min-height: 58px;
    padding: 9px;
  }

  .wallet-card span {
    width: 30px;
    height: 18px;
    margin-bottom: 8px;
  }

  .coin-a { right: 32%; bottom: 43%; }
  .coin-b { right: 24%; bottom: 54%; }
  .coin-c { right: 0; bottom: 39%; }
  .coin-d { right: 5%; bottom: 27%; }

  .home-actions {
    gap: 15px;
    margin-top: 18px;
  }

  .home-cta {
    min-height: 54px;
    padding-left: 18px;
    font-size: 16px;
  }

  .home-cta strong {
    font-size: 34px;
  }

  .home-categories {
    gap: 8px;
    margin-top: 30px;
  }

  .cat-icon {
    width: 48px;
  }

  .home-categories strong {
    font-size: 13px;
  }
}
