/* ===== Variables ===== */
:root {
  --bg: #06060a;
  --bg-card: #0d0d12;
  --bg-card-hover: #14141c;
  --border: #1e1e2a;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #00e5b0;
  --accent-dim: #00b88a;
  --accent-glow: rgba(0, 229, 176, 0.35);
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --danger: #f43f5e;
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 18px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
  --glass: rgba(13, 13, 18, 0.85);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, rgba(0, 229, 176, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); }
.small { font-size: 0.875rem; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo-icon { font-size: 1.6rem; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-wallet-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-wallet-wrap .wallet-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.header-wallet-wrap .wallet-balance { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.wallet-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-right: 10px;
  color: var(--text-muted);
}
.wallet-balance { color: var(--accent); font-weight: 600; }

/* ===== Top token ticker bar ===== */
.ticker-bar-wrap {
  position: relative;
  z-index: 10;
  background: rgba(13, 13, 18, 0.95);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-bar {
  padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 45s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-label {
  flex-shrink: 0;
  padding: 4px 14px;
  margin-right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticker-card {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  margin-right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.ticker-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}
.ticker-card-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ticker-card-body { display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.ticker-card-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.ticker-card-symbol { font-size: 0.75rem; color: var(--text-muted); }
.ticker-card-price { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.8rem; margin-left: 4px; }
.ticker-card-pct { font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; }
.ticker-up { color: var(--success); }
.ticker-down { color: var(--danger); }
.ticker-item { display: none; }
.ticker-symbol { font-weight: 600; }

/* ===== Fake boost ticker (bottom left) ===== */
.fake-boost-ticker {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.fake-boost-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.fake-boost-list {
  max-height: 140px;
  overflow: hidden;
}
.fake-boost-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: fake-boost-in 0.4s ease;
}
.fake-boost-card:last-child { margin-bottom: 0; }
.fb-icon-wrap { position: relative; flex-shrink: 0; }
.fb-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-icon img { width: 100%; height: 100%; object-fit: cover; }
.fb-icon-placeholder { font-weight: 700; font-size: 1.2rem; color: var(--text-muted); }
.fb-lightning {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}
.fb-info { flex: 1; min-width: 0; }
.fb-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fb-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.fb-quick-boost {
  flex-shrink: 0;
  padding: 4px 10px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.fb-quick-boost:hover { opacity: 0.9; text-decoration: none; }
.fb-mc-vol { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.fb-status { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.fb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.fb-ago { color: var(--text-muted); }
@keyframes fake-boost-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.connect-transfer-loading { text-align: center; padding: 20px 0; }
.connect-transfer-loading .loading-dots { margin-bottom: 12px; }
.connect-add-more { margin-top: 16px; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.btn-accent {
  background: var(--accent);
  color: var(--bg);
}
.btn-accent:hover:not(:disabled) {
  background: var(--accent-dim);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-card); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 100px;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-title strong {
  background: linear-gradient(135deg, var(--accent), #00b4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-cta { margin-top: 28px; }
.hero-cta .btn-accent {
  box-shadow: 0 4px 24px var(--accent-glow);
}
.hero-cta .btn-accent:hover:not(:disabled) {
  box-shadow: 0 6px 32px var(--accent-glow);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 32px;
}

/* ===== Boost form ===== */
.boost-section .container { max-width: 640px; }
.boost-form-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}
.input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--primary); }

/* Token loading ===== */
.token-loading {
  text-align: center;
  padding: 48px 24px;
}
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.6; }
  40% { transform: scale(1.2); opacity: 1; }
}
.loading-text { font-weight: 600; margin: 0 0 4px; }
.loading-subtext { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* Token result ===== */
.token-result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.token-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.token-image-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.token-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.token-details { flex: 1; min-width: 200px; }
.token-name { font-size: 1.5rem; margin: 0 0 4px; }
.token-symbol { color: var(--text-muted); margin: 0 0 8px; font-size: 0.95rem; }
.token-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  margin: 0 0 20px;
}
.token-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-weight: 600; }
.change-positive { color: var(--success); }
.change-negative { color: var(--danger); }

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.step {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ===== Modals ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.modal-box-lg { max-width: 900px; }
.modal-header {
  padding: 24px 24px 0;
  padding-right: 48px;
  position: relative;
}
.modal-header h2 { margin: 0 0 8px; font-size: 1.35rem; }
.modal-subtitle { color: var(--text-muted); margin: 0 0 16px; font-size: 0.95rem; }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-body { padding: 24px; }

/* Connect wallet steps ===== */
.connect-step p { margin: 0 0 12px; color: var(--text-muted); }
.connect-step .btn-block { margin-bottom: 8px; }
.balance-label { font-weight: 600; color: var(--text) !important; }
.balance-value { font-size: 1.5rem; color: var(--accent) !important; font-weight: 700; }
.balance-hint { font-size: 0.9rem; margin-bottom: 16px !important; }
.balance-actions { display: flex; flex-direction: column; gap: 8px; }
.success-msg { color: var(--success) !important; font-weight: 600; }

/* Plans grid ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.plan-card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-badge-max { background: var(--primary); }
.plan-card h3 { margin: 24px 0 4px; font-size: 1rem; color: var(--text-muted); }
.plan-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.plan-duration { color: var(--text-muted); margin: 0 0 16px; font-size: 0.9rem; }
.plan-price { margin-bottom: 16px; }
.price-num { font-size: 1.75rem; font-weight: 700; }
.price-currency { color: var(--text-muted); margin-left: 4px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.plan-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.btn-launch-plan { margin-top: auto; }

/* Checkout ===== */
.checkout-token {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.checkout-token-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg);
}
.checkout-token h3 { margin: 0 0 4px; }
.checkout-summary {
  margin-bottom: 20px;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-row span { color: var(--text-muted); }
.checkout-total { font-size: 1.1rem; margin-top: 8px; }
.checkout-total strong { color: var(--accent); }
.checkout-included { margin-bottom: 24px; }
.checkout-included .label { color: var(--text-muted); margin: 0 0 8px; font-size: 0.9rem; }
.checkout-included ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }
.checkout-actions { display: flex; flex-direction: column; gap: 8px; }

/* Member Wallet modal */
.member-wallet-balance-wrap { margin-bottom: 16px; }
.member-wallet-hint { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 16px; }

/* Responsive ===== */
@media (max-width: 768px) {
  .fake-boost-ticker { bottom: 16px; left: 16px; width: 280px; }
  .ticker-bar-wrap { padding: 8px 0; }
  .ticker-item { padding: 2px 10px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .input-group { flex-direction: column; }
  .token-info { flex-direction: column; }
  .fake-boost-ticker { width: calc(100vw - 32px); left: 16px; }
  .hero { padding: 48px 0 72px; }
}
