/* ============ CSS VARIABLES ============ */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.35);
  --pill: rgba(20, 16, 30, 0.85);
  --pill-strong: rgba(30, 25, 45, 0.95);
  --msg-bg: rgba(30, 22, 50, 0.78);
  --msg-border: rgba(139, 92, 246, 0.08);
  --reaction-bg: rgba(45, 30, 70, 0.75);
  --reaction-active: rgba(139, 92, 246, 0.18);
  --reaction-active-border: rgba(139, 92, 246, 0.55);
  --accent-blue: #5b9bff;
  --accent-green: #22c55e;
  --accent-purple: #8b5cf6;
  --accent-violet: #7c3aed;
  --accent-red: #ff5c5c;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.35;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ STAGE (main container) ============ */
.stage {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000000;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 96px;
}

.stage-content {
  position: relative;
  z-index: 1;
}

/* ============ DOODLE BACKGROUND ============ */
.doodle-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='none' stroke='%237c3aed' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='0.15'><path d='M40 70 c-12-12 -12-28 0-28 c5 0 9 4 12 9 c3-5 7-9 12-9 c12 0 12 16 0 28 z'/><path d='M120 35 l5 13 l13 0 l-11 9 l4 13 l-11-8 l-11 8 l4-13 l-11-9 l13 0 z'/><circle cx='205' cy='40' r='14'/><path d='M205 54 l-2 5 l4 0 l-2-5z'/><line x1='205' y1='59' x2='205' y2='85'/><g transform='translate(50,150)'><line x1='-12' y1='0' x2='12' y2='0'/><line x1='0' y1='-12' x2='0' y2='12'/><line x1='-9' y1='-9' x2='9' y2='9'/><line x1='-9' y1='9' x2='9' y2='-9'/></g><g transform='translate(135,135)'><ellipse cx='0' cy='0' rx='14' ry='8'/><path d='M-14 0 l-8 -6 l0 12 z'/><path d='M14 0 l8 -6 l0 12 z'/></g><path d='M225 165 a14 14 0 1 1 -10 -13 a11 11 0 1 0 10 13 z'/><rect x='35' y='220' width='28' height='22' rx='2'/><line x1='49' y1='220' x2='49' y2='242'/><path d='M40 220 q-3 -8 9 -2 q12 -6 9 2'/><g transform='translate(110,225)'><path d='M-14 0 a14 14 0 0 1 28 0 z'/><line x1='0' y1='0' x2='0' y2='14'/><path d='M-3 14 a3 3 0 0 0 6 0'/></g><g transform='translate(190,225)'><ellipse cx='0' cy='0' rx='14' ry='7'/><path d='M14 0 l8 -7 l0 14 z'/><circle cx='-6' cy='-2' r='1.2' fill='%237c3aed'/></g></g></svg>");
  background-size: 280px 280px;
  background-repeat: repeat;
  opacity: 0.5;
}

/* ============ DOMAIN PILL ============ */
.domain-pill {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 500;
  letter-spacing: 0.1px;
}

.domain-pill svg {
  opacity: 0.7;
}

.domain-pill-dot {
  opacity: 0.4;
}

/* ============ HEADER ============ */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
}

.header-back-badge {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding: 0 4px;
}

.header-title-pill {
  flex: 1;
  background: var(--pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 16px 7px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.header-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.header-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.header-avatar {
  flex-shrink: 0;
}

.verified-badge {
  flex-shrink: 0;
  vertical-align: middle;
}

.online-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ LOGO AVATAR ============ */
.logo-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  position: relative;
  flex-shrink: 0;
  display: block;
}

.logo-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logo-avatar-ringed {
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.5),
    0 0 0 4px rgba(139, 92, 246, 0.2),
    0 10px 40px rgba(139, 92, 246, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.6);
}

/* ============ HERO CARD ============ */
.hero-card {
  position: relative;
  margin: 0 12px 16px;
  padding: 24px 18px 18px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 10, 40, 0.9) 0%, rgba(10, 5, 20, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
}

.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-avatar-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 14px;
}

/* LIVE Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px 3px 8px;
  border-radius: 6px;
  margin-top: 8px;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.live-badge.pulse {
  animation: badge-glow 0.6s ease;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); }
}

/* Hero Name */
.hero-name {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 2px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-handle {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

/* ============ STATS ROW ============ */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stat-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.8px;
  margin-top: 3px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.online-dot-stat {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

/* Hero Description */
.hero-desc {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 0 8px;
}

/* ============ CTA BUTTON ============ */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35), 0 3px 10px rgba(0, 0, 0, 0.4);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

/* CTA Sub Info */
.cta-sub-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cta-sub-dot {
  opacity: 0.4;
}

/* ============ PINNED MESSAGE ============ */
.pinned-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 6px;
  padding: 12px 14px;
  background: var(--msg-bg);
  border-radius: 14px;
  border: 1px solid var(--msg-border);
}

.pinned-icon-wrap {
  flex-shrink: 0;
}

.pinned-accent-bar {
  width: 3px;
  height: 32px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.pinned-content {
  flex: 1;
  min-width: 0;
}

.pinned-label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.pinned-text {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-pin-icon {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============ SECTION LABEL ============ */
.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 1.5px;
  padding: 16px 0 10px;
  text-transform: uppercase;
}

/* ============ MESSAGE BUBBLE ============ */
.msg-bubble {
  margin: 8px 12px;
  padding: 14px;
  background: var(--msg-bg);
  border-radius: 18px;
  border: 1px solid var(--msg-border);
  overflow: hidden;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.msg-author {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--accent-blue);
}

.msg-date {
  font-size: 11px;
  color: var(--muted-2);
}

/* Forwarded */
.msg-forwarded {
  margin-bottom: 10px;
  font-size: 12px;
}

.forwarded-label {
  color: var(--muted-2);
}

.forwarded-channel {
  color: var(--accent-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.forwarded-avatar-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c542, #e8a520);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}

/* Message Image */
.msg-image-wrap {
  margin: 8px -4px;
  border-radius: 12px;
  overflow: hidden;
}

.msg-image {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.msg-image-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Message Footer */
.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 6px;
}

.msg-views {
  font-size: 12px;
  color: var(--muted-2);
}

.msg-time {
  font-size: 11px;
  color: var(--muted-2);
}

/* Reactions */
.msg-reactions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--reaction-bg);
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction:hover {
  background: rgba(60, 55, 80, 0.85);
}

.reaction-active {
  background: var(--reaction-active);
  border-color: var(--reaction-active-border);
}

/* ============ PHONE MOCKUP (inside post) ============ */
.phone-mockup {
  background: #1a1a2e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.phone-time {
  font-weight: 700;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.battery {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}

.phone-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}

.phone-back-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.phone-title-pill {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

.phone-ch-name {
  font-size: 12px;
  font-weight: 700;
}

.phone-ch-sub {
  font-size: 9px;
  color: var(--muted);
}

.phone-ch-avatar {
  flex-shrink: 0;
}

.phone-pinned {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  margin: 4px 8px;
  border-radius: 10px;
}

.phone-pinned-bar {
  width: 2px;
  height: 24px;
  background: var(--accent-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.phone-pinned > div {
  flex: 1;
  min-width: 0;
}

.phone-chart-area {
  padding: 8px;
  min-height: 240px;
  background: linear-gradient(180deg, rgba(20, 15, 35, 0.9) 0%, rgba(15, 12, 28, 0.95) 100%);
}

.phone-chart-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.chart-placeholder {
  width: 100%;
  min-height: 220px;
  background: linear-gradient(180deg, #0d0b1a 0%, #121025 100%);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chart-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 9px
  );
}

.chart-bars::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-green) 40%, var(--accent-red) 60%, var(--accent-red));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(111, 184, 107, 0.3);
}

.chart-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-green);
  text-align: center;
  text-shadow: 0 0 20px rgba(111, 184, 107, 0.4);
  z-index: 1;
}

/* ============ SIGNAL BOX ============ */
.msg-signal-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.signal-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-emoji {
  font-size: 18px;
}

.signal-name {
  font-weight: 800;
  font-size: 15px;
  flex: 1;
}

.signal-type {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.signal-type-buy {
  background: rgba(111, 184, 107, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(111, 184, 107, 0.3);
}

.signal-type-sell {
  background: rgba(255, 92, 92, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(255, 92, 92, 0.3);
}

.signal-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.signal-label {
  font-weight: 600;
  color: var(--muted);
  width: 36px;
}

.signal-val {
  font-weight: 700;
  font-family: 'Inter', monospace;
}

.signal-val-green {
  color: var(--accent-green);
}

.signal-val-red {
  color: var(--accent-red);
}

.signal-check {
  font-size: 12px;
}

.signal-result {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.signal-result-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(111, 184, 107, 0.2), rgba(111, 184, 107, 0.05));
  color: var(--accent-green);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid rgba(111, 184, 107, 0.25);
  letter-spacing: 0.5px;
}

/* ============ DISCLAIMER FOOTER ============ */
.disclaimer-section {
  padding: 10px 20px 30px;
  margin: 10px 12px 0;
}

.disclaimer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}

.disclaimer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-blue);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.disclaimer-text {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
  margin: 0 0 8px;
}

/* ============ STICKY BOTTOM JOIN BAR ============ */
.join-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.98) 30%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.notify-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(40, 38, 50, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notify-btn:hover {
  background: rgba(55, 52, 68, 0.95);
}

.join-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.join-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35);
}

.join-bar-btn:active {
  transform: translateY(0);
}

/* Animated Glow and Shiny Sweep Effect for Buttons */
.cta-btn, .join-bar-btn {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 5px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.9), 0 0 15px rgba(139, 92, 246, 0.7); }
  100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 5px rgba(139, 92, 246, 0.2); }
}

.cta-btn::after, .join-bar-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.7), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 2.5s infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  25% { left: 200%; }
  100% { left: 200%; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .stage {
    max-width: 100%;
  }

  .join-bar {
    max-width: 100%;
  }

  .hero-name {
    font-size: 20px;
  }

  .stat-value {
    font-size: 16px;
  }
}

/* ============ OUTER GLOW (body background) ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
