/* Memecoin Alliance Packs - styles */
:root {
  --bg: #05040c;
  --bg-elevated: #0c0a16;
  --bg-card: #12101f;
  --border: rgba(155, 93, 229, 0.18);
  --text: #f0edff;
  --muted: #9b93b5;
  --cyan: #00f5d4;
  --cyan-dim: #00c4aa;
  --purple: #9b5de5;
  --purple-hot: #b57bff;
  --purple-deep: #6c35c8;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Space Grotesk", "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input,
textarea {
  font: inherit;
  max-width: 100%;
}

/* Prevent iOS zoom on focus */
input,
select,
textarea {
  font-size: 16px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 40% at 20% 8%, rgba(155, 93, 229, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 18%, rgba(0, 245, 212, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 40% at 50% 95%, rgba(108, 53, 200, 0.18), transparent 55%),
    var(--bg);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  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 at center, black 20%, transparent 75%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  min-height: 5rem;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 24px rgba(155, 93, 229, 0.45);
}

.logo-img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(155, 93, 229, 0.5);
  flex-shrink: 0;
  border: 2px solid rgba(0, 245, 212, 0.4);
}

.footer-brand .logo-img {
  width: 3.25rem;
  height: 3.25rem;
}

.logo-text {
  font-size: 0.95rem;
}

/* Site brand banner (pack pages, browse, create) */
.site-brand-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(155, 93, 229, 0.16), transparent 55%),
    rgba(12, 10, 22, 0.9);
}

.site-brand-banner-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 32px rgba(155, 93, 229, 0.35);
  border: 2px solid rgba(0, 245, 212, 0.4);
}

.site-brand-banner-name {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-brand-banner-tag {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-brand-banner-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-lockup-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0, 245, 212, 0.28);
  border: 2px solid rgba(0, 245, 212, 0.45);
}

.brand-name {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Homepage large still logo - round (matches brand mark) */
.hero-video-wrap {
  width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0, 245, 212, 0.45);
  box-shadow:
    0 0 0 8px rgba(155, 93, 229, 0.18),
    0 24px 70px rgba(155, 93, 229, 0.4);
  background: #0a0914;
}

.hero-video-round {
  border-radius: 50%;
}

.hero-logo-video,
.hero-logo-still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0914;
}

.hero-video-caption {
  margin: 1rem auto 0;
  max-width: 22rem;
  padding: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: 0;
}

.hero-video-hint {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-hook {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--purple-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Main pack logo composite also reads as a circular group when closed */
.composite-stage {
  border-radius: 50% !important;
  overflow: hidden;
}

.composite-hero {
  border-radius: 50%;
}

.pack-logo-wrap {
  border-radius: 50% !important;
}

@media (max-width: 720px) {
  .site-brand-banner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-video-wrap {
    max-width: 340px;
  }

  .brand-lockup-logo {
    width: 96px;
    height: 96px;
  }

  .site-brand-banner-logo {
    width: 96px;
    height: 96px;
  }

  .logo-img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-x {
  color: var(--cyan, #00f5d4) !important;
  font-weight: 700;
}
.nav-x:hover {
  color: #7dffe8 !important;
}

.nav-ticker {
  font-family: var(--display);
  font-weight: 700 !important;
  color: var(--cyan) !important;
  letter-spacing: 0.02em;
}

.nav-cta {
  color: #05040c !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

.btn-primary {
  color: #05040c;
  background: linear-gradient(135deg, var(--cyan), #5ef0d8 40%, var(--purple-hot));
  box-shadow: 0 8px 28px rgba(0, 245, 212, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(155, 93, 229, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(155, 93, 229, 0.08);
  border-color: rgba(0, 245, 212, 0.35);
}

.btn-ghost:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.choice-chip-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 245, 212, 0.35);
}

.choice-chip-link:hover {
  color: var(--purple-hot);
  border-bottom-color: rgba(181, 123, 255, 0.55);
}

.choice-chip input:checked + span .choice-chip-link {
  color: #05040c;
  border-bottom-color: rgba(5, 4, 12, 0.35);
}

.chain-launch-help {
  margin-top: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.06);
}

.chain-launch-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.chain-launch-title strong {
  color: var(--cyan);
}

.chain-launch-sub {
  margin: 0 0 0.65rem !important;
}

.chain-launch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.chain-launch-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(155, 93, 229, 0.22);
  background: rgba(5, 4, 12, 0.45);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chain-launch-link:hover {
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(155, 93, 229, 0.12);
}

.chain-launch-name {
  font-weight: 700;
  color: var(--text);
}

.chain-launch-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.chain-launch-arrow {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 700;
}

.chip-example {
  background: rgba(0, 245, 212, 0.16);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chip-live-team {
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: #ffe6a3;
  font-weight: 700;
}

.chip-new-pack {
  background: rgba(155, 93, 229, 0.14);
  border: 1px solid rgba(155, 93, 229, 0.35);
  color: var(--purple-hot);
  font-weight: 600;
}

.pack-card-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}

.pack-card-live-team {
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.15), var(--shadow);
}

.pack-card-example {
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.18), var(--shadow);
}

.pack-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pack-card-title-row h3 {
  margin: 0;
}

.community-looking {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.community-looking strong {
  color: var(--cyan);
  font-weight: 600;
}

.pack-ownership-note {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.08);
}

.pack-ownership-note .membership-rules-title {
  margin-bottom: 0.4rem;
  color: var(--cyan);
}

.pack-looking-for {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(155, 93, 229, 0.28);
  background: rgba(155, 93, 229, 0.1);
}

.pack-looking-for .membership-rules-title {
  margin-bottom: 0.4rem;
}

.pack-looking-for-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pack-logo-main {
  width: 100%;
  height: 100%;
  max-width: 440px;
  max-height: 440px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 12px 40px rgba(155, 93, 229, 0.4);
}

/* -- Private pack chat -- */
/* -- Simplified homepage -- */
.hero-simple {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  align-items: center;
}

.hero-simple .hero-content {
  text-align: left;
}

.hero-simple .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-simple .hero-video-wrap {
  width: min(100%, 420px);
}

.hero-tagline {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.grant-slots-marks {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.6;
  word-break: break-all;
}

.grant-slots-legend {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.grant-progress-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.grant-progress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 6, 18, 0.5);
}

.grant-progress-row a {
  font-weight: 600;
  color: var(--text);
}

.pack-grant-card {
  margin: 1rem 0;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.quick-point {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.quick-point strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.quick-point span {
  font-size: 0.88rem;
  color: var(--muted);
}

.steps-compact {
  max-width: 48rem;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}

@media (max-width: 720px) {
  .steps-compact {
    grid-template-columns: 1fr;
  }
}

/* Why packs — 12 characters run & high-five */
.pack-chairs-box {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.1rem 1rem 1.35rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(0, 245, 212, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(155, 93, 229, 0.14), transparent 70%),
    rgba(12, 10, 22, 0.94);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.pack-chairs-box-video {
  display: grid;
  gap: 1rem;
}

.pack-highfive-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: #05040c;
  box-shadow:
    0 0 0 1px rgba(155, 93, 229, 0.15),
    0 12px 40px rgba(0, 245, 212, 0.12);
}

.pack-highfive-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.pack-chairs-note {
  text-align: center;
  margin: 0.85rem 0 0;
}

.one-pager-note {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.25);
  background: rgba(0, 245, 212, 0.06);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.one-pager-note strong {
  color: var(--text);
}

.hub-url-example,
code.hub-url-example {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  word-break: break-all;
}

.hub-url-box {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Project Hub role board */
.pack-roles-card {
  margin: 1rem 0 1.25rem;
}

.role-board-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.role-board-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 10, 22, 0.65);
}

.role-board-item.is-open {
  border-color: rgba(0, 245, 212, 0.28);
}

.role-board-item.is-filled {
  border-color: rgba(155, 93, 229, 0.3);
}

.role-board-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.role-title {
  font-weight: 700;
  font-family: var(--display);
  font-size: 0.95rem;
}

.role-who {
  font-size: 0.88rem;
  color: var(--text);
}

.role-who.muted {
  color: var(--muted);
}

.chip-role-open {
  border-color: rgba(0, 245, 212, 0.45) !important;
  background: rgba(0, 245, 212, 0.12) !important;
  color: var(--cyan) !important;
}

.chip-role-filled {
  border-color: rgba(155, 93, 229, 0.45) !important;
  background: rgba(155, 93, 229, 0.15) !important;
  color: var(--purple-hot) !important;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.role-assign-select {
  max-width: 12rem;
  font-size: 0.85rem !important;
  padding: 0.35rem 0.5rem !important;
}

/* Anti-bot honeypot - hidden from humans */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.link-safety-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.link-dest-host {
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 640px) {
  .quick-points {
    grid-template-columns: 1fr;
  }
}

/* Soft $MEPACK strip - compact, CA slot on the right */
.mepack-soft-card {
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 14rem);
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
}

.mepack-soft-card .mepack-copy {
  min-width: 0;
}

.mepack-soft-card .eyebrow {
  margin-bottom: 0.35rem;
}

.mepack-soft-card .subhead {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.mepack-soft-card .section-sub,
.mepack-soft-card .mepack-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.mepack-soft-card .mepack-blurb strong {
  color: var(--text);
}

.mepack-slot {
  border-radius: 14px;
  border: 1px dashed rgba(0, 245, 212, 0.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 245, 212, 0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(155, 93, 229, 0.18), transparent 50%),
    rgba(8, 6, 18, 0.85);
  padding: 0.75rem 0.7rem 0.65rem;
  text-align: center;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.mepack-slot-ticker {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--purple-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mepack-slot-empty {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mepack-mini-chairs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.28rem;
  margin: 0.35rem auto 0.15rem;
  max-width: 7.5rem;
}

.mepack-mini-chairs span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 0 1px rgba(155, 93, 229, 0.35);
}

.mepack-mini-chairs span:nth-child(odd) {
  background: rgba(155, 93, 229, 0.45);
}

.mepack-slot-caption {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

@media (max-width: 640px) {
  .mepack-soft-card {
    grid-template-columns: 1fr;
    padding: 0.9rem 1rem;
  }

  .mepack-slot {
    min-height: auto;
  }
}

/* Top pack coins */
.top-coins-grid {
  display: grid;
  gap: 1rem;
}

.top-coin-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.top-coin-rank {
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cyan);
  align-self: center;
  min-width: 2.5rem;
}

.top-coin-main {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  grid-column: 2;
  text-decoration: none;
  color: inherit;
}

.top-coin-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 245, 212, 0.35);
  flex-shrink: 0;
}

.top-coin-logo-fallback {
  display: grid;
  place-items: center;
  background: rgba(155, 93, 229, 0.25);
  font-weight: 800;
  color: var(--text);
}

.top-coin-copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.top-coin-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.top-coin-stats {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.top-coin-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.top-coin-ca {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.top-coin-ca code {
  font-size: 0.85rem;
  color: var(--cyan);
}

.top-coins-empty {
  text-align: center;
  padding: 1.5rem;
}

.top-coin-stats .stat-hot {
  color: var(--cyan);
}

.top-coin-stats .chg-up {
  color: #3dd68c;
}

.top-coin-stats .chg-down {
  color: #ff6b8a;
}

.top-meme-sym {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.top-meme-card .top-coin-logo {
  width: 48px;
  height: 48px;
}

.og-promo-card {
  max-width: 40rem;
  margin: 0 auto;
}

/* Invite links */
.invite-banner {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.invite-banner-ok {
  border: 1px solid rgba(0, 245, 212, 0.4);
  background: rgba(0, 245, 212, 0.1);
}

.invite-banner-bad {
  border: 1px solid rgba(255, 107, 138, 0.4);
  background: rgba(255, 107, 138, 0.1);
}

.pack-invite-card,
.pack-verify-card {
  margin-top: 1rem;
}

.invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.invite-url-input {
  flex: 1 1 14rem;
  min-width: 0;
  font-size: 0.85rem !important;
}

.invite-blurb-input {
  width: 100%;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  resize: vertical;
  min-height: 7rem;
  font-family: var(--font) !important;
}

.keys-control-line {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(155, 93, 229, 0.28);
  background: rgba(155, 93, 229, 0.08);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.keys-control-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.health-strip {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.health-strip-label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.health-strip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.health-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
}

.join-invite-note {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: rgba(0, 245, 212, 0.08);
  font-size: 0.9rem;
}

/* Verified checklist */
.verify-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.verify-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.verify-item.verify-ok {
  color: var(--text);
}

.verify-mark {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}

.verify-ok .verify-mark {
  color: var(--cyan);
}

.verify-req,
.verify-opt {
  font-style: normal;
  font-size: 0.72rem;
  margin-left: 0.35rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-verified {
  border-color: rgba(0, 245, 212, 0.5) !important;
  background: rgba(0, 245, 212, 0.15) !important;
  color: var(--cyan) !important;
}

.chip-setup {
  border-color: rgba(155, 93, 229, 0.35) !important;
}

.choice-check {
  display: flex !important;
  width: 100%;
  margin-bottom: 0.4rem;
}

/* Looking-for board */
.looking-for-page .lf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.lf-post-card {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.lf-feed {
  display: grid;
  gap: 1rem;
}

.lf-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.lf-card-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.lf-card-body {
  margin: 0 0 0.5rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.lf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pack-as-website-note {
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  background: rgba(0, 245, 212, 0.06);
}

.chat-msg-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.chat-msg-avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(155, 93, 229, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.chat-msg-content {
  min-width: 0;
  flex: 1;
}

.chat-avatar-preview img {
  border-radius: 50%;
  border: 2px solid rgba(0, 245, 212, 0.35);
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .top-coin-card {
    grid-template-columns: auto 1fr;
  }
}

.pack-chat-section {
  overflow: hidden;
}

.chat-locked {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.chat-room {
  display: grid;
  gap: 0.85rem;
}

.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

/* Project Hub: true one-page site view (minimal scroll) */
.hub-view-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0;
}

.hub-view-hint {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.78rem;
}

#packContent.hub-mode-site .pack-team-tools {
  display: none !important;
}

#packContent.hub-mode-site .hub-onepager,
#packContent:not(.hub-mode-tools) .hub-onepager,
#hubOnepager {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 12rem;
}

#packContent.hub-mode-tools .hub-onepager {
  display: none !important;
}

#packContent.hub-mode-tools .pack-team-tools {
  display: block;
}

/* Pack content must show when not [hidden] */
#packContent:not([hidden]) {
  display: block !important;
}

#packContent.hub-mode-site .site-brand-banner {
  display: none;
}

/* Single-screen onepager shell — ONE shared content column for hero + boxes */
.hub-onepager {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
  /* Room for PackMate float (bottom-right) so links aren't covered */
  padding-bottom: 5.5rem;
}

.hub-banner-wrap {
  width: 100%;
  max-height: 7.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.2);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hub-banner-img {
  display: block;
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
}

.hub-coin-name {
  margin: 0.1rem 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan, #00f5d4);
  letter-spacing: 0.02em;
}

.hub-edit-preview {
  margin-top: 0.4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 6rem;
}

.hub-edit-preview img {
  display: block;
  width: 100%;
  max-height: 6rem;
  object-fit: cover;
}

.hub-edit-preview-logo {
  width: 5rem;
  max-height: 5rem;
}

.hub-edit-preview-logo img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.hub-token-ca,
.hub-token-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hub-token-price {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(0, 245, 212, 0.08);
  font-variant-numeric: tabular-nums;
}

.hub-token-price strong {
  color: var(--muted, #9b93b5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.hub-chart-link.btn {
  font-weight: 700;
}

/*
  Project Hub hero layout (final):
  1) Project Hub eyebrow — full width of THIS card
  2) Title row: [pack name + meta] [logo] — logo top = pack name top
     Logo sits snug right of the name; row is ONLY as wide as content
     (flex-start, not space-between) so logo does NOT stick past text boxes below
  3) Full-width body: description, "Your coin. Combined grind.", looking-for, badges, socials
  4) Roadmap boxes — same column width as this card
*/
.hub-onepager-hero.pack-profile {
  margin: 0;
  padding: 1rem 1.1rem !important;
  flex-shrink: 0;
  overflow: visible !important; /* do not clip main logo */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.hub-onepager-hero .hub-onepager-eyebrow,
.hub-onepager-hero > .eyebrow {
  margin: 0 0 0.5rem;
  text-align: left;
  width: 100%;
}

/*
  Title row: text LEFT, logo RIGHT.
  Row is full width of the card/column so the RIGHT edge of the logo
  lines up with the RIGHT edge of the boxes below (not past them).
*/
.hub-onepager-hero .hub-title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.hub-onepager-hero .hub-title-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left;
  padding-right: 0.5rem;
}

.hub-onepager-hero .hub-title-row .pack-logo-wrap,
.hub-onepager-hero #packLogoWrap,
#hubOnepager #packLogoWrap {
  flex: 0 0 180px !important; /* 120px × 1.5 */
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  margin: 0 !important;
  margin-left: auto !important; /* pin to right edge of this column */
  align-self: flex-start !important;
  border-radius: 28px !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  background: #0a0914 !important;
  border: 3px solid rgba(0, 245, 212, 0.4) !important;
  z-index: 2;
}

.hub-onepager-hero .hub-title-row .pack-logo-wrap img,
.hub-onepager-hero .hub-title-row .pack-logo-main,
#hubOnepager #packLogoWrap img,
#hubOnepager .pack-logo-main {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  object-fit: cover !important;
  border-radius: 26px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hub-onepager-hero .pack-logo-fallback {
  font-size: 3.25rem !important;
  width: 100% !important;
  height: 100% !important;
}

.hub-onepager-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.2rem;
  text-align: left;
  line-height: 1.2;
}

/* Full-width notes under title row — "Your coin. Combined grind." etc. */
.hub-onepager-hero .hub-body-full {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0.65rem;
  box-sizing: border-box;
}

.hub-onepager-hero .pack-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.25rem 0 0.5rem;
  display: block;
  max-width: 100%;
  text-align: left;
}

.hub-onepager-hero .pack-meta {
  font-size: 0.8rem;
  text-align: left;
  margin: 0 0 0.15rem;
}

.hub-onepager-hero .pack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  justify-content: flex-start;
}

.hub-onepager-hero .pack-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  width: 100%;
  justify-content: flex-start;
}

.hub-onepager-hero .social-btn {
  font-size: 0.8rem;
  padding: 0.42rem 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* Ownership / looking-for blocks full width of card (under logo row) */
.hub-onepager-hero .pack-ownership-note,
.hub-onepager-hero .pack-looking-for {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.hub-onepager-grid.hub-page-sections {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .hub-onepager-hero .hub-title-text {
    max-width: calc(100% - 140px - 0.65rem) !important;
  }

  .hub-onepager-hero .hub-title-row .pack-logo-wrap,
  .hub-onepager-hero #packLogoWrap,
  #hubOnepager #packLogoWrap {
    flex: 0 0 132px !important; /* 88px × 1.5 */
    flex-basis: 132px !important;
    width: 132px !important;
    height: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
  }

  .hub-onepager-hero .hub-title-row .pack-logo-wrap img,
  .hub-onepager-hero .hub-title-row .pack-logo-main,
  #hubOnepager #packLogoWrap img,
  #hubOnepager .pack-logo-main {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
  }
}

.hub-page-header {
  margin: 0.15rem 0 0.2rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cyan, #00f5d4);
  letter-spacing: 0.01em;
}

.hub-onepager-token {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

/* Don't wash out Buy — was cyan-on-cyan from generic `a` color */
.hub-onepager-token a:not(.btn) {
  color: var(--cyan, #00f5d4);
}

.hub-onepager-token .hub-chart-link {
  color: var(--cyan, #00f5d4) !important;
  border-color: rgba(0, 245, 212, 0.4) !important;
  background: rgba(0, 245, 212, 0.1) !important;
}

.hub-onepager-token .btn-primary,
.hub-onepager-token .btn-buy-hot,
.token-buy-block .btn-primary,
.token-buy-block .btn-buy-hot,
.pack-token-bar .pack-buy-btn.btn-primary,
a.btn-buy-hot {
  color: #05040c !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  border: 0 !important;
  background: linear-gradient(135deg, #00ffd0 0%, #00f5d4 35%, #ff4fd8 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 22px rgba(0, 245, 212, 0.55),
    0 8px 28px rgba(255, 79, 216, 0.35) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.hub-onepager-token .btn-primary:hover,
.hub-onepager-token .btn-buy-hot:hover,
.token-buy-block .btn-primary:hover,
.token-buy-block .btn-buy-hot:hover,
a.btn-buy-hot:hover {
  color: #05040c !important;
  background: linear-gradient(135deg, #7dffe8 0%, #00f5d4 40%, #ff7ae8 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 32px rgba(0, 245, 212, 0.75),
    0 12px 36px rgba(255, 79, 216, 0.45) !important;
  transform: translateY(-1px);
}

.token-buy-block .buy-url-preview {
  color: #7dffe8 !important;
  font-weight: 600;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-onepager-grid.hub-page-sections {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  flex: 0 1 auto;
  min-height: 0;
  align-items: stretch;
}

/* Don't leave empty scroll shells when EXAMPLE packs have no hub cards */
.hub-onepager-grid.hub-page-sections:not(:has(.hub-page-card:not([hidden]))) {
  display: none;
}

.hub-onepager-grid .hub-page-card#hubStoryCard {
  grid-column: 1 / -1;
  max-height: 5.5rem;
}

.hub-onepager-grid .hub-page-card {
  margin: 0;
  padding: 0.65rem 0.75rem;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.hub-onepager-grid .hub-page-card .subhead {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.hub-onepager-grid .hub-page-card .eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
}

.hub-page-card .hub-page-body {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(232, 230, 242, 0.92);
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.hub-page-card .hub-page-body p {
  margin: 0 0 0.45rem;
}

.hub-page-card .hub-page-body p:last-child {
  margin-bottom: 0;
}

.hub-roadmap-list {
  margin: 0;
  padding: 0 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
  font-size: 0.82rem;
}

.hub-roadmap-item {
  line-height: 1.35;
}

.hub-roadmap-title {
  display: block;
  color: var(--cyan, #00f5d4);
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
}

.hub-roadmap-body {
  color: rgba(232, 230, 242, 0.88);
  font-size: 0.8rem;
}

.hub-onepager-team {
  flex-shrink: 0;
  padding: 0.55rem 0.15rem 0.25rem;
  min-height: auto;
  overflow: visible;
}

.hub-onepager-team .eyebrow {
  display: block;
  margin: 0 0 0.45rem;
  width: 100%;
}

.hub-onepager-members {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-height: none;
  overflow: visible;
  /* was 2.75rem + hidden — clipped Frog roster into broken scroll bars */
}

.hub-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: auto;
  max-width: 11rem;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(0, 245, 212, 0.08);
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(232, 230, 242, 0.95);
  box-sizing: border-box;
}

.hub-member-chip img,
.hub-member-chip .hub-member-fallback {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-member-chip .hub-member-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 212, 0.22);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan, #00f5d4);
}

.hub-member-chip > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hub-onepager-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 245, 212, 0.12);
  overflow: visible;
}

@media (max-width: 900px) {
  .hub-onepager {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-bottom: 6rem;
  }

  .hub-onepager-grid.hub-page-sections {
    grid-template-columns: 1fr;
  }

  .hub-onepager-grid .hub-page-card {
    max-height: 10rem;
  }

  .hub-onepager-hero .pack-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hub-onepager-hero .pack-profile-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

.turnstile-widget {
  min-height: 65px;
  display: flex;
  justify-content: flex-start;
  margin: 0.35rem 0 0.25rem;
}

.chat-code-box {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.05);
}

.chat-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.chat-code-row code,
.chat-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(5, 4, 12, 0.55);
  border: 1px solid rgba(0, 245, 212, 0.28);
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
  min-width: min(100%, 18rem);
  flex: 1 1 14rem;
  max-width: 100%;
}

.chat-code-input:focus {
  outline: 2px solid rgba(0, 245, 212, 0.45);
  outline-offset: 1px;
}

/* One-time secret save (founder recovery / new codes) */
.map-secret-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 4, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.map-secret-card {
  width: min(32rem, 100%);
  background: rgba(18, 16, 32, 0.98);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.map-secret-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.map-secret-card .map-secret-input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  background: rgba(5, 4, 12, 0.7);
  color: var(--cyan, #00f5d4);
  user-select: all;
  -webkit-user-select: all;
  margin: 0.75rem 0;
}
.map-secret-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-pin {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(255, 209, 102, 0.1), transparent 55%),
    rgba(12, 10, 22, 0.85);
}

.chat-pin-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd166;
}

.chat-pin-text {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-pin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-checkins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.chat-checkin-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: rgba(0, 245, 212, 0.08);
  color: var(--cyan);
}

.chat-pin-compose {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 209, 102, 0.2);
  display: grid;
  gap: 0.5rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(5, 4, 12, 0.55);
  -webkit-overflow-scrolling: touch;
}

.chat-msg {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(155, 93, 229, 0.1);
  border: 1px solid rgba(155, 93, 229, 0.18);
  max-width: 100%;
}

.chat-msg.is-guest {
  background: rgba(255, 209, 102, 0.06);
  border-color: rgba(255, 209, 102, 0.18);
}

.chat-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.chat-msg-meta strong {
  color: var(--text);
  font-weight: 600;
}

.chat-msg-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.chat-compose-field {
  margin: 0;
}

.chat-ttl-hint {
  margin: 0;
}

.chat-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-compose .btn {
    width: 100%;
  }

  .chat-messages {
    max-height: 45vh;
  }

  .chat-code-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.btn-danger {
  background: rgba(220, 60, 90, 0.18);
  color: #ffb4c0;
  border: 1px solid rgba(255, 100, 120, 0.45);
}

.btn-danger:hover {
  background: rgba(220, 60, 90, 0.32);
  border-color: rgba(255, 120, 140, 0.7);
  color: #fff;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.disband-panel {
  border-color: rgba(255, 100, 120, 0.22);
}

.disband-start {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

.disband-start .field-hint {
  margin: 0.25rem 0 0;
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.22);
}

/* Hero eyebrow — “One Hub. One Crew!” */
.eyebrow-hero {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
  border: 1px solid rgba(0, 245, 212, 0.45);
  background:
    radial-gradient(ellipse 90% 120% at 10% 50%, rgba(0, 245, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 100% at 90% 50%, rgba(155, 93, 229, 0.2), transparent 55%),
    rgba(12, 10, 24, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.08),
    0 0 20px rgba(0, 245, 212, 0.12);
}
.eyebrow-hub {
  color: rgba(232, 230, 242, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow-crew {
  background: linear-gradient(115deg, #00f5d4 0%, #7dffe8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.03em;
  filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.35));
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

.gradient-text {
  background: linear-gradient(120deg, var(--purple-hot) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero slogan flair — same words, more character */
.hero-slogan {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.hero-slogan .slogan-line {
  display: block;
}

/* Line 1: “Solo is dead.” — ghosted + struck through */
.slogan-solo {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.slogan-solo-text {
  display: inline-block;
  color: rgba(232, 226, 255, 0.42);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: none;
  position: relative;
}

.slogan-solo-text::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 90, 120, 0.95) 12%,
    rgba(251, 113, 133, 0.9) 50%,
    rgba(255, 90, 120, 0.95) 88%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(255, 90, 120, 0.55);
  transform: rotate(-2.5deg);
  pointer-events: none;
}

/* Line 2: “Form a Pack of Devs.” — hot gradient + glow */
.slogan-pack {
  background: linear-gradient(
    115deg,
    #c084fc 0%,
    var(--purple-hot, #9b5de5) 28%,
    var(--cyan, #00f5d4) 72%,
    #67e8f9 100%
  );
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  filter: drop-shadow(0 0 18px rgba(0, 245, 212, 0.22));
  animation: slogan-pack-shimmer 7s ease-in-out infinite;
}

.slogan-pack-word {
  position: relative;
  display: inline-block;
  /* “Pack” pops a touch brighter */
  background: linear-gradient(120deg, #00f5d4 0%, #e9d5ff 45%, #c084fc 100%);
  background-size: 140% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.01em;
  animation: slogan-pack-shimmer 5.5s ease-in-out infinite reverse;
}

.slogan-pack-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.1em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.85), rgba(155, 93, 229, 0.75), transparent);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.45);
  opacity: 0.9;
}

@keyframes slogan-pack-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slogan-pack,
  .slogan-pack-word {
    animation: none;
    background-position: 50% 50%;
  }
}

@media (max-width: 960px) {
  .slogan-solo {
    margin-left: auto;
    margin-right: auto;
  }
}

.lead,
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.section-sub.left {
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-discovery {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  background: rgba(155, 93, 229, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-discovery strong {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero-discovery {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 5.5rem;
}

.stat strong {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--cyan);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Pack stack visual */
.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.pack-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 340px;
}

.pack {
  position: absolute;
  width: 190px;
  height: 260px;
  border-radius: 22px;
  padding: 2px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.pack-inner {
  height: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, #1d1830, #0d0b16 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pack-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pack-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.pack-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.pack-a {
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(-8deg);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}

.pack-b {
  left: 8%;
  top: 50px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, var(--cyan), var(--purple-deep));
  z-index: 2;
  animation: float 5.5s ease-in-out infinite 0.4s;
}

.pack-c {
  right: 4%;
  top: 70px;
  transform: rotate(-14deg);
  background: linear-gradient(135deg, var(--purple-hot), #5b2dcf);
  z-index: 1;
  animation: float 6s ease-in-out infinite 0.8s;
}

.pack-stack:hover .pack-a {
  transform: translateX(-50%) rotate(-12deg) translateY(-8px);
}

.pack-stack:hover .pack-b {
  transform: rotate(14deg) translateY(-4px);
}

.pack-stack:hover .pack-c {
  transform: rotate(-18deg) translateY(4px);
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Pack cards */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pack-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.pack-card.featured {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 16px 50px rgba(155, 93, 229, 0.18);
}

.featured-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #05040c;
  background: linear-gradient(135deg, var(--cyan), var(--purple-hot));
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.pack-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  min-height: 200px;
}

.pack-card-top.accent-cyan {
  background: linear-gradient(145deg, rgba(0, 245, 212, 0.22), transparent 70%);
}

.pack-card-top.accent-gold {
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.32), transparent 70%);
}

.pack-card-top.accent-purple {
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.28), transparent 70%);
}

.tier {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pack-icon {
  font-size: 2.4rem;
}

.pack-card-body {
  padding: 0 1.25rem 1.4rem;
}

.pack-card-body h3 {
  margin-bottom: 0.35rem;
}

.price {
  margin: 0 0 1rem;
  color: var(--muted);
}

.price .amount {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 0.25rem;
}

.pack-card-body ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.pack-card-body li {
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.pack-card-body li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.55rem;
  top: 0.7rem;
}

/* Steps - center the row so 01/02/03 don't sit left-heavy in a 4-col grid */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: stretch;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: left;
}

.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

/* Three-up rows (How it works home, Invite/Verify/Match): equal cards, centered block */
.steps:has(.step:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 48rem;
}

@media (max-width: 720px) {
  .steps:has(.step:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Alliance */
.alliance-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 40rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #05040c;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  flex-shrink: 0;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.coin-chip {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.coin-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 10px 30px rgba(0, 245, 212, 0.1);
}

/* Mint */
.mint-section {
  padding-top: 2rem;
}

.mint-card {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(155, 93, 229, 0.18), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.mint-card .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.mint-panel {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.field select,
.qty input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
}

.field select:focus {
  border-color: rgba(0, 245, 212, 0.5);
}

.qty {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 0.5rem;
}

.qty button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty input {
  text-align: center;
  font-weight: 700;
  font-family: var(--display);
}

.mint-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(155, 93, 229, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.22);
}

.mint-total strong {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--cyan);
}

.mint-status {
  min-height: 1.4rem;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--cyan);
}

.mint-status.error {
  color: #ff6b6b;
}

/* Browse Packs page */
.browse-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.browse-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.browse-header .section-sub {
  margin-bottom: 0;
}

.browse-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.browse-count {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 1.05rem;
}

.browse-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 200px);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.browse-search-field,
.browse-sort-field {
  margin: 0;
}

.browse-toolbar input,
.browse-toolbar select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
}

.browse-toolbar input:focus,
.browse-toolbar select:focus {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pack-card-link,
.pack-card-with-token {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pack-card-hit {
  display: block;
  color: inherit;
  flex: 1;
}

.pack-card-hit:hover h3 {
  color: var(--cyan);
}

.pack-card-cta {
  pointer-events: none;
}

/* CA + buy on pack cards */
.pack-token-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.pack-token-bar-empty {
  justify-content: center;
}

.pack-token-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.token-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.token-ca-short,
.token-ca {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}

.token-ca {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  margin: 0.35rem 0 0.55rem;
}

.pack-buy-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pack-edit-toolbar {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.pack-edit-form {
  margin-top: 1rem;
}

.pack-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pack-edit-actions-bottom {
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.token-access-card {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.token-access-row {
  display: grid;
  gap: 1rem;
}

.token-ca-block .btn {
  margin-top: 0.35rem;
}

.token-buy-block {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.token-buy-block .btn {
  min-width: 10rem;
  justify-content: center;
  font-size: 1rem;
  padding: 0.7rem 1.25rem;
}

.buy-url-preview {
  word-break: break-all;
  color: #7dffe8 !important;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 1;
}

.token-access-edit {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .token-access-row {
    grid-template-columns: 1.4fr auto;
    align-items: start;
  }
}

.browse-more {
  min-height: auto;
  padding: 1.5rem;
}

@media (max-width: 720px) {
  .browse-toolbar {
    grid-template-columns: 1fr;
  }

  .browse-actions {
    align-items: stretch;
    width: 100%;
  }

  .browse-actions .btn {
    width: 100%;
  }
}

/* Community packs browse */
.community-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.8em;
}

/* Browse card pack logo (right of BUY-IN) — large, first thing people notice */
.pack-avatar-sm {
  width: 7.5rem !important;
  height: 7.5rem !important;
  min-width: 7.5rem !important;
  min-height: 7.5rem !important;
  border-radius: 22px !important;
  display: grid !important;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem !important;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #05040c;
  object-fit: cover !important;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(155, 93, 229, 0.35);
}

.pack-avatar-img {
  padding: 0 !important;
  border: 3px solid rgba(0, 245, 212, 0.45) !important;
  width: 7.5rem !important;
  height: 7.5rem !important;
  object-fit: cover !important;
}

.pack-avatar-mosaic {
  width: 7.5rem !important;
  height: 7.5rem !important;
  min-width: 7.5rem !important;
  min-height: 7.5rem !important;
  border-radius: 22px !important;
}

.packs-cta {
  text-align: center;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.empty-packs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  display: grid;
  gap: 1rem;
  place-items: center;
}

/* Pack detail page */
.pack-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  gap: 1.25rem;
}

.back-link a {
  color: var(--muted);
  font-size: 0.95rem;
}

.back-link a:hover {
  color: var(--cyan);
}

.pack-missing {
  text-align: center;
  padding: 3rem 1rem;
}

.pack-profile {
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(155, 93, 229, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(0, 245, 212, 0.1), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.pack-profile-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
}

.pack-logo-wrap {
  width: 280px;
  height: 280px;
  border-radius: 36px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(155, 93, 229, 0.3);
  overflow: hidden;
  border: 3px solid rgba(0, 245, 212, 0.4);
  background: #0a0914;
}

.pack-logo-img,
.pack-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 33px;
}

.pack-logo-img {
  object-fit: cover;
  background: var(--bg-card);
  display: block;
}

.pack-logo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #05040c;
}

.pack-logo-caption {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.entry-status-banner {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
}

.entry-status-banner strong {
  font-family: var(--display);
  font-size: 1rem;
}

.entry-status-banner.entry-open {
  border-color: rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.08);
  color: var(--muted);
}

.entry-status-banner.entry-open strong {
  color: var(--cyan);
}

.entry-status-banner.entry-closed {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
  color: var(--muted);
}

.entry-status-banner.entry-closed strong {
  color: #ffe6a3;
}

.closed-entry-box {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.06);
}

.closed-entry-box a {
  color: var(--cyan);
}

.pack-entry-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

/* Grouped main Pack Logo (each member logo as a tile) */
.pack-logo-composite {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 2px;
  background: rgba(0, 245, 212, 0.2);
  overflow: hidden;
}

.pack-logo-composite.cols-1 {
  grid-template-columns: 1fr;
}

.pack-logo-composite.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.pack-logo-composite.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.pack-logo-composite.cols-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.composite-cell {
  min-height: 0;
  background: #0a0914;
}

.composite-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composite-hero {
  border-radius: 26px;
}

.composite-stage {
  min-height: 280px;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.logo-steps {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem 0.9rem 1.6rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(155, 93, 229, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: grid;
  gap: 0.45rem;
}

.logo-steps strong {
  color: var(--text);
}

.logo-subhead {
  margin: 1rem 0 0.65rem;
  font-size: 1.05rem;
}

.main-pack-logo-panel {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.main-logo-locked {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(0, 245, 212, 0.3);
  background: rgba(0, 0, 0, 0.25);
}

.main-logo-locked p {
  margin: 0 0 0.35rem;
}

.logo-workflow-notice {
  margin-bottom: 0.25rem;
}

.pack-avatar-mosaic {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0 !important;
  overflow: hidden;
  background: rgba(0, 245, 212, 0.25);
}

.pack-avatar-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.pack-profile-copy h1 {
  margin-bottom: 0.4rem;
}

.pack-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pack-desc {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 42rem;
  white-space: pre-wrap;
}

.pack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.pack-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.socials-empty {
  margin: 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(155, 93, 229, 0.1);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.social-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 245, 212, 0.1);
  color: var(--cyan);
  transform: translateY(-1px);
}

.social-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.card-head {
  margin-bottom: 0.85rem;
}

.card-head .subhead {
  margin-bottom: 0.25rem;
}

.identity-inline {
  margin: 0.75rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.identity-form.compact {
  grid-template-columns: 1fr auto auto;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.member-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.member-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
}

.member-bio {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.member-personal-links {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.member-personal-links a {
  color: var(--cyan);
  font-weight: 600;
}

.member-personal-links a:hover {
  color: var(--purple-hot);
}

.member-row-profile {
  align-items: flex-start;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-remove {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
}

.btn-remove:hover {
  border-color: #ff6b6b;
  color: #ff8e8e;
  background: rgba(255, 107, 107, 0.1);
}

.chip-warn {
  color: #ffd166 !important;
  border-color: rgba(255, 209, 102, 0.35) !important;
  background: rgba(255, 209, 102, 0.1) !important;
}

.removal-card {
  border-color: rgba(255, 107, 107, 0.22);
}

.removal-rules-box {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.06);
}

.removal-rules-box .membership-rules-title {
  color: #ffb4b4;
}

.removal-history {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.history-label {
  margin-bottom: 0.4rem;
}

.history-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.history-list li {
  margin: 0.25rem 0;
}

.member-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--display);
  background: rgba(155, 93, 229, 0.25);
  color: var(--cyan);
  flex-shrink: 0;
}

.member-avatar-img {
  object-fit: cover;
  padding: 0;
  border: 1px solid rgba(0, 245, 212, 0.35);
}

/* Member token logo grid */
.member-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.logo-tile {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: grid;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.logo-tile.has-logo:hover {
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
}

.logo-tile.is-me {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.12);
}

.logo-tile-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(155, 93, 229, 0.2), transparent 55%),
    #0a0914;
}

.logo-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-tile-empty {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(240, 237, 255, 0.35);
}

.logo-tile-meta {
  padding: 0.55rem 0.65rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}

.logo-tile-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tile-role {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.logo-tile-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}

.logo-tile.no-logo .logo-tile-media {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.member-logo-upload {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.member-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.member-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.member-role.role-founder {
  color: #05040c;
  background: linear-gradient(135deg, var(--cyan), var(--purple-hot));
}

.member-role.role-lead {
  color: var(--cyan);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.member-role.role-dev {
  color: var(--purple-hot);
  background: rgba(155, 93, 229, 0.15);
  border: 1px solid rgba(155, 93, 229, 0.35);
}

.member-role.role-marketing {
  color: #f0edff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.member-role.role-member {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* Chart section */
.pack-chart-section {
  margin-top: 0.25rem;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.chart-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0914;
  min-height: 420px;
}

.dex-chart-frame {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  background: #0a0914;
}

.chart-placeholder {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
}

.chart-placeholder-graphic {
  width: min(100%, 420px);
  margin: 0 auto 0.75rem;
  opacity: 0.9;
}

.chart-placeholder-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-placeholder-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
}

.field-group {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
}

.field-group legend {
  padding: 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.create-form-title {
  margin-bottom: 0.35rem;
}

.create-self-serve {
  margin: 0 0 1rem;
}

.field .req {
  color: var(--cyan);
  font-style: normal;
}

.identity-switch-only {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.buyin-hint {
  margin: -0.25rem 0 0.15rem;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.choice-chip {
  position: relative;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice-chip input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.choice-chip input:checked + span {
  color: #05040c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--purple-hot));
}

.choice-chip:hover span {
  border-color: rgba(0, 245, 212, 0.4);
  color: var(--text);
}

.choice-chip input:checked + span:hover {
  color: #05040c;
}

.input-with-suffix .prefix {
  padding: 0 0 0 1rem;
  font-weight: 700;
  font-family: var(--display);
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.input-with-suffix:has(.prefix) {
  grid-template-columns: auto 1fr;
}

.input-with-suffix:has(.prefix) input {
  padding-left: 0.5rem;
}

@media (max-width: 720px) {
  .pack-profile {
    padding: 1.35rem;
  }

  .pack-profile-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pack-profile-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .pack-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .pack-badges,
  .pack-socials {
    justify-content: center;
  }

  .pack-logo-wrap {
    width: 240px;
    height: 240px;
  }

  .hub-onepager-hero .pack-logo-wrap {
    width: 148px !important;
    height: 148px !important;
    max-width: 148px !important;
    max-height: 148px !important;
    flex-basis: 148px !important;
  }

  .hub-onepager-hero .pack-logo-wrap img,
  .hub-onepager-hero .pack-logo-main {
    width: 148px !important;
    height: 148px !important;
    max-width: 148px !important;
    max-height: 148px !important;
  }

  .composite-stage {
    min-height: 220px;
    max-width: 100%;
  }

  .chart-frame-wrap,
  .chart-placeholder {
    min-height: 320px;
  }

  .dex-chart-frame {
    height: 360px;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.22);
}

.subhead {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.subhead .muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.identity-bar {
  display: grid;
  gap: 0.75rem;
}

.identity-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: end;
}

.pack-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.member-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.member-name {
  font-weight: 600;
}

.member-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-hot);
}

.join-note,
.join-success {
  margin: 0 0 0.5rem;
}

.join-success {
  color: var(--cyan);
}

.membership-rules-box {
  margin: 0.85rem 0 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 245, 212, 0.08), rgba(155, 93, 229, 0.1));
}

.membership-rules-title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

.membership-rules-lead {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.membership-rules-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.membership-rules-list strong {
  color: var(--text);
}

.membership-rules-link {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.membership-rules-link a {
  color: var(--cyan);
  font-weight: 600;
}

.membership-rules-link a:hover {
  color: var(--purple-hot);
}

.join-threshold {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(155, 93, 229, 0.1);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.join-threshold strong {
  color: var(--text);
}

.rules-accept {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: rgba(0, 245, 212, 0.06);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.rules-accept input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--cyan);
  flex-shrink: 0;
}

.rules-accept strong {
  color: var(--text);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-text,
.form-status.error {
  color: #ff8e8e;
}

.join-form {
  display: grid;
  gap: 0.85rem;
}

.vote-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.vote-progress strong {
  color: var(--text);
}

.request-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 0.75rem;
}

.request-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.request-msg {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-style: italic;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 800px) {
  .pack-grid-2 {
    grid-template-columns: 1fr;
  }

  .identity-form {
    grid-template-columns: 1fr;
  }

  .identity-form .btn {
    width: 100%;
  }
}

/* Create pack page */
.create-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.create-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.create-intro .lead {
  max-width: 28rem;
}

.create-intro .check-list {
  margin-top: 1.5rem;
}

.form-card {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 93, 229, 0.16), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.15rem;
}

.field .req {
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15);
}

.input-with-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-with-suffix:focus-within {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.15);
}

.input-with-suffix input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.input-with-suffix .suffix {
  padding: 0 1rem;
  font-weight: 700;
  font-family: var(--display);
  color: var(--cyan);
  border-left: 1px solid var(--border);
  align-self: stretch;
  display: grid;
  place-items: center;
}

.logo-upload {
  border: 1px dashed rgba(0, 245, 212, 0.35);
  border-radius: 14px;
  background: rgba(155, 93, 229, 0.06);
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.logo-upload.is-dragover {
  border-color: var(--cyan);
  background: rgba(0, 245, 212, 0.08);
}

.logo-placeholder {
  text-align: center;
  display: grid;
  gap: 0.35rem;
  place-items: center;
}

.logo-placeholder p {
  margin: 0;
}

.logo-upload-icon {
  font-size: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(155, 93, 229, 0.2);
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.logo-preview {
  position: relative;
  width: 120px;
  height: 120px;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(0, 245, 212, 0.4);
  background: var(--bg-card);
}

.logo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.logo-remove:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.form-error {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff8e8e;
  font-size: 0.92rem;
}

.form-status {
  margin: 0;
  min-height: 1.3rem;
  text-align: center;
  color: var(--cyan);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .create-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--cyan);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(7, 6, 15, 0.85);
  padding: 2rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.footer-brand .logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.footer-brand-text a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-word;
}

.footer-brand-text a:hover {
  color: var(--purple-hot);
}

.footer-disclaimer {
  width: 100%;
  max-width: 42rem;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(155, 93, 229, 0.14), transparent 55%),
    rgba(12, 10, 22, 0.9);
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.footer-disclaimer-title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-disclaimer p strong {
  color: var(--text);
}

.footer-disclaimer a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
  color: var(--purple-hot);
}

/* legacy class used in older snippets */
.disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Rules + disclaimer section */
.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.rules-card .subhead {
  margin-bottom: 1rem;
}

.disclaimer-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.disclaimer-lead:last-child {
  margin-bottom: 0;
  margin-top: 0.85rem;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.rules-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.45);
}

.rules-list strong {
  color: var(--text);
}

.multisig-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 209, 102, 0.4);
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(255, 209, 102, 0.12), transparent 55%),
    rgba(155, 93, 229, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.multisig-callout .subhead {
  margin-bottom: 0.45rem;
  color: #ffe6a3;
}

.multisig-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.multisig-callout p strong {
  color: var(--text);
}

.multisig-icon {
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #05040c;
  background: linear-gradient(135deg, #ffd166, #00f5d4);
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  min-width: 4.2rem;
  text-align: center;
  line-height: 1.2;
}

.inline-notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.25);
  background: rgba(155, 93, 229, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.inline-notice strong {
  color: var(--text);
}

.inline-notice a {
  color: var(--cyan);
}

.compact-callout {
  padding: 1.1rem 1.25rem;
}

.compact-callout .subhead {
  font-size: 1.05rem;
}

.compact-callout a {
  color: var(--cyan);
  font-weight: 600;
}

.compact-callout a:hover {
  color: var(--purple-hot);
}

.multisig-callout-body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.multisig-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.multisig-resource {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(5, 4, 12, 0.45);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a.multisig-resource:hover {
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(155, 93, 229, 0.12);
  transform: translateY(-1px);
}

.multisig-resource-chain {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd166;
}

.multisig-resource-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.multisig-resource-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.multisig-resource-cta {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.multisig-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.faq a {
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 800px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .multisig-callout {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0.15rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.copy {
  margin: 0;
  color: rgba(163, 155, 184, 0.7);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.15rem 2rem;
    text-align: center;
    gap: 2rem;
  }

  .hero-content .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .lead,
  .section-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .pack-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .alliance-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1.15rem;
  }

  .section-alt > * {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .pack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pack-card.featured {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  }

  .logo-text {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: calc(3.5rem + env(safe-area-inset-top, 0px));
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    background: rgba(12, 10, 22, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.85rem;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(155, 93, 229, 0.12);
    color: var(--text);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  .logo-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-around;
    gap: 0.75rem;
  }

  .stat {
    min-width: 0;
    flex: 1;
  }

  .stat strong {
    font-size: 1.2rem;
  }

  .pack-stack {
    max-width: 280px;
    height: 280px;
  }

  .pack {
    width: 150px;
    height: 210px;
  }

  .browse-page,
  .create-page,
  .pack-page {
    padding: 1.35rem 1rem 2.5rem;
  }

  .browse-header {
    flex-direction: column;
    align-items: stretch;
  }

  .browse-actions {
    align-items: stretch;
  }

  .form-card {
    padding: 1.15rem;
  }

  .pack-card-body {
    padding: 0 1rem 1.15rem;
  }

  .member-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .member-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .btn-remove {
    min-height: 40px;
  }

  .request-actions {
    width: 100%;
  }

  .request-actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .mint-card {
    padding: 1.5rem 1rem;
  }

  .footer-disclaimer {
    text-align: left;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-brand-text {
    align-items: center;
  }

  .packs-cta .btn {
    width: 100%;
    max-width: 20rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .btn-lg {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }

  .chip {
    font-size: 0.74rem;
  }

  .chart-frame-wrap,
  .chart-placeholder {
    min-height: 280px;
  }

  .dex-chart-frame {
    height: 300px;
  }

  .pack-logo-wrap {
    width: 200px;
    height: 200px;
    border-radius: 28px;
  }

  .pack-logo-img,
  .pack-logo-fallback {
    border-radius: 26px;
  }

  .hub-onepager-hero .pack-logo-wrap {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
    flex-basis: 132px !important;
  }

  .hub-onepager-hero .pack-logo-wrap img,
  .hub-onepager-hero .pack-logo-main {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
  }
}

@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .pack-card:hover {
    transform: none;
  }
}

/* ========== Launch polish (hero, cards, steps, grant) ========== */
.hero-launch {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.hero-launch .hero-content h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 1rem;
  font-weight: 800;
}

.hero-launch .lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-launch .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.hero-trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  max-width: 36rem;
}

.hero-trust-strip li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.06);
}

.hero-trust-strip li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 0.4rem;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

/* Hero logo alone — no outer network circles / rings */
.hero-pack-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 1rem;
  width: min(100%, 420px);
  margin: 0 auto;
}

.hero-logo-only .hero-hub-logo-core {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: min(100%, 320px);
  max-width: 320px;
  min-width: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 245, 212, 0.45);
  box-shadow:
    0 0 0 6px rgba(155, 93, 229, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 245, 212, 0.22);
  background: #0a0914;
  z-index: 3;
}

.hero-hub-logo-core .hero-logo-still,
.hero-hub-logo-core .hero-logo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

.hero-hub-logo-core .hero-logo-still {
  z-index: 1;
}

.hero-hub-logo-core .hero-logo-video {
  z-index: 2;
}

.hero-hub-logo-core .hero-logo-video.is-failed {
  opacity: 0;
  pointer-events: none;
}

.hero-viz-caption {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .hero-launch {
    grid-template-columns: 1fr;
    padding-top: 1.75rem;
    text-align: left;
  }
  .hero-pack-viz {
    order: -1;
    width: min(100%, 300px);
  }
  .hero-logo-only .hero-hub-logo-core {
    width: min(100%, 260px);
    max-width: 260px;
  }
}

/* How it works steps */
.how-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.how-step:hover {
  border-color: rgba(0, 245, 212, 0.35);
  transform: translateY(-2px);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #05040c;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  margin-bottom: 0.75rem;
}

.how-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--display);
}

.how-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* Demo note + empty states */
.demo-note {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.05);
}

.empty-state-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.empty-state-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Modern pack cards */
.pack-card-modern {
  border: 1px solid rgba(155, 93, 229, 0.22);
  background: linear-gradient(165deg, rgba(24, 21, 40, 0.98), rgba(12, 10, 22, 0.98));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pack-card-modern:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 16px 48px rgba(0, 245, 212, 0.08), var(--shadow);
  transform: translateY(-3px);
}

.pack-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.chip-meta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
}

.chip-status-open {
  background: rgba(0, 245, 212, 0.14);
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: var(--cyan);
  font-weight: 700;
}

.chip-status-closed {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.pack-member-progress {
  margin: 0.75rem 0 0.85rem;
}

.pack-member-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pack-member-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(155, 93, 229, 0.2);
}

.pack-member-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
  transition: width 0.35s ease;
}

.looking-expand-btn {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.looking-preview-text {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Pack carousel: 3 cards visible; arrows below the cards ── */
.pack-carousel {
  --pc-gap: 1rem;
  --pc-visible: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: var(--max, 1120px);
  margin: 0 auto 0.75rem;
  padding: 0 0.25rem;
  width: 100%;
  box-sizing: border-box;
}

.pack-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  padding: 0.25rem 0 0.45rem;
}

.pack-carousel-swipe-label {
  font-family: var(--display, inherit);
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00f5d4;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.45);
}

.pack-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 212, 0.35) transparent;
  border-radius: 18px;
  padding: 0.35rem 0 0.85rem;
  min-width: 0;
}

.pack-carousel-viewport::-webkit-scrollbar {
  height: 6px;
}
.pack-carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.35);
  border-radius: 999px;
}

.pack-carousel-track.pack-grid,
.pack-carousel-track.browse-grid,
.pack-carousel-track.pack-grid-home-featured {
  --pc-card-w: calc(
    (100% - (var(--pc-gap) * (var(--pc-visible) - 1))) / var(--pc-visible)
  );
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap !important;
  gap: var(--pc-gap);
  grid-template-columns: none !important;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0.15rem 0;
  /* 100% = viewport width so each card is exactly 1/3 of visible area */
  --pc-basis: calc(
    (100cqi - (var(--pc-gap) * (var(--pc-visible) - 1))) / var(--pc-visible)
  );
}

/* Use container width of viewport for true “3 remain” sizing */
.pack-carousel-viewport {
  container-type: inline-size;
  container-name: pack-carousel;
}

.pack-carousel-track > .pack-card,
.pack-carousel-track > .empty-packs,
.pack-carousel-track > .home-packs-more {
  /* Exactly 3 fit in the viewport; more cards slide with arrows */
  flex: 0 0 calc((100cqi - (var(--pc-gap) * (var(--pc-visible) - 1))) / var(--pc-visible));
  width: calc((100cqi - (var(--pc-gap) * (var(--pc-visible) - 1))) / var(--pc-visible));
  max-width: calc((100cqi - (var(--pc-gap) * (var(--pc-visible) - 1))) / var(--pc-visible));
  scroll-snap-align: start;
  box-sizing: border-box;
}

.pack-carousel-track > .home-packs-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(0, 245, 212, 0.3);
  background: rgba(0, 245, 212, 0.04);
  box-sizing: border-box;
}

.pack-carousel-arrow {
  appearance: none;
  /* Slightly smaller circle, big chevron, price-lime green */
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  border: 3px solid #7dffe8;
  background: linear-gradient(145deg, #b8fff0 0%, #00ffd0 28%, #00f5d4 62%, #00e5c8 100%);
  color: #05040c;
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 0.8;
  padding: 0 0 0.08em;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-shadow: none;
  filter: none;
  box-shadow:
    0 0 0 3px rgba(0, 245, 212, 0.45),
    0 0 0 6px rgba(0, 245, 212, 0.15),
    0 0 28px rgba(0, 245, 212, 0.85),
    0 0 48px rgba(0, 229, 200, 0.5),
    0 10px 28px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  z-index: 5;
  animation: pack-carousel-arrow-pulse 2.4s ease-in-out infinite;
}

.pack-carousel-arrow:hover:not(:disabled) {
  transform: scale(1.1);
  border-color: #ffffff;
  color: #05040c;
  background: linear-gradient(145deg, #e6fffa 0%, #7dffe8 35%, #00f5d4 100%);
  box-shadow:
    0 0 0 4px rgba(0, 245, 212, 0.55),
    0 0 0 8px rgba(125, 255, 232, 0.25),
    0 0 40px rgba(0, 255, 208, 1),
    0 0 64px rgba(0, 245, 212, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.5);
  animation: none;
}

.pack-carousel-arrow:disabled {
  opacity: 0.22;
  cursor: default;
  animation: none;
  filter: grayscale(0.35) brightness(0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes pack-carousel-arrow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(0, 245, 212, 0.4),
      0 0 0 6px rgba(0, 245, 212, 0.12),
      0 0 24px rgba(0, 245, 212, 0.75),
      0 0 40px rgba(0, 229, 200, 0.4),
      0 10px 28px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(125, 255, 232, 0.55),
      0 0 0 8px rgba(0, 245, 212, 0.2),
      0 0 36px rgba(0, 255, 208, 1),
      0 0 56px rgba(0, 245, 212, 0.6),
      0 10px 28px rgba(0, 0, 0, 0.5);
  }
}

.pack-carousel-hint {
  text-align: center;
  margin: 0.15rem auto 1.35rem;
  max-width: var(--max, 1120px);
  padding: 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(232, 230, 242, 0.88);
  line-height: 1.4;
}

.pack-carousel-hint::first-line {
  /* “Swipe for your pack” reads first / slightly stronger via overall weight */
}

@media (prefers-reduced-motion: reduce) {
  .pack-carousel-arrow {
    animation: none;
  }
}

.pack-card.pack-carousel-hit {
  outline: 2px solid rgba(0, 245, 212, 0.85);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(0, 245, 212, 0.12),
    0 0 28px rgba(155, 93, 229, 0.35);
}

/* Tablet: 2 remain + arrows */
@media (max-width: 900px) {
  .pack-carousel {
    --pc-visible: 2;
  }
}

/* Phone: 1 remain; arrows stay under cards */
@media (max-width: 640px) {
  .pack-carousel {
    --pc-visible: 1;
    gap: 0.55rem;
  }

  .pack-carousel-arrow {
    position: static;
    transform: none;
    width: 2.95rem;
    height: 2.95rem;
    font-size: 2.85rem;
  }

  .pack-carousel-hint {
    font-size: 0.98rem;
  }

  .pack-carousel-prev {
    left: 0.15rem;
  }

  .pack-carousel-next {
    right: 0.15rem;
  }

  .pack-carousel-viewport {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
}

/* Fallback when cqi unsupported: approx 3 columns via % of track parent */
@supports not (width: 1cqi) {
  .pack-carousel-track > .pack-card,
  .pack-carousel-track > .empty-packs,
  .pack-carousel-track > .home-packs-more {
    flex: 0 0 min(18.5rem, 78vw);
    width: min(18.5rem, 78vw);
    max-width: min(18.5rem, 78vw);
  }
}

/* ── Ref-style pack cards (LIVE / DEMO browse cards) ── */
.pack-card-ref {
  border: 1px solid rgba(0, 245, 212, 0.18);
  background: linear-gradient(165deg, rgba(18, 22, 38, 0.98), rgba(10, 12, 22, 0.98));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pack-card-ref:hover {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 18px 48px rgba(0, 245, 212, 0.1), 0 14px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.pack-card-ref.pack-card-live {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), 0 14px 40px rgba(0, 0, 0, 0.35);
}

.pack-card-ref.pack-card-live:hover {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 18px 48px rgba(52, 211, 153, 0.12), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.pack-card-ref .pack-card-hit {
  display: block;
  padding: 1.15rem 1.2rem 1rem;
  color: inherit;
  text-decoration: none;
}

.pack-card-ref-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-height: 3.25rem;
}

.pack-card-ref-head .pack-avatar-sm,
.pack-card-ref-head .pack-avatar-img,
.pack-card-ref-head .pack-avatar-mosaic {
  width: 3.25rem !important;
  height: 3.25rem !important;
  min-width: 3.25rem !important;
  min-height: 3.25rem !important;
  border-radius: 50% !important;
  font-size: 1.15rem !important;
  box-shadow: 0 6px 18px rgba(155, 93, 229, 0.35);
  border: 2px solid rgba(0, 245, 212, 0.4) !important;
}

.pack-card-ref-title {
  margin: 0 0 0.65rem !important;
  font-family: var(--display);
  font-size: 1.15rem !important;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.pack-card-ref .pack-card-body {
  padding: 0;
}

.pack-card-ref .pack-card-kind-row {
  margin-bottom: 0.85rem;
}

.pack-card-ref .chip-meta {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.pack-card-ref .chip-chain {
  border-color: rgba(0, 245, 212, 0.28);
  color: var(--cyan);
}

.pack-card-ref .chip-keys {
  border-color: rgba(155, 93, 229, 0.35);
  color: #c4a0f0;
  letter-spacing: 0.03em;
}

.chip-entry-closed {
  border-color: rgba(255, 209, 102, 0.4) !important;
  color: #ffe6a3 !important;
  background: rgba(255, 209, 102, 0.1) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pack-card-ref.pack-card-example:has(.chip-entry-closed) {
  border-color: rgba(255, 209, 102, 0.28);
}

.keys-control-line {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.18);
  background: rgba(0, 245, 212, 0.05);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.keys-control-line .keys-control-note {
  color: var(--muted);
  font-size: 0.82rem;
}

/* EXAMPLE one-pager polish */
.hub-demo-token-note {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.06);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.hub-demo-token-note strong {
  color: var(--cyan);
}

.hub-banner-wrap {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  max-height: 220px;
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-bottom: 0;
  background: #0a0914;
}

.hub-banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

#hubLookingCard .hub-page-body {
  white-space: pre-wrap;
}

.hub-onepager-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hub-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 600;
}

.hub-member-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-member-fallback {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #05040c;
}

/* Live coin price on pack cards (DexScreener) */
.pack-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.06);
}

.pack-card-price-row .members-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pack-card-price-row .pack-price-value {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pack-card-ref .pack-member-progress {
  margin: 0 0 0.75rem;
}

.pack-card-ref .members-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pack-card-ref .members-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.pack-card-ref .pack-member-bar {
  height: 0.38rem;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
}

.pack-card-ref .pack-member-bar-fill {
  background: linear-gradient(90deg, #00e5c8, #00f5d4);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.45);
}

.pack-card-ref .looking-preview-text,
.pack-card-ref .community-desc {
  margin: 0 0 1rem;
  min-height: 2.6em;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-card-cta-ref {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.7rem 1rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  background: transparent !important;
  color: var(--cyan) !important;
  border: 1.5px solid rgba(0, 245, 212, 0.55) !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pack-card-ref:hover .pack-card-cta-ref,
.pack-card-cta-ref:hover {
  background: rgba(0, 245, 212, 0.1) !important;
  border-color: var(--cyan) !important;
  color: #fff !important;
}

/* LIVE / DEMO status chips with glowing dots */
.chip-live-dot,
.chip-demo-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.chip-live-dot {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.chip-demo-dot {
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.35);
  color: var(--cyan);
}

.chip-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-live-dot .chip-dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
  animation: live-dot-pulse 1.8s ease-in-out infinite;
}

.chip-demo-dot .chip-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.7);
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.pack-card-ref .pack-token-bar {
  margin: 0;
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

/* Grant slot visual tracker */
.grant-slot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.45rem;
  margin: 1rem 0 0.85rem;
}

.grant-slot-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(155, 93, 229, 0.28);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.grant-slot-cell.is-claimed {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.35);
}

.grant-slot-cell.is-pending {
  background: rgba(255, 209, 102, 0.22);
  border-color: rgba(255, 209, 102, 0.55);
}

.grant-slot-cell.is-open {
  background: rgba(5, 4, 12, 0.5);
}

.grant-slots-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.grant-legend-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.grant-legend-swatch.is-claimed {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: 0;
}

.grant-legend-swatch.is-pending {
  background: rgba(255, 209, 102, 0.45);
  border-color: rgba(255, 209, 102, 0.6);
}

.grant-legend-swatch.is-open {
  background: rgba(255, 255, 255, 0.06);
}

.grant-card-launch {
  max-width: 40rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .grant-slot-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Hub disclaimer polish */
.hub-onepager-hero .pack-ownership-note {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.05);
}

.hub-onepager-hero .membership-rules-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 700;
}

.hub-onepager-hero .pack-looking-for-body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Founding grant rules */
.grant-rules-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.25);
  background: rgba(0, 245, 212, 0.06);
  text-align: left;
}
.grant-rules-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted, #9b93b5);
  font-size: 0.92rem;
}
.grant-rules-list li { margin: 0.3rem 0; }
.grant-rules-mini {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
  list-style: disc;
}

/* Grant rules � two columns (shorter box) */
.grant-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  margin-top: 0.45rem;
  text-align: left;
}
.grant-rules-grid .grant-rules-list {
  margin: 0;
  padding-left: 1.1rem;
}
.grant-rules-box .grant-rules-list li {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .grant-rules-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Grant rules � 3 columns (shortest box) */
.grant-rules-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.25rem 1rem;
}
.grant-rules-grid-3 .grant-rules-list li {
  font-size: 0.84rem;
  margin: 0.2rem 0;
}
@media (max-width: 720px) {
  .grant-rules-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .grant-rules-grid-3 {
    grid-template-columns: 1fr;
  }
}

.grant-rules-tagline {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 245, 212, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(232, 230, 242, 0.88);
  text-align: center;
  line-height: 1.35;
}

/*  Pack progress meter + launch checklist + looking-for filters  */
.hub-progress-meter {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 6, 18, 0.55);
}

.hub-progress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.hub-progress-overall {
  font-size: 0.85rem;
  color: var(--muted);
}

.hub-progress-overall strong {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.hub-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
}

@media (max-width: 520px) {
  .hub-progress-grid {
    grid-template-columns: 1fr;
  }
}

.hub-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hub-progress-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hub-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00e5c8, #9b5de5);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.chip-launch-status {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.chip-launch-status.is-forming,
.hub-progress-meter.is-forming .chip-launch-status {
  background: rgba(155, 93, 229, 0.2);
  border-color: rgba(155, 93, 229, 0.45);
  color: #e9d5ff;
}

.chip-launch-status.is-live,
.hub-progress-meter.is-live .chip-launch-status {
  background: rgba(0, 245, 212, 0.14);
  border-color: rgba(0, 245, 212, 0.45);
  color: #99f6e4;
}

.chip-launch-status.is-growing,
.hub-progress-meter.is-growing .chip-launch-status {
  background: rgba(254, 228, 64, 0.14);
  border-color: rgba(254, 228, 64, 0.45);
  color: #fde68a;
}

.chip-launch-status.is-closed,
.hub-progress-meter.is-closed .chip-launch-status {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.hub-checklist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hub-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.hub-check-item.is-done {
  border-color: rgba(0, 245, 212, 0.22);
  background: rgba(0, 245, 212, 0.06);
}

.hub-check-item.is-todo {
  opacity: 0.92;
}

.hub-check-mark {
  flex: 0 0 auto;
  width: 1.25rem;
  text-align: center;
  color: var(--cyan);
  font-weight: 700;
}

.hub-check-item.is-todo .hub-check-mark {
  color: var(--muted);
}

.hub-check-edit-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  width: 100%;
}

.hub-check-edit-label input {
  margin-top: 0.2rem;
}

.pack-card-progress-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
}

.pack-card-progress-stat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lf-filters {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
}

.lf-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .lf-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .lf-filters-grid {
    grid-template-columns: 1fr;
  }
}

.chip-role-tag {
  background: rgba(241, 91, 181, 0.12);
  border-color: rgba(241, 91, 181, 0.35);
  color: #fbcfe8;
}

.lf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

/* Pack name first, site name after (hub branding) */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.1rem;
}
.logo-pack-name {
  font-weight: 800;
  font-size: 0.95em;
  color: var(--text, #f0edff);
}
.logo-site-name {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9b93b5);
  opacity: 0.9;
}
.banner-pack-name {
  font-weight: 800;
}
.banner-site-name {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.88em;
}
.hub-url-pack-first {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
}
.hub-url-site-sep {
  color: var(--muted, #9b93b5);
}

/* Optional founder X trust badge */
.chip-founder-x {
  background: rgba(29, 155, 240, 0.16) !important;
  border-color: rgba(29, 155, 240, 0.5) !important;
  color: #7dd3fc !important;
  font-weight: 700;
  text-decoration: none;
}
a.chip-founder-x:hover {
  filter: brightness(1.12);
  text-decoration: none;
}
.browse-filter-x {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.browse-filter-x input {
  width: auto;
  margin: 0;
}
.pack-card.has-founder-x {
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.2);
}
