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

:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #1f1f23;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #f4f4f5;
  --accent-fg: #09090b;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --nav-h: 60px;
  --top-h: 52px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0; padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
code, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.skip { position: absolute; left: -9999px; }
.app-bg { display: none; }

/* ========== Brand ========== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
.btn:hover { background: var(--surface-2); }
.btn:active { opacity: 0.9; }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(0.95); background: var(--accent); }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-danger { color: var(--red); border-color: rgba(248,113,113,0.3); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* ========== Top (landing) ========== */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--top-h);
  padding: 0 16px;
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 8px; align-items: center; }

/* ========== Layout shells ========== */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.4rem; margin: 14px 0 6px; }
.auth-card .muted { color: var(--text-2); font-size: 14px; margin-bottom: 4px; }

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky; top: 0;
  height: 100dvh;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  overflow-y: auto;
}
.sidebar .brand { margin: 6px 10px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.side-nav a svg { width: 18px; height: 18px; opacity: 0.9; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--surface-2); color: var(--text); }
.app-content { min-width: 0; display: flex; flex-direction: column; }
.main {
  padding: 20px 24px 40px;
  max-width: 900px;
  width: 100%;
}
.top-mobile { display: none; }
.mobile-bar { display: none; }

/* ========== Page bits ========== */
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.muted { color: var(--text-2); }
.help { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 1.45rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.stat span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.stat b {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3 { font-size: 15px; margin-bottom: 4px; }

/* Action list (dashboard links) */
.grid-3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid-3 > a.card,
.grid-3 > .card,
a.card.action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 64px;
  transition: background .15s ease, border-color .15s ease;
}
.grid-3 > a.card:hover,
a.card.action:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.grid-3 .icon,
.grid-3 .tile-icon,
.card .icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin: 0 !important;
  flex-shrink: 0;
}
.grid-3 .icon svg,
.grid-3 .tile-icon svg,
.card .icon svg,
.grid-3 > a.card > svg:first-child {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0;
}
.grid-3 > a.card > svg:first-child {
  /* if icon is raw svg without wrapper */
  width: 18px !important;
  height: 18px !important;
  padding: 11px;
  box-sizing: content-box;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.grid-3 h3 {
  font-size: 14px;
  margin: 0 0 2px;
}
.grid-3 p,
.grid-3 .muted {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.3;
}
.grid-3 > a.card > div {
  flex: 1;
  min-width: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.span-2 { grid-column: span 2; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hair {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}
.notice {
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Forms */
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--line-2);
}
textarea { min-height: 96px; resize: vertical; }
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.flash {
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flash.ok { color: var(--green); border-color: rgba(52,211,153,0.25); }
.flash.err { color: var(--red); border-color: rgba(248,113,113,0.25); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.badge.ok { color: var(--green); border-color: rgba(52,211,153,0.3); }
.badge.warn { color: var(--amber); border-color: rgba(251,191,36,0.3); }
.badge.err { color: var(--red); border-color: rgba(248,113,113,0.3); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
tr:last-child td { border-bottom: 0; }

.qr-box {
  width: min(200px, 70vw);
  aspect-ratio: 1;
  margin: 12px auto;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.qr-box img { width: 100%; height: auto; }
.pix-code {
  word-break: break-all;
  font-size: 12px;
  line-height: 1.45;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px;
}
pre.code, .code {
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.45;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero {
  padding: 40px 0 28px;
}
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  max-width: 14ch;
}
.hero p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 36ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.section { padding: 24px 0; }
.section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.foot {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 12px;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none !important; }

  .top-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: var(--top-h);
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(9,9,11,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }

  .main {
    padding: 14px 14px calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100%;
  }

  .stats { grid-template-columns: 1fr; gap: 8px; }
  .split, .form-grid, .grid-3 { grid-template-columns: 1fr !important; }
  .span-2 { grid-column: auto; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn { width: 100%; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .top .nav-links .btn-ghost { display: none; }

  /* Bottom tab bar */
  .shell-app .mobile-bar,
  .shell-admin .mobile-bar,
  body.has-mobile-nav .mobile-bar {
    display: flex !important;
  }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(9,9,11,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    max-width: 76px;
    color: var(--text-3);
    font-size: 10px;
    font-weight: 500;
  }
  .mobile-bar a.active { color: var(--text); }
  .mobile-bar a svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor;
    fill: none;
  }
  .mobile-bar a span {
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 901px) {
  .mobile-bar { display: none !important; }
  .top-mobile { display: none !important; }
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .grid-3 > a.card {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 16px;
  }
  .grid-3 .icon { margin-bottom: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Landing SaaS */
.hero-saas {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 40px 16px 28px;
}
.hero-copy h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  max-width: 16ch;
  margin-top: 6px;
}
.lede {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 38ch;
  line-height: 1.5;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.panel-inner {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 4px 0 16px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.feature-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.feature-item p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.4;
}
.icon-chip {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.icon-chip svg {
  width: 18px !important;
  height: 18px !important;
}

/* Mobile bar: filled icons always show */
.mobile-bar a svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  stroke: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-shrink: 0;
}
.side-nav a svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-saas {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 14px 16px;
  }
  .panel { order: 2; }
}

/* ===== Startup tech landing ===== */
body.shell-market {
  background: #050507;
}
body.shell-market::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(168, 85, 247, 0.1), transparent 55%),
    linear-gradient(180deg, #07070a 0%, #050507 40%, #050507 100%);
}
body.shell-market .top {
  background: rgba(5, 5, 7, 0.65);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.shell-market .top .btn:not(.btn-primary) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
body.shell-market main {
  position: relative;
  z-index: 1;
}
body.shell-market .hero-saas {
  padding-top: 48px;
  padding-bottom: 36px;
}
body.shell-market .kicker {
  color: #a5b4fc;
  letter-spacing: 0.14em;
}
body.shell-market .hero-copy h1 {
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body.shell-market .lede {
  color: rgba(228, 228, 231, 0.72);
}
body.shell-market .panel {
  background: rgba(18, 18, 24, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.shell-market .panel-inner {
  background: rgba(9, 9, 12, 0.45);
  border-color: rgba(255, 255, 255, 0.07);
}
body.shell-market .stat-num {
  background: linear-gradient(90deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.shell-market .feature-item {
  background: rgba(18, 18, 24, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
body.shell-market .feature-item:hover {
  background: rgba(24, 24, 32, 0.55);
  border-color: rgba(165, 180, 252, 0.25);
  transform: translateY(-1px);
}
body.shell-market .icon-chip {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(129, 140, 248, 0.25);
  color: #c7d2fe;
}
body.shell-market .section-title {
  color: #fafafa;
}
body.shell-market .btn-primary {
  background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 100%);
  border: none;
  color: #0f0f14;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.25);
}
body.shell-market .btn-primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
}
body.shell-market .btn:not(.btn-primary) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
body.shell-market .badge.ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}
body.shell-market .foot {
  position: relative;
  z-index: 1;
  border-top-color: rgba(255,255,255,0.06);
  background: transparent;
}
body.shell-market pre.code {
  background: rgba(9, 9, 12, 0.55);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.08);
}

/* subtle grid overlay on market */
body.shell-market::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

@media (max-width: 900px) {
  body.shell-market .hero-saas {
    padding-top: 28px;
  }
}

/* Hero visual card — Pix → Crypto */
.panel-visual {
  position: relative;
  overflow: hidden;
}
.panel-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.2), transparent 45%);
  pointer-events: none;
}
.panel-visual > * { position: relative; z-index: 1; }

.viz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.viz-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.viz-pill-crypto {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}
.viz-arrow {
  color: var(--text-3);
  font-size: 14px;
}
.viz-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.viz-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.viz-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.viz-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.viz-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.viz-step small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.viz-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  flex-shrink: 0;
}
.viz-dot-2 {
  background: #818cf8;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.55);
}
.viz-dot-3 {
  background: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.55);
}
.cta-block {
  padding-bottom: 48px;
}

body.shell-market .hero-copy h1 {
  max-width: 12ch;
  line-height: 1.08;
}

/* Gate / CaullerPay visual layer — additive, payment logic untouched */
:root {
  --bg: #07111f;
  --surface: #0d1b2e;
  --surface-2: #11253d;
  --surface-3: #173451;
  --line: rgba(157, 190, 221, .16);
  --line-2: rgba(157, 190, 221, .28);
  --text: #f5f9ff;
  --text-2: #9fb3c9;
  --text-3: #6f89a4;
  --accent: #54e0ad;
  --accent-fg: #062019;
  --green: #54e0ad;
  --red: #ff7f8f;
  --amber: #f8c76b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .32);
}
html, body { background: radial-gradient(circle at 82% -10%, rgba(42, 119, 188, .24), transparent 38%), var(--bg); }
body { letter-spacing: .005em; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.brand { gap: 9px; letter-spacing: .1em; }
.brand svg { color: var(--accent); filter: drop-shadow(0 0 12px rgba(84,224,173,.32)); }
.brand em { color: var(--text-3); font-style: normal; font-size: 9px; letter-spacing: .18em; margin-left: -4px; align-self: flex-end; margin-bottom: 3px; }
.top { height: 70px; padding: 0 max(22px, calc((100vw - 1180px)/2)); background: rgba(7,17,31,.78); border-bottom-color: var(--line); }
.wrap { max-width: 1180px; padding: 0 22px; }
.btn { min-height: 44px; border-radius: 12px; border-color: var(--line); background: rgba(255,255,255,.025); font-weight: 600; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); box-shadow: 0 8px 22px rgba(84,224,173,.18); }
.btn-primary:hover { background: #6be8bb; filter: none; box-shadow: 0 10px 28px rgba(84,224,173,.3); }
.hero { padding-top: clamp(60px, 10vw, 118px); padding-bottom: 90px; }
.hero-saas { align-items: center; gap: clamp(30px, 7vw, 90px); }
.hero-copy { max-width: 590px; }
.kicker { color: var(--accent); letter-spacing: .18em; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.lede { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; max-width: 54ch; margin-top: 22px; }
.hero-actions { margin-top: 30px; gap: 12px; }
.panel, .card, .stat { background: linear-gradient(145deg, rgba(20,50,78,.88), rgba(10,24,42,.96)); border-color: var(--line); box-shadow: var(--shadow); }
.panel-visual { border-radius: 24px; padding: clamp(24px, 4vw, 38px); position: relative; overflow: hidden; }
.panel-visual::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -100px; border-radius: 50%; background: rgba(84,224,173,.12); filter: blur(2px); }
.viz-pill { border-color: rgba(84,224,173,.3); background: rgba(84,224,173,.1); color: var(--accent); }
.viz-pill-crypto { color: #9cc8ff; border-color: rgba(156,200,255,.3); background: rgba(156,200,255,.1); }
.viz-amount { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.06em; }
.feature-list { gap: 14px; }
.feature-item { padding: 22px; border-radius: var(--radius); background: rgba(13,27,46,.72); border: 1px solid var(--line); }
.icon-chip { color: var(--accent); background: rgba(84,224,173,.1); border-color: rgba(84,224,173,.2); }
.section { padding-bottom: 78px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.cta-block { border: 1px solid rgba(84,224,173,.22); background: linear-gradient(135deg, rgba(84,224,173,.10), rgba(17,37,61,.75)); border-radius: 24px; padding: clamp(26px, 5vw, 50px); margin-bottom: 60px; }
.foot { border-top-color: var(--line); color: var(--text-3); padding-top: 24px; padding-bottom: 28px; }
.sidebar { background: rgba(6,16,29,.92); border-right-color: var(--line); padding: 22px 14px; }
.sidebar .brand { margin: 6px 12px 34px; }
.side-nav a { min-height: 46px; border-radius: 12px; }
.side-nav a.active { background: linear-gradient(90deg, rgba(84,224,173,.16), rgba(84,224,173,.04)); color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.main { max-width: 1080px; padding: 34px clamp(18px, 4vw, 48px) 70px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.stat { padding: 20px; border-radius: var(--radius); }
.stat b { font-size: 1.5rem; color: var(--text); }
.auth-shell { background: radial-gradient(circle at 50% 0, rgba(34,105,167,.25), transparent 48%); }
.auth-card { border-color: var(--line); border-radius: 24px; background: rgba(13,27,46,.9); box-shadow: 0 22px 80px rgba(0,0,0,.4); padding: 34px 28px; backdrop-filter: blur(16px); }
.auth-card h1 { font-size: 1.8rem; margin-top: 22px; }
input, select, textarea { background: #09182a; border-color: var(--line-2); color: var(--text); border-radius: 10px; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(84,224,173,.13); }
.flash.ok { background: rgba(84,224,173,.12); border-color: rgba(84,224,173,.32); color: #a7f5d7; }
.flash.err { background: rgba(255,127,143,.11); border-color: rgba(255,127,143,.3); }
pre, .pix-code { background: #061321; border-color: var(--line); }
@media (max-width: 760px) {
  .top { height: 62px; padding: 0 16px; }
  .nav-links { gap: 4px; }
  .nav-links .btn { min-height: 38px; padding: 0 10px; font-size: 12px; }
  .hero { padding-top: 58px; padding-bottom: 60px; }
  .hero-saas { display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-visual { margin-top: 10px; }
  .feature-list { display: grid; }
  .feature-item { padding: 18px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .top-mobile { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(7,17,31,.9); }
  .main { padding: 26px 16px 92px; }
  .stats { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); background: rgba(6,16,29,.96); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-bar a { min-width: 0; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; padding: 4px 2px; }
  .mobile-bar a.active { color: var(--accent); }
  .mobile-bar svg { width: 18px; height: 18px; }
  .auth-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
