:root {
  --bg: #0b0f14;
  --surface: #121923;
  --surface-alt: #182231;
  --surface-glass: rgba(24, 34, 49, 0.72);
  --text: #f3f7fb;
  --text-secondary: #9fb0c3;
  --emerald: #12d67a;
  --emerald-soft: rgba(18, 214, 122, 0.22);
  --gold: #f5c451;
  --cyan: #4fc3ff;
  --danger: #f87171;
  --line: #243244;
}

* { box-sizing: border-box; }

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 195, 255, 0.1), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(18, 214, 122, 0.14), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--cyan); text-decoration-color: rgba(79, 195, 255, 0.4); }
a:hover { color: #87d8ff; }

h1, h2, h3, h4, h5 { color: var(--text); letter-spacing: -0.03em; }

.navbar,
.footer {
  background: rgba(11, 15, 20, 0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.flight-deck-header {
  position: sticky;
  top: 0;
  z-index: 1080;
}

.flight-deck-topbar {
  position: relative;
  z-index: 1080;
  padding: 0.9rem 0 0.75rem;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.94), rgba(11, 15, 20, 0.88)) !important;
  border-bottom: 1px solid rgba(79, 195, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(18, 214, 122, 0.2), rgba(79, 195, 255, 0.2)),
    var(--surface-alt);
  border: 1px solid rgba(18, 214, 122, 0.5);
  position: relative;
  display: inline-block;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60ffc0, var(--emerald));
}

.logo-mark::before { left: 7px; height: 9px; }
.logo-mark::after { left: 14px; height: 14px; }

.logo-arrow {
  position: absolute;
  right: 4px;
  top: 4px;
  color: var(--gold);
  font-size: 0.62rem;
  line-height: 1;
}

.container { max-width: 1180px; }

.nav-shell {
  gap: 0.75rem;
}

.flight-deck-shell {
  align-items: center;
}

.flight-deck-brand {
  position: relative;
  padding-right: 0.35rem;
}

.flight-deck-brand-copy {
  display: grid;
  gap: 0.08rem;
  line-height: 1.05;
}

.flight-deck-brand-copy strong {
  color: var(--text);
  font-size: 1.02rem;
}

.flight-deck-brand-copy span {
  color: var(--text-secondary);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.flight-deck-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(18, 214, 122, 0.14);
}

.flight-deck-telemetry {
  align-items: end;
  gap: 0.28rem;
  margin-right: auto;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 195, 255, 0.16);
  background: rgba(19, 28, 40, 0.72);
}

.flight-deck-telemetry span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 195, 255, 0.85), rgba(18, 214, 122, 0.92));
  box-shadow: 0 0 12px rgba(79, 195, 255, 0.3);
}

.flight-deck-telemetry span:nth-child(1) { height: 10px; }
.flight-deck-telemetry span:nth-child(2) { height: 15px; }
.flight-deck-telemetry span:nth-child(3) { height: 21px; }
.flight-deck-telemetry span:nth-child(4) { height: 26px; }

.flight-deck-toggle {
  margin-top: 0.15rem;
  border-color: rgba(79, 195, 255, 0.24);
}

.flight-deck-collapse {
  width: 100%;
}

.flight-deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.flight-deck-row-main {
  min-height: 54px;
  flex-wrap: wrap;
}

.nav-primary {
  gap: 0.35rem;
}

.flight-deck-nav {
  flex-wrap: wrap;
}

.nav-primary .nav-link,
.flight-deck-auth-links .nav-link {
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-primary .nav-link:hover,
.nav-primary .nav-link:focus-visible,
.flight-deck-auth-links .nav-link:hover,
.flight-deck-auth-links .nav-link:focus-visible {
  color: var(--text);
  background: rgba(79, 195, 255, 0.12);
}

.nav-primary .nav-link.active,
.flight-deck-auth-links .nav-link.active {
  color: #d8f3ff;
  background: rgba(79, 195, 255, 0.2);
}

.flight-deck-auth-links {
  display: flex;
}

.flight-deck-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.flight-deck-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flight-deck-primary-cta {
  white-space: nowrap;
}

.flight-deck-logout {
  margin: 0;
}

.card,
.feature-card,
.dashboard-panel,
.auth-card,
.stat-card,
.kpi-strip,
.comparison-panel,
.process-step,
.score-module,
.leaderboard-card,
.pricing-teaser,
.final-cta,
.metric-panel,
.featured-card,
.control-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 214, 122, 0.12), rgba(24, 34, 49, 0.9) 45%),
    var(--surface);
  border: 1px solid #2c4258;
  border-radius: 22px;
  padding: 2.75rem;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 20%, rgba(79, 195, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.04;
  margin-bottom: 1rem;
  max-width: 12ch;
}

.accent-text { color: var(--emerald); }

.hero-subhead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 54ch;
}

.hero-panel-centered {
  text-align: center;
}

.hero-panel-centered .rank-chip,
.hero-panel-centered .hero-subhead,
.hero-panel-centered .hero-actions {
  margin-left: auto;
  margin-right: auto;
}

.hero-panel-centered .hero-heading {
  margin-left: auto;
  margin-right: auto;
}

.hero-panel-centered .hero-actions {
  justify-content: center;
}

.rank-chip,
.rank-badge,
.score-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-chip {
  background: rgba(79, 195, 255, 0.1);
  border: 1px solid rgba(79, 195, 255, 0.45);
  color: #b4e5ff;
}

.rank-badge {
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.45);
  color: #ffe09d;
}

.score-capsule {
  background: var(--emerald-soft);
  border: 1px solid rgba(18, 214, 122, 0.52);
  color: #b7ffde;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-primary,
.btn-growth {
  background: linear-gradient(90deg, var(--emerald), #0fb969);
  border: 0;
  color: #041c12;
  box-shadow: 0 12px 26px rgba(18, 214, 122, 0.2);
}

.btn-secondary,
.btn-premium {
  background: linear-gradient(90deg, #1f3044, #223a56);
  border: 1px solid #355171;
  color: var(--text);
}

.btn-premium {
  background: linear-gradient(90deg, #5f4a16, #7f6420);
  color: #fff5d8;
  border: 1px solid rgba(245, 196, 81, 0.5);
}

.btn-ghost,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light {
  border: 1px solid #3a4f6c;
  color: var(--text);
  background: transparent;
}

.ladder-live {
  background: var(--surface-glass);
  border: 1px solid #2b445f;
  border-radius: 16px;
  padding: 1.1rem;
}

.ladder-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(159, 176, 195, 0.2);
}

.ladder-row:last-child { border-bottom: 0; }

.momentum-bar {
  background: rgba(79, 195, 255, 0.12);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.momentum-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  box-shadow: 0 0 18px rgba(18, 214, 122, 0.4);
  animation: pulseBar 2.7s ease-in-out infinite;
}

@keyframes pulseBar {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.metric-panel,
.control-panel,
.featured-card,
.process-step,
.comparison-panel,
.leaderboard-card,
.pricing-teaser,
.score-module,
.final-cta { padding: 1.3rem; }

.metric-value {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
}

.delta-up { color: var(--emerald); }
.delta-down { color: var(--danger); }
.delta-data { color: var(--cyan); }
.movement-up { color: var(--emerald); }
.movement-down { color: var(--danger); }
.movement-stable { color: var(--gold); }

.mini-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
  height: 90px;
  align-items: end;
}

.mini-chart span {
  background: linear-gradient(180deg, rgba(79, 195, 255, 0.55), rgba(18, 214, 122, 0.95));
  border-radius: 6px 6px 0 0;
}

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step-icon { font-size: 1.15rem; margin-bottom: 0.45rem; color: var(--emerald); }

.weighted-bar {
  background: #0d1520;
  border: 1px solid #27415a;
  border-radius: 999px;
  height: 11px;
  overflow: hidden;
}

.weighted-fill { height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); }

.comparison-panel.random .weighted-fill { background: linear-gradient(90deg, #3d4e68, #52647f); }
.comparison-panel.weighted { border-color: rgba(18, 214, 122, 0.5); }

.featured-card {
  border-color: rgba(245, 196, 81, 0.45);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.16);
  background: linear-gradient(160deg, rgba(245, 196, 81, 0.1), rgba(18, 25, 35, 0.95) 45%);
}

.leaderboard-list { list-style: none; margin: 0; padding: 0; }
.leaderboard-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(24, 34, 49, 0.45);
  margin-bottom: 0.55rem;
}

.leaderboard-item.top { border: 1px solid rgba(245, 196, 81, 0.5); }

.pricing-teaser.premium { border-color: rgba(245, 196, 81, 0.52); }

.final-cta {
  text-align: center;
  background: linear-gradient(140deg, rgba(18, 214, 122, 0.16), rgba(11, 15, 20, 0.94));
  border-color: rgba(18, 214, 122, 0.4);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value { font-size: 1.6rem; font-weight: 800; }

.section-title { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 1rem; }
.text-muted { color: var(--text-secondary) !important; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); }
.table thead th { color: var(--text-secondary); text-transform: uppercase; font-size: 0.76rem; }
.form-control,
.form-select,
.input-group-text {
  background: #0f1723;
  border: 1px solid #2f4560;
  color: var(--text);
}
.form-control::placeholder {
  color: #7f92a8;
  opacity: 1;
}
.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.input-group .form-control:disabled,
.input-group .form-control[readonly] {
  background: #111b2a;
  border-color: #2f4560;
  color: #dbe7f3;
  -webkit-text-fill-color: #dbe7f3;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 0.2rem rgba(79, 195, 255, 0.18);
  background: #0f1723;
  color: var(--text);
}
.form-select option,
.form-select optgroup {
  background: #0f1723;
  color: var(--text);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0f1723 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.badge-plan { background: rgba(79, 195, 255, 0.16); color: #bde8ff; border: 1px solid rgba(79, 195, 255, 0.42); }
.footer { border-top: 1px solid #18283d; margin-top: 3rem; }
.accent-line { height: 3px; background: linear-gradient(90deg, var(--emerald), var(--cyan), var(--gold)); }

@media (max-width: 992px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-deck-header {
    position: static;
  }
  .flight-deck-shell {
    align-items: center;
  }
  .flight-deck-collapse {
    margin-top: 0.9rem;
  }
  .flight-deck-row,
  .flight-deck-row-main,
  .flight-deck-actions,
  .flight-deck-cta-cluster {
    align-items: stretch;
    flex-direction: column;
  }
  .nav-primary,
  .flight-deck-auth-links {
    width: 100%;
    margin-top: 0.2rem;
    background: rgba(18, 25, 35, 0.95);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.6rem;
    align-items: stretch !important;
  }
  .nav-primary .nav-link,
  .flight-deck-auth-links .nav-link,
  .flight-deck-primary-cta,
  .flight-deck-logout .btn {
    width: 100%;
    justify-content: center;
  }
  .flight-deck-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-panel { padding: 1.35rem; }
  .process-grid { grid-template-columns: 1fr; }
  .leaderboard-item { grid-template-columns: auto 1fr auto; }
  .flight-deck-brand-copy span {
    letter-spacing: 0.12em;
  }
}

.member-banner-card {
  background: var(--surface-alt);
  border: 1px solid #2b3f58;
  border-radius: 14px;
}

.member-banner-thumb {
  width: 100%;
  max-height: 165px;
  object-fit: cover;
  background: #0a111a;
}


.banner-preview-shell {
  position: sticky;
  top: 5.5rem;
}

.banner-preview-size {
  border-radius: 999px;
  border: 1px solid rgba(79, 195, 255, 0.3);
  background: rgba(79, 195, 255, 0.08);
  color: #c7edff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.8rem;
  text-transform: uppercase;
}

.banner-preview-stage {
  border-radius: 18px;
  border: 1px solid rgba(79, 195, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(79, 195, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(24, 34, 49, 0.95), rgba(11, 15, 20, 0.98));
  padding: 1rem;
}

.banner-preview-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(18, 214, 122, 0.12), rgba(79, 195, 255, 0.1)),
    #0f1722;
  min-height: 152px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.banner-preview-status {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border-radius: 999px;
  background: rgba(12, 18, 27, 0.9);
  border: 1px solid rgba(159, 176, 195, 0.22);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
}

.banner-preview-status[data-tone="success"] {
  color: #b7ffde;
  border-color: rgba(18, 214, 122, 0.5);
}

.banner-preview-status[data-tone="danger"] {
  color: #ffd0d0;
  border-color: rgba(248, 113, 113, 0.5);
}

.banner-preview-image {
  width: 468px;
  max-width: 100%;
  aspect-ratio: 468 / 60;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
  background: rgba(8, 12, 18, 0.9);
}

.banner-preview-placeholder {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  color: var(--text-secondary);
}

.banner-preview-placeholder strong {
  color: var(--text);
}

.banner-preview-details {
  display: grid;
  gap: 0.75rem;
}

.banner-preview-detail-card {
  border-radius: 14px;
  border: 1px solid rgba(36, 50, 68, 0.95);
  background: rgba(9, 14, 21, 0.65);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.3rem;
}

.banner-preview-label {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-preview-link {
  color: #c7edff;
  overflow-wrap: anywhere;
}

.member-page-preview {
  border: 1px solid #2f435b;
  border-radius: 12px;
  padding: 1rem;
  background: rgba(12, 19, 28, 0.75);
}

.featured-banner-block {
  border-radius: 18px;
  border: 1px solid rgba(18, 214, 122, 0.35);
  background: linear-gradient(140deg, rgba(18, 214, 122, 0.08), rgba(24, 34, 49, 0.9));
}

.featured-banner-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.member-public-shell .member-public-hero {
  border: 1px solid rgba(79, 195, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.member-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--member-accent, var(--emerald));
}

.member-hub-shell {
  position: relative;
}

.member-hub-shell::before {
  content: "";
  position: absolute;
  inset: -1rem 0 auto;
  height: 260px;
  background: linear-gradient(140deg, rgba(245, 196, 81, 0.14), transparent 40%, rgba(79, 195, 255, 0.1));
  pointer-events: none;
  z-index: -1;
}

.member-hub-hero,
.member-public-hero,
.admin-member-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #2d435e;
  background:
    linear-gradient(145deg, rgba(245, 196, 81, 0.08), rgba(79, 195, 255, 0.05) 35%, rgba(18, 25, 35, 0.96) 65%),
    var(--surface);
}

.member-hub-hero::after,
.member-public-hero::after,
.admin-member-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(159, 176, 195, 0.04) 26px 27px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d9b35f;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0.35rem 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  border: 1px solid;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: #8dffd2;
  border-color: rgba(18, 214, 122, 0.55);
  background: rgba(18, 214, 122, 0.14);
}

.status-disabled {
  color: #ffd79a;
  border-color: rgba(245, 196, 81, 0.5);
  background: rgba(245, 196, 81, 0.1);
}

.status-warning {
  color: #ffb1b1;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.copy-feedback {
  min-height: 1.2rem;
  font-size: 0.8rem;
}

.stat-card {
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.75), rgba(13, 20, 30, 0.95));
  border: 1px solid #31455e;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 255, 0.65), transparent);
}

.stat-trend {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.member-panel-title {
  font-size: 1.04rem;
  margin-bottom: 1rem;
}

.member-settings-card,
.member-preview-card,
.member-help-card,
.admin-filter-bar,
.admin-table-shell {
  border-radius: 16px;
  border: 1px solid #2b3f58;
  background: linear-gradient(165deg, rgba(25, 36, 50, 0.8), rgba(16, 24, 35, 0.95));
}

.member-preview-mock {
  border: 1px solid #344f69;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(150deg, rgba(79, 195, 255, 0.1), rgba(12, 18, 26, 0.95));
}

.preview-banner-glow {
  border: 1px solid rgba(245, 196, 81, 0.42);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(245, 196, 81, 0.09);
  box-shadow: 0 0 20px rgba(245, 196, 81, 0.16);
}

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

.preview-grid > div {
  height: 52px;
  border-radius: 8px;
  border: 1px solid #2f435b;
  background: rgba(12, 19, 28, 0.8);
}

.member-banner-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.member-banner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 195, 255, 0.58);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.member-banner-card.featured-asset {
  border-color: rgba(245, 196, 81, 0.62);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.2);
}

.member-banner-card.excluded-asset {
  opacity: 0.75;
  border-style: dashed;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.72rem;
  background: rgba(79, 195, 255, 0.12);
  border: 1px solid rgba(79, 195, 255, 0.38);
  color: #b7e9ff;
}

.momentum-badge {
  background: rgba(18, 214, 122, 0.13);
  border: 1px solid rgba(18, 214, 122, 0.48);
  color: #b6ffd8;
}

.featured-banner-block {
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(18, 214, 122, 0.15);
}

.featured-banner-block .featured-banner-image {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.featured-banner-block:hover .featured-banner-image {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.32);
}

.member-banner-grid-card {
  border: 1px solid #2b3f58;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.78), rgba(12, 18, 26, 0.95));
  transition: transform 180ms ease, border-color 180ms ease;
}

.member-banner-grid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 195, 255, 0.56);
}

.javascript-render-row {
  width: 100%;
}

.javascript-render-surface {
  overflow-x: auto;
}

.trust-footer {
  border: 1px solid #2b3f58;
  border-radius: 14px;
  background: rgba(12, 19, 28, 0.7);
}

.admin-filter-bar .form-check-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.admin-table-shell table tbody tr {
  transition: background-color 140ms ease;
}

.admin-table-shell table tbody tr:hover {
  background: rgba(79, 195, 255, 0.08);
}

.table-stat {
  font-weight: 700;
}

@media (max-width: 768px) {
  .member-hub-hero,
  .member-public-hero,
  .admin-member-hero {
    border-radius: 16px;
  }

  .member-hero-actions .btn {
    flex: 1 1 auto;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }
}

.source-breakdown-card {
  border-color: #365777;
}

.source-contribution-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  border: 1px solid #315072;
  background: #0d1722;
}

.source-contribution-bar > span {
  background: linear-gradient(90deg, var(--emerald), #19b6ff);
}

.source-contribution-bar > span.source-native {
  background: linear-gradient(90deg, #305377, #4b6f95);
}

.impact-stat {
  border: 1px solid #304961;
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(12, 19, 28, 0.6);
}

.quality-status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.76rem;
  border: 1px solid;
}

.quality-pill-strong { color: #9affcd; border-color: rgba(18, 214, 122, 0.5); background: rgba(18, 214, 122, 0.12); }
.quality-pill-warning { color: #ffdca8; border-color: rgba(245, 196, 81, 0.5); background: rgba(245, 196, 81, 0.12); }
.quality-pill-risk { color: #ffafaf; border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.12); }

.boost-row {
  border: 1px solid #2c4359;
  border-radius: 12px;
  background: rgba(15, 23, 34, 0.7);
}

.boost-thumb {
  width: 80px;
  height: 26px;
  object-fit: cover;
}

.trend-arrow-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  border: 1px solid;
}

.trend-arrow-chip.up { color: #a4ffd2; border-color: rgba(18, 214, 122, 0.5); background: rgba(18, 214, 122, 0.14); }
.trend-arrow-chip.down { color: #ffb2b2; border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.12); }
.trend-arrow-chip.steady { color: #ffe4b0; border-color: rgba(245, 196, 81, 0.45); background: rgba(245, 196, 81, 0.12); }

.mini-trend-grid {
  height: 130px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
}

.trend-col { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 0.25rem; height: 100%; }
.trend-bar { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, rgba(79, 195, 255, 0.65), rgba(18, 214, 122, 0.95)); }
.trend-day { font-size: 0.66rem; color: var(--text-secondary); }

.leaderboard-lift-row {
  border-left: 3px solid #3b82f6;
  background: #111b31;
  border-radius: 8px;
}

.growth-engine-section {
  border: 1px solid rgba(18, 214, 122, 0.34);
  background: linear-gradient(145deg, rgba(18, 214, 122, 0.09), rgba(12, 18, 26, 0.92));
}

.growth-page-mock {
  border: 1px solid #34506b;
  border-radius: 14px;
  padding: 1rem;
  background: rgba(11, 20, 30, 0.8);
}

.mock-hero,
.mock-featured,
.mock-row {
  border: 1px solid #30475f;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
}

.mock-featured {
  border-color: rgba(245, 196, 81, 0.5);
  background: rgba(245, 196, 81, 0.1);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  background: rgba(79, 195, 255, 0.08);
}

.growth-cta-card {
  border-color: rgba(79, 195, 255, 0.4);
  background: linear-gradient(150deg, rgba(79, 195, 255, 0.1), rgba(12, 18, 26, 0.94));
}

.onboarding-modal .modal-content {
  background: var(--surface);
  border: 1px solid #365777;
}

.momentum-profile-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.momentum-ambient {
  position: absolute;
  inset: -2rem 0 auto;
  min-height: 28rem;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.momentum-orb,
.momentum-grid,
.momentum-streak,
.momentum-particles {
  position: absolute;
}

.momentum-orb {
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
}

.momentum-orb-a {
  top: -4rem;
  left: -3rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--member-accent, var(--gold)) 52%, transparent), transparent 65%);
  animation: floatGlow 14s ease-in-out infinite;
}

.momentum-orb-b {
  top: 2rem;
  right: -5rem;
  background: radial-gradient(circle, rgba(79, 195, 255, 0.28), transparent 65%);
  animation: floatGlow 18s ease-in-out infinite reverse;
}

.momentum-grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  opacity: 0.32;
}

.momentum-streak {
  width: 18rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 170, 0.88), transparent);
  filter: blur(0.5px);
  opacity: 0.65;
}

.momentum-streak-a {
  top: 6rem;
  right: 18%;
  transform: rotate(-24deg);
  animation: streakLift 8s linear infinite;
}

.momentum-streak-b {
  top: 12rem;
  left: 10%;
  transform: rotate(-18deg);
  animation: streakLift 10s linear infinite 1.5s;
}

.momentum-particles {
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1.5px);
  background-size: 68px 68px;
  opacity: 0.16;
  animation: driftParticles 16s linear infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 16px, 0) scale(1.06); }
}

@keyframes streakLift {
  0% { transform: translate3d(-2rem, 2rem, 0) rotate(-24deg); opacity: 0; }
  15%, 70% { opacity: 0.7; }
  100% { transform: translate3d(8rem, -8rem, 0) rotate(-24deg); opacity: 0; }
}

@keyframes driftParticles {
  from { transform: translateY(0); }
  to { transform: translateY(-32px); }
}

.momentum-hero,
.momentum-spotlight,
.momentum-share-strip,
.momentum-trust-ribbon,
.momentum-script-card,
.member-page-empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(94, 118, 148, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(155deg, rgba(255, 214, 119, 0.08), rgba(79, 195, 255, 0.06) 28%, rgba(12, 17, 24, 0.96) 74%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.momentum-hero::before,
.momentum-spotlight::before,
.momentum-share-strip::before,
.momentum-trust-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.06) 28%, transparent 44%);
  opacity: 0.45;
  pointer-events: none;
}

.momentum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.momentum-hero__identity,
.momentum-hero__scoreboard,
.momentum-spotlight__details {
  position: relative;
  z-index: 1;
}

.momentum-hero__eyebrow-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.momentum-kicker { color: #ffd88a; }

.momentum-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: #d8f8ff;
  background: rgba(10, 19, 29, 0.7);
  border: 1px solid rgba(79, 195, 255, 0.32);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.momentum-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #5dffbf;
  box-shadow: 0 0 0 0 rgba(93, 255, 191, 0.6);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 255, 191, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(93, 255, 191, 0); }
}

.momentum-badge-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.momentum-badge-chip--rank {
  color: #fff1c6;
  border-color: rgba(245, 196, 81, 0.46);
  background: rgba(245, 196, 81, 0.12);
  box-shadow: 0 0 24px rgba(245, 196, 81, 0.12);
}

.momentum-badge-chip--momentum {
  color: #d4fff0;
  border-color: rgba(18, 214, 122, 0.42);
  background: rgba(18, 214, 122, 0.11);
}

.momentum-badge-chip--status {
  color: #cfefff;
  border-color: rgba(79, 195, 255, 0.42);
  background: rgba(79, 195, 255, 0.1);
}

.momentum-display {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.momentum-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #eef7ff;
  max-width: 44rem;
}

.momentum-description {
  max-width: 42rem;
  line-height: 1.65;
}

.momentum-avatar {
  width: 84px;
  height: 84px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04), 0 0 24px color-mix(in srgb, var(--member-accent, var(--gold)) 18%, transparent);
}

.momentum-chip {
  display: inline-grid;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  min-width: min(100%, 15rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 19, 28, 0.55);
}

.momentum-chip strong {
  font-size: 0.96rem;
  color: #f9fbff;
}

.momentum-chip span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.momentum-hero__scoreboard {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.momentum-score-card,
.momentum-hero__meter {
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 21, 0.68);
}

.momentum-score-card--rank {
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.12), rgba(8, 14, 21, 0.75));
  border-color: rgba(245, 196, 81, 0.28);
}

.momentum-score-card__label,
.momentum-meter__label,
.momentum-stat-card__label,
.momentum-asset-card__label,
.momentum-section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #a7b9cb;
}

.momentum-score-card__value {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
  margin: 0.3rem 0 0.35rem;
}

.momentum-score-card__meta,
.momentum-stat-card__micro,
.momentum-asset-card__meta,
.momentum-share-strip__copy,
.momentum-spotlight__copy,
.momentum-spotlight__support,
.momentum-section__copy {
  color: var(--text-secondary);
  line-height: 1.6;
}

.momentum-meter {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.momentum-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(79, 195, 255, 0.95), color-mix(in srgb, var(--member-accent, var(--emerald)) 80%, white));
  box-shadow: 0 0 18px rgba(79, 195, 255, 0.28);
}

.momentum-meter--gold > span {
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.92), rgba(255, 243, 199, 0.98));
  box-shadow: 0 0 22px rgba(245, 196, 81, 0.3);
}

.momentum-kpi-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.momentum-stat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(79, 195, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 28, 40, 0.92), rgba(10, 15, 22, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.momentum-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.9rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 255, 0.65), transparent);
}

.momentum-stat-card--alt {
  border-color: rgba(18, 214, 122, 0.22);
}

.momentum-stat-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff3cf;
  background: linear-gradient(145deg, rgba(245, 196, 81, 0.22), rgba(79, 195, 255, 0.12));
  border: 1px solid rgba(245, 196, 81, 0.18);
}

.momentum-stat-card__value {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0.25rem 0 0.45rem;
}

.momentum-stat-card__value span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.momentum-section {
  display: grid;
  gap: 1.25rem;
}

.momentum-section__header,
.momentum-share-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

.momentum-section__title,
.momentum-share-strip__title,
.momentum-spotlight__title {
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  margin: 0.18rem 0 0;
}

.momentum-section__copy {
  max-width: 34rem;
  margin: 0;
}

.momentum-spotlight {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.momentum-spotlight__header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.momentum-spotlight__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 1.35rem;
  align-items: center;
}

.momentum-spotlight__preview {
  position: relative;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(245, 196, 81, 0.22);
  background: rgba(10, 14, 20, 0.78);
  overflow: hidden;
}

.momentum-spotlight__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.12) 34%, transparent 50%);
  transform: translateX(-120%);
  animation: spotlightShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spotlightShimmer {
  0%, 100% { transform: translateX(-120%); }
  45%, 60% { transform: translateX(120%); }
}

.momentum-spotlight__halo {
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.18), transparent 72%);
  filter: blur(20px);
}

.momentum-spotlight__image,
.momentum-spotlight__script {
  position: relative;
  z-index: 1;
}

.momentum-spotlight__image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.38);
}

.momentum-spotlight__metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.momentum-spotlight__metric,
.momentum-spotlight__ribbon {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 21, 0.7);
}

.momentum-spotlight__metric span,
.momentum-spotlight__ribbon span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb0c3;
}

.momentum-spotlight__metric strong {
  display: block;
  margin-top: 0.32rem;
  font-size: 1.45rem;
}

.momentum-spotlight__support {
  margin-bottom: 1.05rem;
}

.momentum-spotlight__cta {
  min-width: min(100%, 18rem);
}

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

.momentum-asset-card {
  position: relative;
  display: grid;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(79, 195, 255, 0.2);
  background: linear-gradient(180deg, rgba(18, 27, 39, 0.96), rgba(9, 14, 21, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.momentum-asset-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 195, 255, 0.42);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.34);
}

.momentum-asset-card--hot {
  border-color: rgba(245, 196, 81, 0.3);
}

.momentum-asset-card__frame {
  position: relative;
  padding: 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(245, 196, 81, 0.07), rgba(79, 195, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.momentum-asset-card__image {
  max-height: 220px;
  object-fit: cover;
  background: #081018;
}

.momentum-asset-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 14, 21, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.momentum-asset-card__title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.momentum-asset-card__title {
  font-size: 1.1rem;
  margin: 0.25rem 0 0;
}

.momentum-asset-card__score {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.55rem;
  border-radius: 18px;
  font-weight: 800;
  color: #fff0c9;
  background: rgba(245, 196, 81, 0.11);
  border: 1px solid rgba(245, 196, 81, 0.24);
}

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

.momentum-asset-card__metrics div {
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 12, 18, 0.64);
}

.momentum-asset-card__metrics span {
  display: block;
  font-size: 0.73rem;
  color: #9fb0c3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.momentum-asset-card__metrics strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.08rem;
}

.momentum-asset-card__meter {
  margin-top: 0.95rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.momentum-asset-card__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(79, 195, 255, 0.95), rgba(18, 214, 122, 0.92));
}

.momentum-action-btn,
.momentum-share-btn {
  border-radius: 999px;
  padding-inline: 1rem;
}

.momentum-script-card {
  padding: 1.2rem;
}

.momentum-script-card__title {
  font-size: 1.3rem;
}

.momentum-script-card__surface {
  background: linear-gradient(180deg, rgba(14, 20, 28, 0.95), rgba(9, 14, 21, 0.98)) !important;
}

.momentum-share-strip {
  padding: 1.2rem 1.35rem;
}

.momentum-share-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.momentum-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  background: rgba(8, 14, 21, 0.72);
}

.momentum-share-strip__feedback {
  flex: 1 0 100%;
}

.momentum-trust-ribbon {
  padding-inline: 1.2rem;
}

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

.momentum-trust-ribbon__items span {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 12, 18, 0.56);
}

.momentum-trust-ribbon__items strong {
  color: #f2f7fb;
}

.momentum-trust-ribbon__items em {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.6;
}

.member-page-empty-state {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 25, 36, 0.94), rgba(10, 15, 22, 0.98));
}

@media (max-width: 1200px) {
  .momentum-kpi-band,
  .momentum-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .momentum-hero,
  .momentum-spotlight__body {
    grid-template-columns: 1fr;
  }

  .momentum-display {
    font-size: clamp(2.3rem, 10vw, 4rem);
  }

  .momentum-kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .momentum-profile-shell {
    gap: 1rem;
  }

  .momentum-hero,
  .momentum-spotlight,
  .momentum-share-strip,
  .momentum-trust-ribbon,
  .momentum-script-card,
  .member-page-empty-state,
  .momentum-asset-card {
    border-radius: 22px;
  }

  .momentum-kpi-band,
  .momentum-asset-grid,
  .momentum-spotlight__metric-grid,
  .momentum-trust-ribbon__items,
  .momentum-asset-card__metrics {
    grid-template-columns: 1fr;
  }

  .momentum-asset-card__title-row,
  .momentum-section__header,
  .momentum-spotlight__header,
  .momentum-share-strip {
    align-items: start;
  }

  .momentum-chip {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .momentum-hero {
    padding: 1.1rem;
  }

  .momentum-score-card,
  .momentum-hero__meter,
  .momentum-stat-card,
  .momentum-asset-card,
  .momentum-share-strip,
  .momentum-script-card {
    padding: 1rem;
  }

  .momentum-stat-card {
    grid-template-columns: 1fr;
  }

  .momentum-stat-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}


.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 195, 255, 0.12);
  border: 1px solid rgba(79, 195, 255, 0.18);
  color: #d8f3ff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.referrals-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(79, 195, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(18, 214, 122, 0.18), transparent 34%),
    var(--surface);
}

.referrals-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(79, 195, 255, 0.08);
  filter: blur(24px);
}

.referrals-hero-copy,
.referrals-hero-panel,
.referral-tree-shell {
  position: relative;
  z-index: 1;
}

.referrals-hero-panel {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 195, 255, 0.12);
  background: rgba(14, 20, 29, 0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.referral-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.legend-dot-active { background: var(--emerald); }
.legend-dot-inactive { background: var(--danger); }
.legend-dot-free { background: var(--cyan); }

.referral-tree-shell {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.referral-tree-root,
.referral-tree-children {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.referral-tree-root {
  display: flex;
  justify-content: center;
}

.referral-tree-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.75rem;
}

.referral-tree-children {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
}

.referral-tree-children::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 2px;
  height: 1.4rem;
  background: linear-gradient(180deg, rgba(79, 195, 255, 0.65), rgba(18, 214, 122, 0.45));
  transform: translateX(-50%);
}

.referral-tree-children > .referral-tree-item::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  width: calc(100% + 1.5rem);
  height: 2px;
  background: rgba(79, 195, 255, 0.32);
}

.referral-tree-children > .referral-tree-item::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 50%;
  width: 2px;
  height: 0.95rem;
  background: rgba(79, 195, 255, 0.32);
  transform: translateX(-50%);
}

.referral-tree-children > .referral-tree-item:first-child::before {
  left: 50%;
  width: calc(50% + 0.75rem);
}

.referral-tree-children > .referral-tree-item:last-child::before {
  right: 50%;
  left: auto;
  width: calc(50% + 0.75rem);
}

.referral-tree-children > .referral-tree-item:only-child::before {
  display: none;
}

.referral-node {
  position: relative;
  min-width: 240px;
  max-width: 280px;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(79, 195, 255, 0.14);
  background: linear-gradient(180deg, rgba(24, 34, 49, 0.96), rgba(14, 20, 29, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.referral-node-glow {
  position: absolute;
  inset: auto auto -18px -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(18, 214, 122, 0.14);
  filter: blur(22px);
  pointer-events: none;
}

.referral-node-header,
.referral-node-stats {
  position: relative;
  z-index: 1;
}

.referral-node-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.referral-node-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.referral-node-meta {
  color: var(--text-secondary);
  font-size: 0.83rem;
}

.referral-node-status {
  height: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.referral-node-status-active {
  background: rgba(18, 214, 122, 0.12);
  color: #9cf7c5;
  border-color: rgba(18, 214, 122, 0.28);
}

.referral-node-status-inactive,
.referral-node-status-suspended {
  background: rgba(248, 113, 113, 0.12);
  color: #ffc1c1;
  border-color: rgba(248, 113, 113, 0.22);
}

.referral-node-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.referral-empty-state {
  border: 1px dashed rgba(79, 195, 255, 0.22);
  border-radius: 20px;
  background: rgba(79, 195, 255, 0.04);
}

.referral-empty-icon {
  font-size: 2.5rem;
}

@media (max-width: 991.98px) {
  .referral-tree-root {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .referral-node {
    min-width: 220px;
  }
}

/* Momentum Control Center — Leaderboard */
.momentum-control-center .mcc-hero {
  border: 1px solid rgba(245, 196, 81, 0.34);
  background: linear-gradient(165deg, rgba(35, 48, 67, 0.7), rgba(12, 18, 26, 0.96));
}

.mcc-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mcc-hero-cta {
  min-width: min(100%, 280px);
}

.mcc-icon-badge {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.15);
  color: #ffeab6;
}

.mcc-metric-card {
  border: 1px solid #2d445d;
  background: linear-gradient(170deg, rgba(25, 36, 50, 0.84), rgba(12, 18, 26, 0.96));
}

.mcc-metric-value {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mcc-control-bar {
  position: sticky;
  top: 0.6rem;
  z-index: 15;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.mcc-control-bar.is-scrolled {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  border-color: rgba(245, 196, 81, 0.38);
}

.mcc-ladder {
  position: relative;
  overflow: hidden;
}

.mcc-ladder-rail {
  position: absolute;
  left: 2rem;
  top: 4.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.58), rgba(79, 195, 255, 0.28));
}

.mcc-rung {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 1.6fr) auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid #314a65;
  border-radius: 14px;
  padding: 0.8rem;
  margin: 0.65rem 0;
  background: rgba(14, 22, 34, 0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mcc-rung:hover,
.mcc-row:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 195, 255, 0.56);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.mcc-rung:nth-child(2) { margin-left: 0.15rem; }
.mcc-rung:nth-child(3) { margin-left: 0.3rem; }
.mcc-rung:nth-child(4) { margin-left: 0.45rem; }

.mcc-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #355675;
  background: rgba(79, 195, 255, 0.09);
  color: #d5f1ff;
}

.mcc-rank-1 .mcc-rank-badge {
  border-color: rgba(245, 196, 81, 0.8);
  background: rgba(245, 196, 81, 0.2);
  box-shadow: 0 0 18px rgba(245, 196, 81, 0.25);
}

.mcc-rank-2 .mcc-rank-badge {
  border-color: rgba(201, 216, 231, 0.7);
  background: rgba(201, 216, 231, 0.14);
}

.mcc-rank-3 .mcc-rank-badge {
  border-color: rgba(185, 132, 86, 0.74);
  background: rgba(185, 132, 86, 0.18);
}

.mcc-banner-link img,
.mcc-rung-banner img {
  width: 100%;
  max-width: 234px;
  border-radius: 8px;
  border: 1px solid #37516d;
  aspect-ratio: 39 / 5;
  object-fit: cover;
}

.mcc-table-shell {
  overflow: hidden;
}

.mcc-table thead th {
  position: sticky;
  top: 4.8rem;
  z-index: 2;
  background: #131f32;
}

.mcc-table tbody tr {
  border-color: rgba(57, 81, 108, 0.62);
}

.mcc-momentum-value {
  font-size: 1.1rem;
  font-weight: 800;
}

.mcc-momentum-bar {
  margin-top: 0.3rem;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #35506d;
  overflow: hidden;
  background: #0e1724;
}

.mcc-momentum-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(79, 195, 255, 0.8), rgba(18, 214, 122, 0.8));
}

.mcc-stat-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.mcc-stat-stack strong {
  font-size: 0.98rem;
}

.mcc-stat-stack span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: lowercase;
}

.mcc-owner {
  font-weight: 700;
}

.mcc-rank-1,
.mcc-rank-2,
.mcc-rank-3 {
  animation: softPulse 2.4s ease-in-out 1;
}

@keyframes softPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 2px rgba(245, 196, 81, 0.2); }
}

@media (max-width: 992px) {
  .mcc-rung {
    grid-template-columns: auto 1fr;
  }

  .mcc-rung-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mcc-control-bar {
    top: 0.25rem;
  }

  .mcc-control-bar .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .mcc-control-bar .col-md-3 {
    min-width: 220px;
  }

  .mcc-table thead {
    display: none;
  }

  .mcc-table,
  .mcc-table tbody,
  .mcc-table tr,
  .mcc-table td {
    display: block;
    width: 100%;
  }

  .mcc-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid #304863;
    border-radius: 12px;
    padding: 0.55rem;
    background: rgba(15, 24, 36, 0.92);
  }

  .mcc-table td {
    border: 0;
    padding: 0.35rem 0.45rem;
  }

  .mcc-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-bottom: 0.12rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .mcc-rung-banner img,
  .mcc-banner-link img {
    max-width: 100%;
  }
}
