/* ===== WORLD DePIN — Global Stylesheet ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0a0a0f;
  --bg-card:   #111118;
  --bg-card2:  #16161f;
  --accent:    #FFE600;
  --accent-dk: #ccb800;
  --white:     #ffffff;
  --gray:      #8888a0;
  --border:    rgba(255,255,255,0.07);
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Inter', sans-serif;
  --max-w:     1160px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  /* Prevent horizontal scrollbar caused by 100vw ticker breakout */
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: rgba(255,255,255,0.75); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header p {
  max-width: 560px;
  margin-top: 0.75rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: #fff000;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,230,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo span {
  color: var(--white);
}

.nav-logo em {
  color: var(--accent);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--white);
}

.mobile-menu .btn {
  margin: 1rem 1.25rem 1.25rem;
  text-align: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255,230,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,230,0,0.1);
  border: 1px solid rgba(255,230,0,0.25);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '●';
  font-size: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 1.25rem;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- How It Works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.how-card:hover {
  border-color: rgba(255,230,0,0.2);
  transform: translateY(-4px);
}

.how-card::before {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--accent);
  color: #0a0a0f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

.how-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.how-card h3 {
  margin-bottom: 0.6rem;
}

/* ---------- Why DePIN ---------- */
.why-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,230,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-feature-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.why-feature-text p {
  font-size: 0.85rem;
}

.why-visual {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.earning-preview {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.earning-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.earning-row .device-count {
  font-size: 0.85rem;
  color: var(--gray);
}

.earning-row .daily {
  font-weight: 600;
  font-size: 0.9rem;
}

.earning-row .monthly {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Cards Grid (general) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(255,230,0,0.15);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Nodes Page ---------- */
.nodes-hero {
  padding-block: 5rem 3rem;
}

.nodes-hero .hero-content {
  max-width: 680px;
}

/* Earnings table */
.earnings-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.earnings-table thead {
  background: rgba(255,230,0,0.06);
}

.earnings-table th {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.earnings-table th:first-child {
  color: var(--white);
}

.earnings-table td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.earnings-table tbody tr:last-child td {
  border-bottom: none;
}

.earnings-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.earnings-table .nodes-col {
  font-weight: 700;
}

.earnings-table .highlight-col {
  color: var(--accent);
  font-weight: 700;
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: steps;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  margin-bottom: 0.3rem;
}

/* Requirements */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.req-item::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* EarthNodes teaser */
.earthnodes-teaser {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0d0d18 100%);
  border: 1px solid rgba(255,230,0,0.12);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.earthnodes-teaser::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,230,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,230,0,0.08);
  border: 1px solid rgba(255,230,0,0.2);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- About Page ---------- */
.about-hero {
  padding-block: 5rem 3rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text-block h2 {
  font-size: 1.8rem;
}

.mission-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.mission-card h4 {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.value-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.value-item strong {
  color: var(--white);
}

.value-item span {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,230,0,0.08);
  border: 1px solid rgba(255,230,0,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-body h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-method-body a,
.contact-method-body p {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color var(--transition);
}

.contact-method-body a:hover {
  color: var(--accent);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.85);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(255,230,0,0.08);
  border: 1px solid rgba(255,230,0,0.2);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(255,230,0,0.12);
  border-color: rgba(255,230,0,0.3);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---------- Dividers ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ---------- Inline highlight ---------- */
.text-accent { color: var(--accent); }
.text-gray   { color: var(--gray); }
.fw-700      { font-weight: 700; }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .how-grid, .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .why-grid, .about-content, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .req-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 4rem 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.4rem; }
  .how-card { padding: 1.5rem; }
  .contact-form { padding: 1.5rem; }
  .earthnodes-teaser { padding: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Active nav link ── */
.nav-links a.active { color: var(--yellow); }

/* ── News page ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-section-heading { font-size: 1.4rem; font-weight: 700; color: var(--white); margin: 3rem 0 1.25rem; border-left: 3px solid var(--yellow); padding-left: 0.75rem; }
.news-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s, transform 0.2s; }
.news-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.news-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.news-card-meta time { font-size: 0.8rem; color: var(--text-muted); }
.news-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.4; margin: 0; }
.news-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
.news-read-more { font-size: 0.85rem; color: var(--yellow); text-decoration: none; font-weight: 600; margin-top: auto; }
.news-read-more:hover { text-decoration: underline; }
.news-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.tag-unity { background: var(--yellow); color: #000; }
.tag-wm { background: #1a6bff; color: #fff; }
.tag-mntx { background: #ff6b1a; color: #fff; }
.tag-depin { background: #6b1aff; color: #fff; }

/* ── Metrics page ── */
.metrics-update-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; overflow: hidden; }
@media (max-width: 1024px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .price-cards { grid-template-columns: 1fr; } }
.price-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; transition: border-color 0.2s; min-width: 0; overflow: hidden; }
.price-card:hover { border-color: var(--yellow); }
.price-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
.token-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.7rem; flex-shrink: 0; }
.wmt-icon { background: rgba(26,107,255,0.15); color: #4d8fff; border: 1px solid rgba(26,107,255,0.3); }
.mntx-icon { background: rgba(255,107,26,0.15); color: #ff8c4d; border: 1px solid rgba(255,107,26,0.3); }
.token-name { font-weight: 600; color: var(--white); font-size: 0.82rem; }
.token-ticker { font-size: 0.72rem; color: var(--text-muted); }
.price-value { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 0.2rem; font-variant-numeric: tabular-nums; }
.price-change { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.price-change.positive { color: #22c55e; }
.price-change.negative { color: #ef4444; }
.price-meta { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; margin-bottom: 1.25rem; overflow: hidden; }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.75rem; text-align: center; min-width: 0; overflow: hidden; }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 800; color: var(--yellow); display: block; margin-bottom: 0.15rem; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--white); font-weight: 600; display: block; margin-bottom: 0.1rem; }
.stat-card .stat-note { font-size: 0.7rem; color: var(--text-muted); }
.metrics-section-heading { font-size: 1.15rem; font-weight: 700; color: var(--white); margin: 1.75rem 0 0.85rem; border-left: 3px solid var(--yellow); padding-left: 0.65rem; }

/* ── Referrals page ── */
.referrals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .referrals-grid { grid-template-columns: 1fr; } }
.referral-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.2s, transform 0.2s; }
.referral-card:hover { transform: translateY(-3px); }
.referral-featured { border-color: var(--yellow) !important; position: relative; }
.referral-badge { display: inline-block; background: var(--yellow); color: #000; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; align-self: flex-start; }
.referral-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.icon-unity { background: rgba(255,230,0,0.15); color: var(--yellow); border: 1px solid rgba(255,230,0,0.3); }
.icon-wm { background: rgba(26,107,255,0.15); color: #4d8fff; border: 1px solid rgba(26,107,255,0.3); }
.icon-mntx { background: rgba(255,107,26,0.15); color: #ff8c4d; border: 1px solid rgba(255,107,26,0.3); }
.referral-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 0; }
.referral-card .subtitle { font-size: 0.85rem; color: var(--text-muted); margin: -0.5rem 0 0; }
.referral-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.earnings-pill { display: inline-flex; align-items: center; background: rgba(255,230,0,0.1); border: 1px solid rgba(255,230,0,0.3); color: var(--yellow); font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 20px; align-self: flex-start; }
.referral-code-box { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.referral-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.5rem; }
.referral-code-row { display: flex; align-items: center; gap: 0.75rem; }
.referral-code-row code { font-family: 'Courier New', monospace; font-size: 0.9rem; color: var(--yellow); font-weight: 600; flex: 1; word-break: break-all; }
.copy-btn { background: var(--yellow); color: #000; border: none; padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.copy-btn:hover { opacity: 0.85; }
.copy-btn.copied { background: #22c55e; color: #fff; }
.referral-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; text-align: center; }
.coming-soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .coming-soon-grid { grid-template-columns: 1fr; } }
.coming-soon-card { background: var(--card-bg); border: 1px dashed var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; opacity: 0.7; }
.coming-soon-card h4 { color: var(--white); font-size: 1rem; margin: 0.5rem 0 0.3rem; }
.coming-soon-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.coming-soon-label { display: inline-block; background: rgba(255,255,255,0.06); color: var(--text-muted); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }

/* ===== Language Switcher ===== */
.lang-switcher { display: flex; align-items: center; gap: 0.25rem; margin-right: 0.5rem; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.5rem; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; white-space: nowrap; display: flex; align-items: center; gap: 0.2rem; }
.lang-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.lang-btn--active { border-color: var(--yellow); color: var(--yellow); background: rgba(255,230,0,0.08); }
@media (max-width: 900px) { .lang-switcher { display: none; } }

/* ===== Price Ticker Bar ===== */
#wd-price-ticker {
  background: #06060b;
  border-bottom: 1px solid rgba(255,230,0,0.18);
  /*
   * Full-viewport breakout — works even when this element is inside a
   * max-width container.  We use a negative margin trick rather than
   * 100vw (which adds a scrollbar on Windows) or left/transform
   * (which can cause layout shift):
   *
   *   position: relative breaks us out of normal flow so left/right margins
   *   can reference the viewport via calc.
   *   margin-left: calc(-50vw + 50%) pushes the left edge to the viewport left.
   *   width: 100vw then fills the full viewport.
   *   overflow-x: hidden on <html> (added below) prevents the 17px scrollbar.
   */
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  z-index: 200;
  padding: 0;
}
/* Track: clip boundary with vertical padding */
#wd-price-ticker .ticker-track {
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0;
  display: block;
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  /* Content is doubled — animate x=0 to x=-50% of total content width */
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}
#wd-price-ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0.25rem; }
.ticker-symbol { color: var(--yellow); font-weight: 700; letter-spacing: 0.04em; }
.ticker-price { color: #fff; }
.ticker-gbp { color: rgba(255,255,255,0.55); font-size: 0.68rem; }
.ticker-up   { color: #22c55e; font-size: 0.7rem; }
.ticker-down { color: #ef4444; font-size: 0.7rem; }
.ticker-sep  { color: rgba(255,230,0,0.25); margin: 0 0.4rem; }
.ticker-ts   { color: rgba(255,255,255,0.3); font-size: 0.65rem; padding: 0 0.5rem; }
.ticker-loading { color: rgba(255,255,255,0.35); font-size: 0.7rem; padding: 0.3rem 1.25rem; }
@media (max-width: 600px) {
  .ticker-ts { display: none; }
  .ticker-inner { animation-duration: 25s; }
}

/* ===== News Tabs ===== */
.news-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.news-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  border-radius: 0;
  white-space: nowrap;
}
.news-tab-btn:hover { color: rgba(255,255,255,0.85); }
.news-tab-btn.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.news-tab-panel { display: none; }
.news-tab-panel.active { display: block; }

/* ===== Language Dropdown ===== */
.lang-switcher { position: relative; display: flex; align-items: center; margin-right: 0.5rem; }
.lang-current-btn {
  background: transparent;
  border: 1px solid rgba(255,230,0,0.35);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-current-btn:hover { background: rgba(255,230,0,0.08); }
.lang-current-btn .lang-chevron { font-size: 0.6rem; opacity: 0.7; transition: transform 0.15s; }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #111118;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  min-width: 130px;
  z-index: 500;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lang-switcher.open .lang-dropdown-menu { display: block; }
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.lang-dropdown-item:hover { background: rgba(255,230,0,0.08); color: var(--yellow); }
.lang-dropdown-item.active { color: var(--yellow); }

/* ===== Nav Dropdowns — click-to-open, mirrors lang-switcher pattern ===== */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.has-dropdown > a::after {
  content: '▾';
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.15s;
  display: inline-block;
}
/* Chevron rotates when open */
.has-dropdown.open > a::after { transform: rotate(180deg); }
/* Dropdown hidden by default; shown by .open class on parent li (set by JS) */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  min-width: 0;
}
.has-dropdown.open > .nav-dropdown { display: block; }
.nav-dropdown-inner {
  background: #111118;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  overflow: hidden;
  padding: 0.4rem 0;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255,230,0,0.07); color: var(--yellow) !important; }
.nav-dropdown-header {
  padding: 0.4rem 1rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.25rem;
}
@media (max-width: 900px) { .has-dropdown > a::after { display: none; } }

/* ===== Next Event Bar ===== */
.next-event-bar {
  background: linear-gradient(90deg, rgba(255,230,0,0.12) 0%, rgba(255,230,0,0.05) 100%);
  border-top: 1px solid rgba(255,230,0,0.3);
  border-bottom: 1px solid rgba(255,230,0,0.3);
  padding: 0.5rem 0;
}
.next-event-bar .container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.next-event-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--yellow); text-transform: uppercase; }
.next-event-title { font-size: 0.85rem; font-weight: 600; color: #fff; flex: 1; }
.next-event-countdown { font-size: 0.8rem; font-weight: 700; color: var(--yellow); white-space: nowrap; background: rgba(255,230,0,0.1); padding: 0.2rem 0.6rem; border-radius: 6px; border: 1px solid rgba(255,230,0,0.25); }

/* ===== Sentiment / Network Status Cards ===== */
.sentiment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .sentiment-grid { grid-template-columns: 1fr; } }
.sentiment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.sentiment-card:hover { border-color: rgba(255,230,0,0.3); }
.sentiment-header { display: flex; justify-content: space-between; align-items: center; }
.sentiment-project { font-size: 0.9rem; font-weight: 700; color: #fff; }
.sentiment-tone { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.tone-positive { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.tone-neutral  { background: rgba(234,179,8,0.12); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.tone-negative { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.sentiment-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sstat { display: flex; flex-direction: column; }
.sstat-val { font-size: 1rem; font-weight: 700; color: var(--yellow); line-height: 1.2; }
.sstat-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.45); font-weight: 500; }
.sentiment-tldr { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.55; margin: 0; flex: 1; }
.sentiment-link { font-size: 0.8rem; font-weight: 600; color: var(--yellow); text-decoration: none; margin-top: auto; }
.sentiment-link:hover { text-decoration: underline; }

/* Ticker marquee — defined above in the ticker block */
