@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap");

:root {
  --black: #000000;
  --bg: #070707;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --ink: #ffffff;
  --muted: #a8a8a8;
  --line: rgba(229, 184, 11, 0.22);
  --card: rgba(22, 22, 22, 0.92);
  --gold: #e5b80b;
  --gold-bright: #ffd700;
  --gold-deep: #b8860b;
  --silver: #c0c0c0;
  --ok: #3dd68c;
  --warn: #e5b80b;
  --err: #ff6b5a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(229, 184, 11, 0.16) 0%, transparent 55%),
    radial-gradient(700px 420px at 95% 8%, rgba(192, 192, 192, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

p {
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin: 0.75rem auto 0;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 184, 11, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 18px rgba(229, 184, 11, 0.25);
}

.brand-text .b-damie,
.brand-text .b-media {
  color: #fff;
}

.brand-text .b-boost {
  color: var(--gold-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.nav-links a:not(.btn) {
  color: var(--silver);
}

.nav-links a:not(.btn):hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(229, 184, 11, 0.1);
  border: 1px solid rgba(229, 184, 11, 0.18);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #000;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #000;
  box-shadow: 0 10px 24px rgba(229, 184, 11, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(192, 192, 192, 0.35);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #000;
  border-radius: 999px;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1.05rem;
}

/* Hero — landing redesign */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 5.5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center end;
  pointer-events: none;
}

.hero-media img {
  width: min(72vw, 640px);
  max-width: 100%;
  margin-right: -4%;
  opacity: 0.55;
  filter: drop-shadow(0 30px 80px rgba(229, 184, 11, 0.32)) brightness(1.08);
  animation: heroFloat 10s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 78%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(ellipse 70% 60% at 18% 55%, rgba(229, 184, 11, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: none;
  justify-self: stretch;
}

.hero-content > * {
  max-width: 34rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -10% -10%;
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(229, 184, 11, 0.18), transparent 68%);
  filter: blur(8px);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, -6%) scale(1.08); }
}

@keyframes heroFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-18px) scale(1.03); }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 7.2vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(229, 184, 11, 0.35);
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: rise 0.8s ease both;
}

.hero-brand span {
  display: block;
  max-width: 100%;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  max-width: 100%;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  animation: rise 0.8s ease 0.06s both;
}

.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #f2f2f2;
  animation: rise 0.8s ease 0.1s both;
}

.hero-content > p.hero-sub,
.hero-content > p:not(.hero-brand):not(.hero-tagline) {
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 1.7rem;
  color: rgba(220, 220, 220, 0.86);
  animation: rise 0.8s ease 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.section-lead {
  max-width: 36rem;
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
}

.section-modules,
.section-platforms,
.section-devices,
.section-funcs {
  border-top: 1px solid var(--line);
}

.func-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.func-item {
  margin: 0;
  padding: 1.15rem 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(229, 184, 11, 0.28);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(10, 10, 10, 0.92));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.func-item:hover {
  border-color: rgba(229, 184, 11, 0.65);
  transform: translateY(-2px);
}

.func-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  color: var(--gold-bright);
  background: rgba(229, 184, 11, 0.1);
  border: 1px solid rgba(229, 184, 11, 0.35);
}

.func-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.func-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--gold-bright);
}

.func-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.module-card {
  margin: 0;
  padding: 0.25rem 0 0.15rem;
  border-radius: 18px;
  border: 1px solid rgba(229, 184, 11, 0.28);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(12, 12, 12, 0.94));
}

.module-card h3 {
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin: 1rem 1.1rem 0.4rem;
}

.module-card p {
  margin: 0 1.1rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.platform-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.platform-module {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(229, 184, 11, 0.45);
  background: #101010;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.platform-module:hover {
  border-color: rgba(229, 184, 11, 0.85);
  background: #141414;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.platform-module-icon {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(229, 184, 11, 0.1);
  border: 1px solid rgba(229, 184, 11, 0.32);
}

.platform-module-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.platform-module strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.device-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(229, 184, 11, 0.28);
  background: #101010;
}

.device-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.device-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.section-cta {
  margin-top: 1.6rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.section-split-reverse .split-copy { order: 2; }
.section-split-reverse .split-visual { order: 1; }

.split-copy > p {
  margin: 0 0 1.2rem;
  max-width: 34rem;
}

.split-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.split-points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--silver);
  font-size: 1rem;
}

.split-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold-bright);
}

.split-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(229, 184, 11, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(16, 16, 16, 0.9));
  border: 1px solid var(--line);
}

.feature-illust {
  display: block;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
  border-bottom: 1px solid rgba(229, 184, 11, 0.35);
}

.feature h3 {
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin: 1rem 1.2rem 0.45rem;
}

.feature p {
  margin: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.devices {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.device-art {
  display: grid;
  gap: 0.85rem;
}

.device-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transform-origin: left center;
  animation: pulseSoft 4s ease-in-out infinite;
}

.device-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.device-card figcaption {
  padding: 0.7rem 1rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.04em;
}

.device-card:nth-child(2) { animation-delay: 0.4s; }
.device-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes pulseSoft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 1.5rem;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold-bright);
}

/* Auth */
.auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(100%, 420px);
  padding: 1.75rem;
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #0d0d0d;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 184, 11, 0.15);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-msg {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.75rem;
}

.form-msg.is-error { color: var(--err); }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-info { color: var(--silver); }

.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  font-size: 0.92rem;
  line-height: 1.35;
}

.toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.toast-ok { border-color: rgba(61, 214, 140, 0.45); }
.toast-error { border-color: rgba(255, 107, 90, 0.45); }
.toast-info { border-color: rgba(229, 184, 11, 0.4); }

.pay-notif-list {
  display: grid;
  gap: 0.65rem;
}

.pay-notif {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.7);
}

.pay-notif strong {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--gold-bright);
}

.pay-notif span {
  color: var(--ink);
  font-size: 0.92rem;
}

.pay-notif time {
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-notif-credited { border-color: rgba(61, 214, 140, 0.35); }
.pay-notif-failed,
.pay-notif-canceled { border-color: rgba(255, 107, 90, 0.35); }
.pay-notif-verifying { border-color: rgba(229, 184, 11, 0.35); }

.auth-extra {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.auth-extra a {
  color: var(--gold-bright);
}

.bonus {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(229, 184, 11, 0.12);
  border: 1px solid rgba(229, 184, 11, 0.35);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Panel layout */
body.is-panel {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(229, 184, 11, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #050505, #0f0f0f);
}

.panel-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(10, 10, 10, 0.96);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.side-balance {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a2108, #15100a);
  border: 1px solid rgba(229, 184, 11, 0.45);
  color: #fff;
}

.side-balance span {
  display: block;
  font-size: 0.8rem;
  color: var(--silver);
}

.side-balance strong {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold-bright);
}

.bal-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}

.bal-stack .bal-usd {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.bal-stack .bal-cfa {
  font-family: var(--sans, inherit);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--silver);
  opacity: 0.95;
}

.cards .card .bal-stack .bal-usd {
  font-size: 1.45rem;
}

.cards .card .bal-stack .bal-cfa {
  font-size: 0.88rem;
}

.side-nav {
  display: grid;
  gap: 0.25rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: rgba(229, 184, 11, 0.12);
  color: var(--gold-bright);
}

.nav-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: inherit;
}

.nav-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.panel-main {
  padding: 1.5rem 1.25rem 2rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: 4rem;
}

.funds-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
}

.funds-tabs .btn {
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  font-weight: 700;
}

.funds-tabs .btn.is-active {
  background: linear-gradient(145deg, #3a2e0c, #1a1408);
  border-color: rgba(229, 184, 11, 0.55);
  color: var(--gold-bright);
}

.funds-panel[hidden] {
  display: none !important;
}

.panel-main h1 {
  font-size: clamp(1.35rem, 5.5vw, 2.1rem);
  margin-bottom: 1rem;
  max-width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--silver);
}

.card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  margin-top: 0.25rem;
  color: var(--gold-bright);
}

.panel-block {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.platform-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.platform-pick {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(229, 184, 11, 0.35);
  background: #101010;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.platform-pick:hover,
.platform-pick.is-active {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.platform-pick img {
  width: 100%;
  height: auto;
  max-height: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.platform-pick > span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
}

.platform-pick .chip-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  color: var(--gold-bright);
}

.platform-pick .chip-icon svg {
  width: 1rem;
  height: 1rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.network-card {
  appearance: none;
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: var(--surface);
  color: var(--silver);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.network-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}

.network-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chip-network {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chips-wrap {
  max-height: 11rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.chip.is-disabled,
.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chip-icon {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.network-card:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.network-card.is-active {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(229, 184, 11, 0.18), rgba(184, 134, 11, 0.08));
  color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(229, 184, 11, 0.35);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.service-card {
  appearance: none;
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: var(--surface);
  color: var(--silver);
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.service-illus {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(229, 184, 11, 0.1);
  border: 1px solid rgba(229, 184, 11, 0.22);
}

.service-card-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.service-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.25;
}

.service-card-meta {
  font-size: 0.78rem;
  color: var(--silver);
  opacity: 0.85;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.service-card.is-active {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(229, 184, 11, 0.16), rgba(184, 134, 11, 0.07));
  box-shadow: 0 0 0 1px rgba(229, 184, 11, 0.3);
}

.svc-illus {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 1.05em;
  vertical-align: -0.05em;
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.network-name {
  display: block;
}

.chip {
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.chip.is-active {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  border-color: var(--gold);
  color: #000;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.toolbar input {
  min-width: min(100%, 260px);
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
  background: #0d0d0d;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.plat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-right: 0.25rem;
}

.plat-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-grid;
  place-items: center;
}

.plat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(229, 184, 11, 0.14);
  color: var(--gold-bright);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending { background: rgba(229, 184, 11, 0.18); color: var(--gold-bright); }
.badge-in-progress { background: rgba(192, 192, 192, 0.16); color: var(--silver); }
.badge-completed { background: rgba(61, 214, 140, 0.16); color: var(--ok); }
.badge-canceled { background: rgba(255, 107, 90, 0.16); color: var(--err); }

.funds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.funds-grid .btn {
  border-radius: 16px;
  padding: 0.85rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.2;
}

.funds-grid .btn .funds-amt-usd {
  font-weight: 700;
}

.funds-grid .btn .funds-amt-cfa {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--silver);
  opacity: 0.95;
}

#usdt-credit.bal-stack,
#pay-credit.bal-stack {
  display: inline-flex;
  vertical-align: middle;
}

#usdt-credit.bal-stack .bal-usd,
#pay-credit.bal-stack .bal-usd {
  font-size: 1.15rem;
}

#usdt-credit.bal-stack .bal-cfa,
#pay-credit.bal-stack .bal-cfa {
  font-size: 0.85rem;
}

.funds-grid .btn:hover,
.funds-grid .btn.is-active {
  border-color: var(--gold);
  background: rgba(229, 184, 11, 0.1);
  color: var(--gold-bright);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.method-card {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(192, 192, 192, 0.25);
  background: var(--surface);
  color: var(--silver);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.method-card strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
}

.method-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.method-card:hover,
.method-card.is-active {
  border-color: var(--gold);
  background: rgba(229, 184, 11, 0.1);
}

.method-card.is-active strong {
  color: var(--gold-bright);
}

.pay-box {
  display: grid;
  gap: 0.65rem;
}

.pay-steps {
  margin: 0.4rem 0 0.8rem 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.badge-awaitingpayment { background: rgba(229, 184, 11, 0.18); color: var(--gold-bright); }
.badge-verifying { background: rgba(192, 192, 192, 0.16); color: var(--silver); }
.badge-credited,
.badge-completed { background: rgba(61, 214, 140, 0.16); color: var(--ok); }

.api-box,
.code-box {
  padding: 1rem;
  border-radius: 14px;
  background: #050505;
  color: var(--gold-bright);
  border: 1px solid rgba(229, 184, 11, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}

.key-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ticket-card {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 0.6rem;
}

.ticket-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--gold-bright);
}

.legal {
  width: min(100% - 2rem, 760px);
  margin: 2rem auto 3rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--line);
}

.legal h1 {
  margin-bottom: 1rem;
}

.legal h2 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.panel-toggle {
  display: none;
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 60;
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .devices { grid-template-columns: 1fr; }

  .hero {
    align-items: center;
    padding: 4.25rem 0 2.25rem;
    text-align: left;
    overflow: hidden;
  }

  .hero-media {
    place-items: end center;
  }

  .hero-media img {
    width: min(88%, 420px);
    max-width: 100%;
    margin: 0 auto -6%;
    opacity: 0.22;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.95) 100%),
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(229, 184, 11, 0.14), transparent 65%);
  }

  .hero-content {
    max-width: none;
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero-brand {
    font-size: clamp(1.5rem, 8vw, 2.6rem);
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
  }

  .hero-content > p.hero-sub,
  .hero-content > p:not(.hero-brand):not(.hero-tagline) {
    font-size: 0.98rem;
  }

  .hero-cta {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .section h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .section-lead {
    font-size: 0.98rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .site-header {
    width: min(100% - 1.25rem, var(--max));
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    position: relative;
    border-radius: 18px;
  }

  .split-panel { grid-template-columns: 1fr; }
  .section-split-reverse .split-copy,
  .section-split-reverse .split-visual { order: initial; }
  .platform-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .func-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .funds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; }

  .panel-shell {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow-x: clip;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 280px);
    max-width: 100%;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open { transform: none; }
  .panel-toggle { display: inline-flex; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .nav-links.is-open { display: flex; }

  .panel-main {
    padding: 1.1rem 0.9rem 1.75rem;
    padding-top: 3.4rem;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar input {
    width: 100%;
    min-width: 0;
  }

  .data-table {
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.55rem 0.4rem;
  }

  .btn-lg {
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .funds-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .func-grid { grid-template-columns: 1fr; }
  .platform-rail { grid-template-columns: 1fr; }

  .hero {
    min-height: auto;
    padding: 2.1rem 0 1.75rem;
  }

  .brand-text { display: none; }

  .hero-brand {
    font-size: clamp(1.45rem, 9vw, 2.05rem);
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .hero-tagline {
    letter-spacing: 0.06em;
    font-size: 0.68rem;
    gap: 0.4rem;
  }

  .hero-tagline::before,
  .hero-tagline::after {
    width: 0.7rem;
  }

  .hero-content h1 {
    font-size: clamp(1.15rem, 5.5vw, 1.45rem);
  }

  .hero-content > p.hero-sub,
  .hero-content > p:not(.hero-brand):not(.hero-tagline) {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .section h2 {
    font-size: clamp(1.3rem, 7vw, 1.7rem);
  }

  .module-card h3,
  .func-item h3 {
    font-size: 0.98rem;
  }

  .module-card p,
  .func-item p {
    font-size: 0.88rem;
  }

  .quick-actions .btn,
  .chips .chip {
    max-width: 100%;
  }

  .card strong {
    font-size: 1.25rem;
  }

  .side-nav a {
    font-size: 0.92rem;
  }
}
