:root {
    --bg-dark: #142223;
    --bg-light: #ffffff;

    --card-dark: #1E2F2F;
    --card-light: #f4f5f7;

    --text-dark: #F1F5F4;
    --text-light: #0e0f13;

    --muted-dark: #9FB7B2;
    --muted-light: #5f6368;

    --accent: #E83A3A;
    --glow: #63C6B7;
  }

  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    transition: all 0.3s ease;
  }

  body.light {
    background: var(--bg-light);
    color: var(--text-light);
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  body.light header {
    border-bottom: 1px solid #e5e7eb;
  }

  .logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .toggle {
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--card-dark);
    font-size: 0.85rem;
  }

  body.light .toggle {
    background: var(--card-light);
  }

  .btn {
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
  }

  .hero {
    padding: 80px 8% 60px;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
  }

  .hero-text {
    flex: 1;
    min-width: 300px;
  }

  .hero h1 {
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 1.05rem;
    max-width: 650px;
    color: var(--muted-dark);
  }

  body.light .hero p {
    color: var(--muted-light);
  }

  .hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-img img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
  }

  section {
    padding: 60px 8%;
    max-width: 1200px;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 16px;
  }

  .section-text {
    max-width: 800px;
    color: var(--muted-dark);
  }

  body.light .section-text {
    color: var(--muted-light);
  }

  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 36px;
  }

  .card {
    background: var(--card-dark);
    padding: 26px;
    border-radius: 16px;
    transition: transform 0.2s ease;
    text-align: center;
  }

  body.light .card {
    background: var(--card-light);
  }

  .card:hover {
    transform: translateY(-4px);
  }

  .card h3 {
    margin-top: 12px;
    font-size: 1.15rem;
  }

  .card p {
    margin-top: 6px;
  }

  .card .earnings {
    margin-top: 10px;
    font-weight: 600;
    color: var(--glow);
  }

  .card img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 28px;
  }

  .step {
    font-size: 0.95rem;
  }

  .cta-section {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
  }

  footer {
    padding: 30px 8%;
    font-size: 0.85rem;
    color: var(--muted-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  body.light footer {
    color: var(--muted-light);
    border-top: 1px solid #e5e7eb;
  }

  /* TRUST SIGNALS */
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px;
  }

  .trust-card {
    background: var(--card-dark);
    padding: 24px;
    border-radius: 14px;
    text-align: center;
  }

  body.light .trust-card {
    background: var(--card-light);
  }

  .trust-card h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accent);
  }

  .trust-card p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--muted-dark);
  }

  body.light .trust-card p {
    color: var(--muted-light);
  }

  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
  }

  .badge {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    font-size: 0.8rem;
  }

  body.light .badge {
    background: #eef0f3;
  }

  .disclaimer {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--muted-dark);
    max-width: 850px;
  }

  body.light .disclaimer {
    color: var(--muted-light);
  }

  .cta-img img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
  }

  /* LIVE Pulse Animation */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(232, 58, 58, 0.15);
  color: #E83A3A;
  position: relative;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #E83A3A;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 rgba(232, 58, 58, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 58, 58, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(232, 58, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 58, 58, 0);
  }
}

/* LIVE EARNINGS POPUP */
#earn-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--card-dark);
  color: var(--text-dark);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  max-width: 260px;
  display: none;
  z-index: 9999;
  animation: slideIn 0.4s ease;
}

body.light #earn-popup {
  background: var(--card-light);
  color: var(--text-light);
}

.earn-user {
  font-size: 0.75rem;
  color: var(--muted-dark);
}

body.light .earn-user {
  color: var(--muted-light);
}

.earn-amount {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--glow);
}

.earn-source {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* EARNING POPUP */
.earn-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--card-dark);
  color: var(--text-dark);
  padding: 14px 18px;
  border-radius: 12px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: pulseIn 0.6s ease;
}

body.light .earn-popup {
  background: var(--card-light);
  color: var(--text-light);
}

.earn-dot {
  width: 10px;
  height: 10px;
  background: var(--glow);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.earn-user {
  font-size: 0.85rem;
  font-weight: 600;
}

.earn-amount {
  font-size: 0.9rem;
  color: var(--glow);
  font-weight: 600;
}

.earn-source {
  font-size: 0.75rem;
  opacity: 0.8;
}

@keyframes pulseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.viewer-count {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #63C6B7;
  font-weight: 500;
}

@keyframes unlockPop {
  0% { transform: scale(0.85); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}

#reactions-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 300px;
  pointer-events: none;
  z-index: 999;
}

.reaction {
  position: absolute;
  bottom: 0;
  font-size: 22px;
  animation: floatUp 4s ease-in forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-260px) scale(1.2);
    opacity: 0;
  }
}

.ecosystem-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px;
  opacity: 0.9;
}

.ecosystem-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scrollLogos 45s linear infinite;
}

.ecosystem-track img {
  width: 42px;
  height: 42px;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.3s ease;
}

.ecosystem-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ecosystem-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-top: 24px;
}

body.light .ecosystem-note {
  color: var(--muted-light);
}

@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tap-hand {
  font-size: 2.2rem;
  margin-top: 12px;
  animation: tapPulse 1.2s infinite ease-in-out;
}

@keyframes tapPulse {
  0% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}

/* Floating support button */
#floatingSupportBtn {
  position: fixed;
  bottom: 60px; /* Pushed up from 20px to 60px */
  right: 20px;
  background-color: rgba(220, 38, 38, 0.8); /* Red with 80% opacity */
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.2s, background-color 0.2s;
}

#floatingSupportBtn:hover {
  background-color: rgba(220, 38, 38, 1); /* Fully opaque red on hover */
  transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #floatingSupportBtn {
    padding: 10px 14px;
    font-size: 14px;
  }
}
