:root {
  --bg-dark: #08090c;
  --bg-card: #12141a;
  --bg-card-hover: #171a22;
  --bg-card-alt: #161922;
  --bg-input: #0c0e12;
  --border-subtle: #1e222b;
  --border-glow: rgba(0, 245, 140, 0.25);
  --text-main: #f4f5f8;
  --text-muted: #8b93a0;
  --text-dim: #5a6270;
  --neon-green: #00f58c;
  --neon-green-glow: rgba(0, 245, 140, 0.15);
  --gold-accent: #ffb82e;
  --gold-glow: rgba(255, 184, 46, 0.15);
  --blue-accent: #00d2ff;
  --blue-glow: rgba(0, 210, 255, 0.15);
  --danger: #ff4d6d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Radial Glows */
body::before {
  content: "";
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(0, 245, 140, 0.09) 0%, rgba(0, 210, 255, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
header.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--neon-green), var(--blue-accent));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--neon-green-glow);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 24px;
  height: 24px;
  fill: #08090c;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  background: linear-gradient(to right, #fff, #b2ffdc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--neon-green);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.badge.pulse-green {
  color: var(--neon-green);
  border-color: rgba(0, 245, 140, 0.3);
  background: var(--neon-green-glow);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* SECTION: Project Introduction Hero */
.intro-hero {
  background: linear-gradient(160deg, #131722 0%, #0c0e14 100%);
  border: 1px solid rgba(0, 245, 140, 0.28);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.intro-hero::after {
  content: "FOMO SOCIAL VAULT";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 56px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: 2px;
  pointer-events: none;
}

.intro-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 140, 0.1);
  border: 1px solid rgba(0, 245, 140, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.intro-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: #fff;
  margin-bottom: 14px;
}

.intro-title span.highlight {
  background: linear-gradient(135deg, var(--neon-green) 0%, var(--blue-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Four Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 140, 0.3);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.pillar-card:nth-child(1) .pillar-icon { background: rgba(0, 245, 140, 0.12); color: var(--neon-green); }
.pillar-card:nth-child(2) .pillar-icon { background: rgba(255, 184, 46, 0.12); color: var(--gold-accent); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(0, 210, 255, 0.12); color: var(--blue-accent); }

.pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pillar-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* SECTION: Prize Hub (Big Numbers & Live Countdown) */
.prize-hub {
  background: linear-gradient(145deg, #12151d 0%, #0d0f15 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.hub-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.hub-val-main {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  color: #fff;
}

.hub-val-main span.unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-accent);
  margin-left: 8px;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 184, 46, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  text-align: right;
  min-width: 170px;
}

.countdown-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.countdown-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.stat-item .stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-item .stat-val {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

/* Fund Flow Splitter Box */
.fund-flow-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.flow-step b {
  color: #fff;
}

/* SECTION: FOMO Community Thesis Stream */
.fomo-stream-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .thesis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thesis-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thesis-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.thesis-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: #08090c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.thesis-handle {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.thesis-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: italic;
}

.thesis-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.fomo-cta-bar {
  background: linear-gradient(135deg, rgba(0, 245, 140, 0.08), rgba(0, 210, 255, 0.04));
  border: 1px dashed rgba(0, 245, 140, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* SECTION: Interactive Rules / 4-Step Infographic */
.rules-infographic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 640px) {
  .rules-infographic {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* General Card, Tables, Forms */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.lookup-form {
  display: flex;
  gap: 10px;
}

.input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-group svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  pointer-events: none;
}

input.text-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input.text-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px var(--neon-green-glow);
}

button.btn-primary {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--neon-green), #00d478);
  color: #08090c;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

button.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 245, 140, 0.3);
}

button.btn-secondary, a.btn-secondary {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

button.btn-secondary:hover, a.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Claim Box in User Profile */
.claim-container {
  background: linear-gradient(145deg, #151a22 0%, #101217 100%);
  border: 1px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.claim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.claim-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-accent);
}

.claim-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 620px) {
  .claim-routes {
    grid-template-columns: 1fr 1fr;
  }
}

.route-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 8px;
}

.route-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.copy-snippet {
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.copy-snippet:hover {
  border-color: var(--neon-green);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

table.data-table th,
table.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

table.data-table th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

table.data-table td.num,
table.data-table th.num {
  text-align: right;
}

a.table-link {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 600;
}

a.table-link:hover {
  text-decoration: underline;
}

/* FAQ Accordion List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modal and Canvas Brag Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.canvas-preview {
  width: 100%;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid var(--border-subtle);
}

/* Footer */
footer.page-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Utilities */
.muted { color: var(--text-muted); }
.text-green { color: var(--neon-green); }
.text-gold { color: var(--gold-accent); }
.mono { font-family: var(--font-mono); }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mb16 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.lh-1-7 { line-height: 1.7; }
.text-uppercase { text-transform: uppercase; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.btn-nav { font-size: 12px; padding: 6px 12px; }
.btn-compact { font-size: 13px; padding: 8px 16px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-accent), #f39c12); color: #08090c; }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.avatar-gold { background: var(--gold-accent); }
.avatar-green { background: var(--neon-green); }
.manifest-box { margin-top: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px; }
.flex-center-gap { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.hash { word-break: break-all; font-family: var(--font-mono); font-size: 12px; }

/* Connected Wallet Styles */
.btn-connected {
  background: rgba(0, 245, 140, 0.12);
  border: 1px solid rgba(0, 245, 140, 0.4);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-connected:hover {
  background: rgba(0, 245, 140, 0.22);
  border-color: var(--neon-green);
}

.wallet-banner {
  background: linear-gradient(135deg, rgba(0, 245, 140, 0.08) 0%, rgba(18, 20, 26, 0.9) 100%);
  border: 1px solid rgba(0, 245, 140, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wallet-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-addr {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
