/* ========================================================================
   SnooFi — Design System v2
   ======================================================================== */

/* --- Theme Tokens ---------------------------------------------------- */
:root, html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a09;
  --bg2: #111110;
  --card: #161614;
  --card-hover: #1c1c19;
  --line: #262622;
  --line-2: #333330;
  --text: #f5f5ef;
  --text-2: #ddddd6;
  --muted: #8a8a80;
  --lime: #d4f53d;
  --lime-2: #c4e52a;
  --lime-3: rgba(212, 245, 61, 0.12);
  --up: #6ee75b;
  --up-bg: rgba(110, 231, 91, 0.08);
  --down: #ff5c6c;
  --down-bg: rgba(255, 92, 108, 0.08);
  --ink: #0a0a09;
  --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.16);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.25), 0 24px 48px rgba(0,0,0,0.3);
  --appbar: rgba(10, 10, 9, 0.82);
  --glow: rgba(212, 245, 61, 0.07);
  --ident-off: rgba(255,255,255,0.06);
  --hover: rgba(255,255,255,0.04);
  --glass: rgba(22, 22, 20, 0.7);
  --glass-border: rgba(255,255,255,0.06);
  --orb1: rgba(212, 245, 61, 0.18);
  --orb2: rgba(110, 231, 91, 0.12);
  --orb3: rgba(100, 180, 255, 0.08);
  --gradient-card: linear-gradient(135deg, rgba(212,245,61,0.04), rgba(110,231,91,0.02));
  --skeleton: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f0;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-hover: #fafaf5;
  --line: #e6e6dc;
  --line-2: #d4d4c8;
  --text: #141412;
  --text-2: #333330;
  --muted: #6a6a60;
  --lime: #c6e024;
  --lime-2: #b4cc16;
  --lime-3: rgba(198, 224, 36, 0.12);
  --up: #0e8a2e;
  --up-bg: rgba(14, 138, 46, 0.06);
  --down: #d11640;
  --down-bg: rgba(209, 22, 64, 0.06);
  --ink: #111110;
  --shadow: 0 1px 3px rgba(20,20,12,0.05), 0 8px 24px rgba(20,20,12,0.07);
  --shadow-lg: 0 4px 12px rgba(20,20,12,0.08), 0 24px 48px rgba(20,20,12,0.12);
  --appbar: rgba(246, 246, 240, 0.82);
  --glow: rgba(198, 224, 36, 0.14);
  --ident-off: rgba(0,0,0,0.05);
  --hover: rgba(0,0,0,0.03);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0,0,0,0.06);
  --orb1: rgba(198, 224, 36, 0.22);
  --orb2: rgba(14, 138, 46, 0.10);
  --orb3: rgba(100, 160, 255, 0.10);
  --gradient-card: linear-gradient(135deg, rgba(198,224,36,0.06), rgba(14,138,46,0.03));
  --skeleton: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
}

/* --- Reset & Base ---------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background 0.35s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; }
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.05em;
}
h2 { font-size: clamp(22px, 3vw, 30px); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* --- Branding -------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 17px;
}
.mark, .mark-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 2px 12px var(--lime-3);
}
.btn.primary:hover {
  background: var(--lime-2);
  border-color: var(--lime-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--lime-3);
}
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); border-color: var(--line-2); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.icon-btn:hover { background: var(--hover); border-color: var(--line-2); transform: scale(1.05); }
.icon-btn svg { width: 16px; height: 16px; }
html[data-theme="dark"] .i-moon,
html[data-theme="light"] .i-sun { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* --- Landing --------------------------------------------------------- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 22px 56px;
  overflow: hidden;
}
.noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Animated gradient orbs */
.orb-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: orbFloat 16s ease-in-out infinite;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--orb1);
  top: -15%;
  right: -5%;
  animation-duration: 18s;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--orb2);
  bottom: 5%;
  left: -8%;
  animation-duration: 22s;
  animation-delay: -6s;
}
.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--orb3);
  top: 40%;
  right: 25%;
  animation-duration: 20s;
  animation-delay: -10s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.top, .hero, .features, .tick {
  position: relative;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero {
  padding: 80px 0 32px;
  max-width: 820px;
  margin: 0 auto;
}
.kicker {
  color: var(--ink);
  background: var(--lime);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  animation: fadeSlideUp 0.6s ease both;
}
.hero h1 {
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.1s;
}
.lede {
  color: var(--muted);
  max-width: 520px;
  margin: 20px 0 30px;
  font-size: 16px;
  line-height: 1.6;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.2s;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Ticker */
.tick-wrap {
  position: relative;
  max-width: 1120px;
  margin: 40px auto 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.45s;
}
.tick-mask {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.tick-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.tick-track.go-left { animation-direction: normal; }
.tick-track.go-right { animation-direction: reverse; }
.tick-mask:hover .tick-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s, transform 0.15s;
}
.tick-btn:hover { background: var(--hover); transform: scale(1.06); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s;
}
.pill:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pill img, .coin-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}
.pill b { color: var(--text); }
.up { color: var(--up); }
.down { color: var(--down); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  z-index: 1;
  position: relative;
}
.features article {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 24px 22px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  animation: fadeSlideUp 0.5s ease forwards;
}
.features article:nth-child(1) { animation-delay: 0.5s; }
.features article:nth-child(2) { animation-delay: 0.6s; }
.features article:nth-child(3) { animation-delay: 0.7s; }
.features article:nth-child(4) { animation-delay: 0.8s; }
.features article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lime-3);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.features h3 { margin-bottom: 8px; font-size: 18px; }
.features p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* --- Stats Bar ------------------------------------------------------- */
.stats-bar {
  max-width: 1120px;
  margin: 60px auto;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease both;
  animation-delay: 0.6s;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 48px;
  box-shadow: var(--shadow-lg);
}
.stat-counter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-counter-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.stat-counter-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-counter-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
}

/* --- How It Works ---------------------------------------------------- */
.how-section {
  max-width: 1120px;
  margin: 120px auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.how-kicker {
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.how-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 64px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.how-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.how-step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lime-3);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.how-step-num svg {
  width: 24px;
  height: 24px;
}
.how-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.how-step p {
  color: var(--muted);
  line-height: 1.6;
}

/* --- CTA Banner ------------------------------------------------------ */
.cta-banner {
  max-width: 1120px;
  margin: 120px auto;
  position: relative;
  z-index: 1;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.cta-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--lime-3), transparent 70%);
  pointer-events: none;
}
.cta-banner-content {
  position: relative;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--muted);
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 40px;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-banner-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.badge svg {
  color: var(--lime);
}

/* --- Footer ---------------------------------------------------------- */
.landing-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
.landing-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- App Shell ------------------------------------------------------- */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.appbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--appbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.pills { display: flex; gap: 4px; }
.nav-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-btn.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.nav-btn:hover:not(.on) { color: var(--text); background: var(--hover); }
.appbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.15s;
}
.chip-user:hover { border-color: var(--line-2); }
.chip-user strong { display: block; font-size: 12px; line-height: 1.2; }
.chip-user span { color: var(--muted); font-size: 11px; }

/* Identicon */
.identicon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ident-off);
  flex-shrink: 0;
}
.identicon.lg { width: 72px; height: 72px; border-radius: 20px; }
.identicon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  height: 100%;
}

/* --- Main content ---------------------------------------------------- */
.main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 64px; }
.main-bar { margin-bottom: 22px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page { animation: pageIn 0.35s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* --- Digest / Alpha -------------------------------------------------- */
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sent {
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s;
}
.sent.Bullish { color: var(--up); background: var(--up-bg); border-color: var(--up); }
.sent.Bearish { color: var(--down); background: var(--down-bg); border-color: var(--down); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.chip:hover:not(.on) { border-color: var(--line-2); color: var(--text); }
.chip.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.feed { display: grid; gap: 6px; }
.post, .coin, .card, .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.post {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.post:hover { background: var(--card-hover); border-color: var(--line-2); transform: translateX(2px); }
.post img.coin-logo { width: 30px; height: 30px; }
.post a { text-decoration: none; }
.post h4 { font-size: 15px; font-weight: 600; }
.bar {
  width: 88px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 6px;
}
.bar i { display: block; height: 100%; background: var(--up); border-radius: 99px; transition: width 0.6s ease; }
.bar.neg i { background: var(--down); }

/* --- Markets Table --------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.thead, .coin {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 1fr 40px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}
.thead {
  background: var(--bg2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.coin {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  transition: background 0.15s;
}
.coin:hover { background: var(--card-hover); }
.coin img { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.coin .name { font-weight: 600; display: inline; }
.coin .sym { color: var(--muted); font-size: 12px; text-transform: uppercase; margin-left: 6px; }
.star {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.15s, transform 0.2s;
}
.star:hover { transform: scale(1.2); }
.star.on { color: var(--lime); }

/* --- Tip Page -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-lg { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.card {
  padding: 22px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: 10px; }
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0;
}
input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-3); }
.tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s;
}
.tab:hover:not(.on) { border-color: var(--line-2); color: var(--text); }
.tab.on { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.hint, .muted { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.log { display: grid; gap: 8px; margin-top: 12px; }
.log.empty { color: var(--muted); }
.log div {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

/* --- Profile --------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.profile-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  grid-column: 1 / -1;
  background: var(--gradient-card);
}
.stat {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  opacity: 0;
  transition: opacity 0.2s;
}
.stat:hover::before { opacity: 1; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat strong { display: block; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.05em; margin-top: 6px; }
.span2 { grid-column: span 2; }

/* --- Toast ----------------------------------------------------------- */
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.out {
  animation: toastOut 0.25s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(30px) scale(0.96); }
}

/* --- Skeleton Loading ------------------------------------------------ */
.skeleton {
  background: var(--ident-off);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--skeleton);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-post {
  height: 64px;
  border-radius: 16px;
}
.skeleton-coin {
  height: 48px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.skeleton-text { height: 14px; width: 60%; border-radius: 6px; }
.skeleton-text.short { width: 35%; }
.skeleton-circle { width: 30px; height: 30px; border-radius: 50%; }

/* --- Bottom Nav (mobile) --------------------------------------------- */
.bottom-nav { display: none; }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .profile-grid, .split-lg { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: 1 / -1; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-steps > *:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .landing { padding: 16px 16px 40px; }
  .hero { padding: 48px 0 24px; }
  .features, .profile-grid, .split, .split-lg, .how-steps { grid-template-columns: 1fr; }
  .how-steps > *:last-child { grid-column: auto; }
  .stats-bar-inner { flex-direction: column; gap: 16px; padding: 24px; }
  .stat-counter-divider { width: 100%; height: 1px; }
  .how-section, .cta-banner { margin: 60px auto; }
  .cta-banner { border-radius: 24px; }
  .cta-banner-content { padding: 40px 24px; }
  .pills { display: none; }
  .chip-meta, #btn-logout { display: none; }
  .appbar { gap: 10px; padding: 10px 14px; }
  .main { width: calc(100% - 28px); padding: 20px 0 96px; }
  .thead { display: none; }
  .coin {
    grid-template-columns: 1fr auto auto;
  }
  .coin > div:nth-child(4) { display: none; }
  .post { grid-template-columns: 32px 1fr auto; gap: 10px; }
  .bar { width: 56px; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    padding: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .bottom-nav .nav-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 6px;
    font-size: 10px;
    font-weight: 600;
  }
  .bottom-nav .nav-btn .nav-icon {
    width: 20px;
    height: 20px;
    display: block;
  }
  .bottom-nav .nav-btn .nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bottom-nav .nav-btn.on {
    background: var(--lime-3);
    color: var(--text);
  }
  .profile-grid { gap: 8px; }
  .stat { padding: 14px 16px; }
  .orb-1 { width: 350px; height: 350px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { width: 200px; height: 200px; }
}

@media (max-width: 420px) {
  h1 { font-size: 38px; }
  .features article { padding: 18px 16px 22px; }
}
