/* =========================================================
   SatNet — /join referral onboarding funnel
   Mobile-first webapp. Extends brand.css.
   ========================================================= */

:root {
  --join-max: 760px;
  --statusbar-h: 92px;
  --actionbar-h: 84px;
}

/* clip (not hidden): hidden makes body a scroll container, which can detach
   position:fixed bars from the viewport. clip hides overflow with no scroll box. */
body { background: var(--bg-0); overflow-x: clip; }
/* keep the cosmic starfield from brand.css but calm it slightly */
body::after { opacity: 0.4; }

/* page is a single scroll column reserved for sticky bars */
.join-page {
  min-height: 100vh;
  padding-top: var(--statusbar-h);
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
}
.join-col {
  width: 100%;
  max-width: var(--join-max);
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* ============================
   1) Sticky top status bar
   ============================ */
.jsb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.jsb-row {
  max-width: var(--join-max); margin: 0 auto;
  padding: 12px 18px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.jsb-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; }
.jsb-brand svg { width: 26px; height: 26px; }
.jsb-actions { display: flex; align-items: center; gap: 6px; }
.jsb-lang { position: relative; }
.jsb-lang summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  min-height: 36px; box-sizing: border-box;
}
.jsb-lang summary::-webkit-details-marker { display: none; }
.jsb-lang[open] summary { color: var(--accent); border-color: rgba(107,227,214,0.3); }
.jsb-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 6px; box-shadow: 0 24px 48px rgba(0,0,0,0.5); z-index: 70;
}
.jsb-lang-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; min-height: 44px;
  background: transparent; border: 0; color: var(--ink-soft);
  font-family: var(--f-body); font-size: 14px; text-align: left; cursor: pointer; border-radius: 8px;
}
.jsb-lang-menu button:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.jsb-lang-menu button[aria-pressed="true"] { color: var(--accent); }
.jsb-lang-menu .code { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }
/* Home-style top nav (matches landing) */
.jsb-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.jsb-nav a {
  font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px; text-decoration: none; transition: 0.15s; white-space: nowrap;
}
.jsb-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.jsb-burger {
  display: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04);
  color: var(--ink-soft); cursor: pointer; flex: 0 0 auto; padding: 0;
}
.jsb-burger:hover { color: var(--ink); }
.jsb-mobile-menu {
  position: absolute; top: 100%; inset-inline-end: 14px; margin-top: 6px;
  background: var(--bg-2, #0A0E1A); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 8px; display: grid; gap: 2px; min-width: 210px; z-index: 120; box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.jsb-mobile-menu[hidden] { display: none; }
.jsb-mobile-menu a { padding: 11px 14px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.jsb-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
@media (max-width: 980px) {
  .jsb-nav { display: none; }
  .jsb-burger { display: flex; }
}
@media (min-width: 981px) { .jsb-mobile-menu { display: none !important; } }

/* In-flow learn-more block */
.learn-more {
  margin-top: 18px; padding: 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line-strong);
}
.learn-more-head { margin-bottom: 12px; }
.learn-more .lm-title { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.learn-more .lm-sub { font-size: 13px; line-height: 1.5; color: var(--ink-mute); margin-top: 2px; }
.learn-more-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lm-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong);
  text-decoration: none; color: var(--ink-soft); transition: border-color .15s, background .15s;
}
.lm-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(107,227,214,0.3); }
.lm-link svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.lm-link span { display: flex; flex-direction: column; }
.lm-link .lm-k { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lm-link .lm-v { font-size: 11.5px; color: var(--ink-mute); line-height: 1.35; }
@media (max-width: 640px) { .learn-more-links { grid-template-columns: 1fr; } }
.jsb-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  color: var(--ink-soft); cursor: pointer; display: grid; place-items: center;
}
.jsb-close:hover { background: rgba(255,255,255,0.08); color: var(--ink); }

/* progress dots */
.jsb-progress {
  max-width: var(--join-max); margin: 0 auto;
  padding: 0 18px 12px;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.jsb-progress::-webkit-scrollbar { display: none; }
.jsb-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.jsb-step .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  transition: 0.25s;
}
.jsb-step .lbl {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); white-space: nowrap; transition: 0.25s;
}
.jsb-step.done .dot { background: var(--success); border-color: var(--success); }
.jsb-step.done .lbl { color: var(--ink-mute); }
.jsb-step.active .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(107,227,214,0.15); }
.jsb-step.active .lbl { color: var(--accent); }
.jsb-step .sep { width: 14px; height: 1px; background: var(--line-strong); flex-shrink: 0; }

/* ============================
   Section scaffolding
   ============================ */
  .join-section { padding: 28px 0; }
.join-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.join-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); opacity: 0.6; }
.join-h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 5vw, 30px); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 10px; }
.join-lead { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0; }

/* ============================
   2) Sponsor hero
   ============================ */
.sponsor-card {
  margin-top: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.sponsor-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 20% 0%, rgba(107,227,214,0.10), transparent 62%);
}
.sponsor-invite {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 18px; position: relative;
}
.sponsor-top { display: flex; gap: 18px; align-items: center; position: relative; }
.sponsor-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
  background: var(--bg-3);
  font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--ink);
}
.sponsor-avatar::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--tier-a, var(--gold-a)), var(--tier-b, var(--gold-b)), var(--tier-a, var(--gold-a)));
  z-index: -1;
}
.sponsor-avatar.bronze  { --tier-a: var(--bronze-a); --tier-b: var(--bronze-b); }
.sponsor-avatar.silver  { --tier-a: var(--silver-a); --tier-b: var(--silver-b); }
.sponsor-avatar.gold    { --tier-a: var(--gold-a);   --tier-b: var(--gold-b); }
.sponsor-avatar.diamond { --tier-a: var(--diamond-a);--tier-b: var(--diamond-b); }
.sponsor-avatar.crown   { --tier-a: var(--crown-a);  --tier-b: var(--crown-b); }
.sponsor-id { min-width: 0; flex: 1; }
.sponsor-name { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; line-height: 1.1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sponsor-name .verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--success); background: rgba(63,209,139,0.08); border: 1px solid rgba(63,209,139,0.28);
  padding: 3px 7px; border-radius: 999px;
}
.sponsor-meta-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sponsor-tierpill {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.sponsor-tierpill.bronze  { color: var(--bronze-a); background: rgba(226,154,108,0.12); border: 1px solid rgba(226,154,108,0.3); }
.sponsor-tierpill.silver  { color: var(--silver-a); background: rgba(232,238,245,0.08); border: 1px solid rgba(232,238,245,0.22); }
.sponsor-tierpill.gold    { color: var(--gold-a); background: rgba(248,215,127,0.12); border: 1px solid rgba(248,215,127,0.3); }
.sponsor-tierpill.diamond { color: var(--diamond-a); background: rgba(184,241,255,0.12); border: 1px solid rgba(184,241,255,0.3); }
.sponsor-tierpill.crown   { color: var(--crown-a); background: rgba(216,184,255,0.14); border: 1px solid rgba(216,184,255,0.34); }
.sponsor-region { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.sponsor-bio { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 18px 0 0; position: relative; }
.sponsor-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; }
.sponsor-stat {
  flex: 1; min-width: 90px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
.sponsor-stat .v { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sponsor-stat .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.sponsor-note {
  margin-top: 16px; padding: 14px 16px; position: relative;
  background: rgba(110,124,255,0.05); border: 1px solid rgba(110,124,255,0.18);
  border-radius: var(--r-md);
  font-size: 13px; line-height: 1.5; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.sponsor-note svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,0.04); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }
.sk-line { height: 12px; border-radius: 6px; margin-bottom: 8px; }

/* ============================
   3) What is SatNet — cards
   ============================ */
.what-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.what-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; position: relative; overflow: hidden;
}
.what-card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(107,227,214,0.08); border: 1px solid rgba(107,227,214,0.18);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--accent);
}
.what-card .ic svg { width: 22px; height: 22px; }
.what-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin: 0 0 8px; }
.what-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin: 0; }
.what-card .streams { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.what-card .stream { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; padding: 6px 0; border-top: 1px dashed var(--line); }
.what-card .stream .k { color: var(--ink-soft); }
.what-card .stream .v { color: var(--accent); font-weight: 600; }

/* ============================
   4) Tier picker
   ============================ */
.tier-picker {
  position: relative;
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 14px -18px 0; padding: 28px 50% 36px; /* big side padding lets first/last snap to center */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tier-picker::-webkit-scrollbar { display: none; }
/* Edge fades so the user sees this is scrollable */
.tier-picker-wrap { position: relative; }
.tier-picker-wrap::before,
.tier-picker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 2;
}
.tier-picker-wrap::before { left: 0;  background: linear-gradient(90deg, var(--bg-0), transparent); }
.tier-picker-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }

.tier-opt {
  flex: 0 0 260px; scroll-snap-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 18px 18px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2,0.7,0.3,1),
              border-color 0.2s,
              box-shadow 0.25s,
              opacity 0.25s;
  display: flex; flex-direction: column; align-items: stretch;
  min-height: 380px;
  transform: scale(0.94);
  opacity: 0.72;
  transform-origin: center center;
}
.tier-opt:hover { border-color: var(--line-strong); opacity: 0.92; }
.tier-opt.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 60px rgba(107,227,214,0.18), 0 0 80px rgba(107,227,214,0.10);
  transform: scale(1.06);
  opacity: 1;
  z-index: 3;
}
.tier-opt.selected::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px 160px at 50% 0%, rgba(107,227,214,0.10), transparent 62%);
}
.tier-opt .pill {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
}
.tier-opt .pill.recommended { color: #04221F; background: var(--accent); }
.tier-opt .pill.founder {
  color: #fff; background: linear-gradient(135deg, var(--crown-a), var(--crown-b));
  animation: founder-glow 2.4s ease-in-out infinite;
}
@keyframes founder-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(216,184,255,0.5); } 50% { box-shadow: 0 0 0 6px rgba(216,184,255,0); } }
.tier-opt .badge { width: 78px; height: 78px; margin: 4px auto 10px; }
.tier-opt .badge svg { width: 100%; height: 100%; }
.tier-opt .tname { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; text-align: center; }
.tier-opt .tprice {
  font-family: var(--f-mono); font-weight: 700; font-size: 24px; text-align: center;
  letter-spacing: -0.01em; margin-top: 4px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tier-opt .tprice small { font-size: 12px; color: var(--ink-mute); font-weight: 500; margin-inline-start: 4px; }
.tier-opt .tcap {
  align-self: center; margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  white-space: nowrap;
}
.tier-opt.selected .tcap { color: var(--accent); border-color: rgba(107,227,214,0.30); background: rgba(107,227,214,0.06); }
.tier-opt .tperks { list-style: none; padding: 0; margin: 16px 0 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tier-opt .tperks li { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.tier-opt .tperks li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tier-opt .tradio {
  margin-top: auto; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  transition: 0.15s;
}
.tier-opt .tradio .check { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-mute); display: grid; place-items: center; }
.tier-opt.selected .tradio { background: rgba(107,227,214,0.10); border-color: rgba(107,227,214,0.4); color: var(--accent); }
.tier-opt.selected .tradio .check { border-color: var(--accent); background: var(--accent); }
.tier-opt.selected .tradio .check svg { width: 10px; height: 10px; color: #04221F; }
.tier-opt:not(.selected) .tradio .check svg { display: none; }

/* swipe hint */
.tier-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; }

/* ============================
   5) Earnings estimator
   ============================ */
.estimator {
  margin-top: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; position: relative; overflow: hidden;
}
.est-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.est-block {
  padding: 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
.est-block .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.est-block .v { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.est-block .v small { font-family: var(--f-mono); font-size: 13px; color: var(--ink-mute); font-weight: 500; margin-left: 3px; }
.est-block.direct .v { color: var(--accent); }
.est-block.match .v { color: var(--accent-2); }
.est-slider-wrap { margin-top: 8px; }
.est-slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.est-slider-head .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.est-slider-head .count { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.est-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 25%), rgba(255,255,255,0.08) var(--fill, 25%));
  outline: none; cursor: pointer;
}
.est-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-0);
  box-shadow: 0 2px 10px rgba(107,227,214,0.4); cursor: grab;
}
.est-slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-0); cursor: grab;
}
.est-scenario { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 14px 0 0; }
.est-scenario b { color: var(--ink); font-weight: 600; }
.est-disclaimer {
  margin-top: 16px; padding: 12px 14px;
  background: rgba(242,181,68,0.05); border: 1px solid rgba(242,181,68,0.18);
  border-radius: var(--r-md);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--ink-mute); letter-spacing: 0.02em;
  display: flex; gap: 8px; align-items: flex-start;
}
.est-disclaimer svg { width: 14px; height: 14px; color: var(--warning); flex-shrink: 0; margin-top: 1px; }

/* ============================
   6) Sticky bottom action bar
   ============================ */
.jbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
}
.jbar-inner { max-width: var(--join-max); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.jbar-primary {
  width: 100%; min-height: 54px;
  border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4FD0E8);
  color: #04221F;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 28px rgba(107,227,214,0.28);
  transition: 0.15s;
}
.jbar-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(107,227,214,0.36); }
.jbar-primary:active { transform: translateY(0); }
.jbar-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.jbar-primary .spinner { width: 18px; height: 18px; border: 2px solid rgba(4,34,31,0.3); border-top-color: #04221F; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.jbar-secondary {
  width: 100%; min-height: 44px;
  background: transparent; border: 0;
  color: var(--ink-mute); font-family: var(--f-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: 0.15s;
}
.jbar-secondary:hover { color: var(--ink-soft); }
.jbar-meta { text-align: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-dim); }
.jbar-meta .wallet-chip { color: var(--success); }

/* inline error/notice in bar */
.jbar-notice {
  display: none;
  margin-bottom: 4px; padding: 10px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.4;
  align-items: flex-start; gap: 8px;
}
.jbar-notice.show { display: flex; }
.jbar-notice.error { background: rgba(255,90,106,0.08); border: 1px solid rgba(255,90,106,0.25); color: #FFB3BA; }
.jbar-notice.warn { background: rgba(242,181,68,0.08); border: 1px solid rgba(242,181,68,0.25); color: #FFD98A; }
.jbar-notice.info { background: rgba(110,124,255,0.08); border: 1px solid rgba(110,124,255,0.25); color: #B9C0FF; }
.jbar-notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.jbar-notice a { color: var(--accent); text-decoration: underline; }

/* ============================
   7) Post-mint reveal (overlay)
   ============================ */
.reveal {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(800px 600px at 50% 30%, #10173A, var(--bg-0) 70%);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  text-align: center;
}
.reveal.open { display: flex; animation: reveal-fade 0.4s ease-out; }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
.reveal-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.reveal-confetti span {
  position: absolute; top: -10px; width: 8px; height: 8px; border-radius: 2px;
  opacity: 0; animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(110vh) rotate(720deg); }
}
.reveal-inner { position: relative; z-index: 2; max-width: 440px; width: 100%; }
.reveal-sponsor-notified {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 28px;
}
.reveal-sponsor-notified .mini-av {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold-a);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 9px; color: #04221F;
}
.reveal-badge { width: 200px; height: 200px; margin: 0 auto 24px; position: relative; }
.reveal-badge svg { width: 100%; height: 100%; }
.reveal-badge::before {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,227,214,0.2), transparent 65%);
  animation: badge-breathe 3s ease-in-out infinite;
}
@keyframes badge-breathe { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.reveal-orbit-sat {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px;
  animation: orbit-sat 6s linear infinite;
}
@keyframes orbit-sat {
  from { transform: rotate(0deg) translateX(108px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(108px) rotate(-360deg); }
}
.reveal h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px,7vw,40px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.reveal h1 .accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.reveal-token {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; color: var(--accent);
  background: rgba(107,227,214,0.06); border: 1px solid rgba(107,227,214,0.25);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 30px;
}
.reveal-ctas { display: flex; flex-direction: column; gap: 10px; }
.reveal-ctas .btn { width: 100%; min-height: 52px; font-size: 15px; }

/* ============================
   Trust strip footer
   ============================ */
.join-trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
  padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 8px;
}
.join-trust .item { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.join-trust .item svg { width: 14px; height: 14px; color: var(--accent); }
.join-disclaimer { text-align: center; font-family: var(--f-mono); font-size: 10px; line-height: 1.7; color: var(--ink-dim); padding: 16px 0 0; letter-spacing: 0.02em; }

/* ============================
   Desktop expansion
   ============================ */
@media (min-width: 880px) {
  :root { --actionbar-h: 0px; }
  .join-page { padding-bottom: 40px; padding-top: 104px; }
  .join-col { max-width: 1080px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
  .join-main { min-width: 0; grid-column: 1; grid-row: 1; }
  /* sponsor becomes a sticky sidebar on the right (narrow column) */
  .join-aside { grid-column: 2; grid-row: 1; position: sticky; top: 120px; }
  .join-aside .sponsor-card { margin-top: 0; }
  .join-aside .sponsor-invite { margin-top: 0; }
  /* sticky bar collapses into the sidebar on desktop */
  .jbar { position: static; background: none; border: 0; backdrop-filter: none; padding: 0; margin-top: 16px; }
  .jbar-inner { max-width: none; }
  /* what-grid 2x2 */
  .what-grid { grid-template-columns: 1fr 1fr; }
  .est-result { grid-template-columns: 1fr 1fr; }
}

/* desktop carousel — slightly wider cards + more room to scale the selected one */
@media (min-width: 1200px) {
  .tier-opt { flex: 0 0 290px; min-height: 410px; }
  .tier-opt .badge { width: 86px; height: 86px; }
}

/* very small phones */
@media (max-width: 360px) {
  .join-col { padding: 0 14px; }
  .sponsor-card { padding: 20px; }
  .tier-opt { flex: 0 0 210px; }
  .est-result { grid-template-columns: 1fr; }
}

/* ============================
   RTL
   ============================ */
[dir="rtl"] .jsb-lang-menu { right: auto; left: 0; }
[dir="rtl"] .join-eyebrow::before { /* keep */ }
[dir="rtl"] .est-slider { background: linear-gradient(270deg, var(--accent) var(--fill, 25%), rgba(255,255,255,0.08) var(--fill, 25%)); }
[dir="rtl"][lang="fa"] body { font-family: var(--f-fa); }
[dir="rtl"][lang="ar"] body { font-family: var(--f-ar); }
[dir="rtl"] .tier-opt .tprice,
[dir="rtl"] .est-block .v,
[dir="rtl"] .sponsor-stat .v,
[dir="rtl"] .reveal-token,
[dir="rtl"] .mono { direction: ltr; }
[dir="rtl"] .what-card .stream { direction: ltr; text-align: right; }
[dir="rtl"] .reveal-token { display: inline-flex; }

/* ============================
   Reduced motion
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-confetti { display: none; }
}

/* focus rings */
.tier-opt:focus-visible, .jbar-primary:focus-visible, .jsb-close:focus-visible,
.est-slider:focus-visible, .reveal-ctas .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
