/* ═══════════════════════════════════════════
   XINNER — VOID-GLASS SMART MONEY PWA
   "हुड · Who's Winning on Hood"
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Noto+Serif+Devanagari:wght@200;300;400&display=swap');

/* ─── Design Tokens ─── */
:root {
  --surface: #0A0A0A;
  --surface-elevated: rgba(20, 20, 20, 0.7);
  --surface-glass: rgba(18, 18, 18, 0.65);
  --surface-glass-border: rgba(255, 255, 255, 0.05);
  --soft-white: #FFFFFF;
  --dim-white: rgba(255, 255, 255, 0.5);
  --ink-green: #34d399;
  --ink-green-glow: rgba(52, 211, 153, 0.4);
  --ink-green-soft: rgba(52, 211, 153, 0.12);
  --gain: rgba(52, 211, 153, 0.9);
  --gain-bg: rgba(52, 211, 153, 0.08);
  --loss: rgba(248, 113, 113, 0.9);
  --loss-bg: rgba(248, 113, 113, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sanskrit: 'Noto Serif Devanagari', serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0A0A0A;
  height: 100%; width: 100%;
}

body {
  font-family: var(--font);
  background-color: #0A0A0A;
  color: var(--soft-white);
  min-height: 100vh;
  /* Remove fixed/overflow-hidden to allow native Safari toolbar collapse */
  display: flex; flex-direction: column;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #0A0A0A 85%);
  z-index: 90;
}

::-webkit-scrollbar { width: 0; background: transparent; }
* { scrollbar-width: none; }

button {
  background: none; border: none; color: inherit;
  font: inherit; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* ═══════════════════════════════════════════
   FILM GRAIN OVERLAY
   ═══════════════════════════════════════════ */
.noise-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════
   AMBIENT GLOW — Green radials
   ═══════════════════════════════════════════ */
.ambient-glow {
  position: fixed; top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 214, 50, 0.03) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.ambient-glow-bottom {
  position: fixed; bottom: -200px; left: -100px;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0, 214, 50, 0.015) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ═══════════════════════════════════════════
   VOID DECORATION — Sanskrit ghost text
   ═══════════════════════════════════════════ */
.void-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 80px; font-weight: 200;
  color: rgba(0, 214, 50, 0.02);
  position: fixed; bottom: 120px; right: -10px;
  z-index: 0; pointer-events: none; user-select: none;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  position: relative; z-index: 50; flex-shrink: 0;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-glass-border);
}
.header-brand {
  font-family: var(--font-sanskrit);
  font-size: 24px; font-weight: 300;
  color: var(--ink-green);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px var(--ink-green-soft);
}
.header-title {
  font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}
.header-right {
  display: flex; align-items: center; gap: 6px;
}
.header-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-green);
  box-shadow: 0 0 8px var(--ink-green-glow);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--ink-green-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--ink-green-glow); }
}
.header-live-text {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-green);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   MICRO TRACKER
   ═══════════════════════════════════════════ */
.micro-tracker {
  padding: env(safe-area-inset-top, 0px) 20px 8px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--surface-glass-border);
}
.tracker-logo {
  width: 18px; height: 18px; border-radius: 5px; object-fit: contain; flex-shrink: 0;
}
.tracker-label {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim-white);
}
.tracker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-green);
  box-shadow: 0 0 6px 2px var(--ink-green-glow);
  animation: pulse-dot 2s infinite;
}
.tracker-dim {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.2);
}
.tracker-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 12px; color: rgba(255, 255, 255, 0.12);
  margin-left: auto;
}
.tracker-val {
  font-size: 10px; color: var(--ink-green);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.v-divider {
  width: 1px; height: 16px;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════
   TOP WALLETS GRID (Reference Design)
   ═══════════════════════════════════════════ */
.trader-rail {
  display: flex; overflow-x: auto;
  gap: 12px; padding: 12px 16px 16px;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.trader-rail::-webkit-scrollbar { display: none; }

.trader-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; transition: border-color 0.25s, transform 0.2s;
}
.trader-card:active { border-color: rgba(0, 214, 50, 0.15); transform: scale(0.97); }

/* -- Header: Avatar + Profit + Address -- */
.trader-header { display: flex; align-items: center; gap: 12px; }
.trader-avatar-wrap { position: relative; flex-shrink: 0; }
.trader-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: rgba(255, 255, 255, 0.03);
}
.trader-avatar img, .trader-avatar svg { width: 100%; height: 100%; object-fit: cover; }
.trader-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2.5px solid var(--ink-green);
  pointer-events: none;
}
.trader-ring.ring-yellow { border-color: #FACC15; }
.trader-ring.ring-pink { border-color: #F472B6; }
.trader-ring.ring-green { border-color: var(--ink-green); }
.trader-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 700; color: var(--ink-green);
}
.trader-info { flex: 1; min-width: 0; }
.trader-profit {
  font-size: 20px; font-weight: 600;
  color: #F2F2F2; letter-spacing: -0.01em;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.trader-wallet {
  font-size: 10px; color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em; margin-top: 3px;
  font-family: 'SF Mono', 'Menlo', monospace;
}

/* -- Mid Section: Stat Bar -- */
.trader-stat-section { display: flex; flex-direction: column; gap: 6px; }
.trader-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.trader-stat-label {
  font-size: 11px; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}
.trader-stat-pct {
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}
.trader-bar-track {
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.trader-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.trader-bar-fill.bar-green { background: var(--ink-green); box-shadow: 0 0 8px rgba(0,214,50,0.3); }
.trader-bar-fill.bar-yellow { background: #FACC15; box-shadow: 0 0 8px rgba(250,204,21,0.3); }
.trader-bar-fill.bar-pink { background: #F472B6; box-shadow: 0 0 8px rgba(244,114,182,0.3); }
.trader-bar-fill.bar-red { background: #F87171; box-shadow: 0 0 8px rgba(248,113,113,0.3); }
.trader-sub-values {
  display: flex; justify-content: space-between; margin-top: 2px;
}
.trader-sub-val {
  font-size: 11px; font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

/* -- Bottom: Tags as Dots/Pills -- */
.trader-tags-section { display: flex; flex-direction: column; gap: 5px; }
.trader-tags-label {
  font-size: 10px; color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}
.trader-tags-row {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.trader-tag-dot {
  padding: 2px 7px; border-radius: 20px;
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════
   FILTER TABS
   ═══════════════════════════════════════════ */
.filter-section {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 12px 20px 0px; flex-shrink: 0;
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  pointer-events: none; /* Let scroll events pass through container */
}
.filter-tabs {
  display: flex; gap: 8px; flex: 1; min-width: 0;
  overflow-x: auto; padding: 6px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: auto; /* Re-enable pointer events for the pill */
}
.search-capsule {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: auto; color: rgba(255,255,255,0.5);
  flex-shrink: 0; cursor: pointer; transition: all 0.2s;
}
.search-capsule:active { transform: scale(0.9); }
.filter-tab {
  padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap; transition: all 0.3s;
}
.filter-tab.active {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
  color: var(--ink-green);
}
.filter-tab:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════
   SECTION DIVIDER
   ═══════════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px; flex-shrink: 0;
  background: transparent;
}
.divider-glyph {
  font-family: var(--font-sanskrit);
  font-size: 11px; color: rgba(255,255,255,0.08);
}
.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
}
.divider-label {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════════════
   CONTENT SCROLL AREA
   ═══════════════════════════════════════════ */
.content-scroll {
  flex: 1; 
  padding-bottom: 140px;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════
   FEED CARD — Instagram-style post
   ═══════════════════════════════════════════ */
.feed-card {
  margin: 0 12px 14px; padding: 0;
  animation: fadeSlideUp 0.5s ease-out both;
}

/* Post header: avatar + wallet + action + time */
.feed-post-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
}
.feed-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
}
.feed-avatar svg { width: 100%; height: 100%; }
.feed-wallet-info { flex: 1; min-width: 0; }
.feed-wallet-name {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 6px;
}
.feed-wallet-name .verified {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-green); display: inline-flex;
  align-items: center; justify-content: center;
}
.feed-wallet-name .verified svg {
  width: 8px; height: 8px; stroke: #000; stroke-width: 3;
}
.feed-action-text {
  font-size: 11px; color: rgba(255,255,255,0.4);
  display: inline-flex; align-items: center;
}
.feed-action-text .action-verb { color: rgba(255,255,255,0.45); }
.feed-action-text .action-verb.buy { color: rgba(52, 211, 153, 0.75); }
.feed-action-text .action-verb.sell { color: rgba(248, 113, 113, 0.75); }
.feed-action-text .token-sym { color: var(--ink-green); font-weight: 500; }
.feed-time {
  font-size: 10px; color: rgba(255,255,255,0.2);
  flex-shrink: 0; font-variant-numeric: tabular-nums;
}

/* Post body: glassmorphism embedded card */
.feed-post-body {
  margin: 0 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.2s;
}
.feed-post-body:active {
  border-color: rgba(255,255,255,0.1);
}
.feed-post-body.golden-whale {
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.12), inset 0 1px 1px rgba(255, 215, 0, 0.2);
}
.feed-post-body.golden-whale:active {
  border-color: rgba(255, 215, 0, 0.5);
}

/* Token info row inside card */
.feed-token-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 8px;
}
.feed-token-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
}
.feed-token-icon svg { width: 100%; height: 100%; }
.feed-token-info { flex: 1; }
.feed-token-name {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.feed-token-mcap {
  font-size: 10px; color: rgba(255,255,255,0.3);
  margin-top: 1px; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 6px;
}
.feed-token-change {
  font-weight: 500;
}
.feed-token-change.up { color: var(--gain); }
.feed-token-change.down { color: var(--loss); }
.feed-view-btn {
  padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 214, 50, 0.2);
  background: rgba(0, 214, 50, 0.06);
  color: var(--ink-green);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; flex-shrink: 0;
  transition: all 0.2s;
}
.feed-view-btn:active {
  transform: scale(0.94);
  background: rgba(0, 214, 50, 0.12);
}

/* Trade stats row */
.feed-stats-row {
  display: flex; justify-content: space-between;
  padding: 8px 16px 10px; gap: 4px;
}
.feed-stat { display: flex; flex-direction: column; gap: 1px; }
.feed-stat-label {
  font-size: 10px; letter-spacing: 0.03em;
  color: #888888;
}
.feed-stat-value {
  font-size: 13px; font-weight: 500;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.feed-stat-value.gain { color: var(--gain); }
.feed-stat-value.loss { color: var(--loss); }

/* Mini chart area */
.feed-chart-wrap {
  width: 100%; height: 80px;
  padding: 0 4px; position: relative;
}
.feed-chart-wrap svg {
  width: 100%; height: 100%;
}

.tag-pill-minimal {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.04em; white-space: nowrap;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════
   LEADERBOARD TABLE
   ═══════════════════════════════════════════ */
.lb-table { padding: 0 12px; }
.lb-header {
  display: grid;
  grid-template-columns: 28px 1fr 70px 50px 50px;
  padding: 8px 16px; gap: 8px;
}
.lb-header span {
  font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.18);
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 1fr 70px 50px 50px;
  padding: 12px 16px; gap: 8px;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 6px; cursor: pointer;
  transition: border-color 0.2s;
  animation: fadeSlideUp 0.4s ease-out both;
}
.lb-row:active { border-color: rgba(255,255,255,0.1); }

.lb-rank {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-align: center;
}
.lb-rank.top3 { color: var(--ink-green); }

.lb-wallet {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.lb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
}
.lb-avatar svg { width: 100%; height: 100%; }
.lb-wallet-info { min-width: 0; }
.lb-wallet-addr {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  font-family: monospace; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-wallet-tags {
  display: flex; gap: 3px; margin-top: 2px;
  flex-wrap: nowrap; overflow: hidden;
}
.lb-mini-tag {
  font-size: 7px; padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.lb-profit {
  font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lb-profit.positive { color: var(--gain); }
.lb-profit.negative { color: var(--loss); }

.lb-score {
  font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ═══════════════════════════════════════════
   WALLET PROFILE MODAL (Bottom Sheet)
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: none; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.visible { display: flex !important; opacity: 1; }
.modal-sheet {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-radius: 32px 32px 0 0;
  width: 100%; max-width: 480px; max-height: 85vh;
  overflow-y: auto; padding: 20px 20px 40px;
  border: 1px solid rgba(255, 255, 255, 0.04); border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.visible .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 32px; height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  margin: 0 auto 20px;
}

/* Profile sections */
.profile-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(0,214,50,0.2);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
}
.profile-avatar svg { width: 100%; height: 100%; }
.profile-name {
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: monospace;
}
.profile-label {
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em; margin-top: 2px;
}

.profile-scores {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 20px;
}
.profile-score-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 14px; text-align: center;
}
.profile-score-value {
  font-size: 28px; font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.profile-score-label {
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

.profile-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: 20px;
}
.profile-stat-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 10px; text-align: center;
}
.profile-stat-val {
  font-size: 14px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.7);
}
.profile-stat-lbl {
  font-size: 8px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  margin-top: 3px;
}

.profile-tags-section {
  margin-bottom: 16px;
}
.profile-section-title {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   BOTTOM DOCK (Framer / Linear Style)
   ═══════════════════════════════════════════ */
.dock-nav {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(12, 12, 12, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 100px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

body.is-standalone .dock-nav {
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.dock-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  color: rgba(255, 255, 255, 0.35); /* Dark grey for unselected */
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}
.dock-btn:active { transform: scale(0.96); }
.dock-btn svg { width: 18px; height: 18px; opacity: 0.8; transition: opacity 0.4s; }
.dock-btn:hover { color: rgba(255, 255, 255, 0.6); }

.dock-btn.active {
  color: #ffffff; /* Bright white */
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.dock-btn.active svg { opacity: 1; }
.dock-btn.active::after { display: none; } /* Remove old green dot */

/* ═══════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-bar { height: 16px; width: 60%; margin-bottom: 10px; }
.skeleton-block { height: 160px; border-radius: var(--radius-lg); }
.feed-skeleton { padding: 0 12px; }
.skel-card { padding: 16px; margin-bottom: 14px; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeSlideUp 0.5s ease-out both; }
.delay-1 { animation-delay: 0.04s; }
.delay-2 { animation-delay: 0.08s; }
.delay-3 { animation-delay: 0.12s; }
.delay-4 { animation-delay: 0.16s; }
.delay-5 { animation-delay: 0.2s; }
.delay-6 { animation-delay: 0.24s; }
.delay-7 { animation-delay: 0.28s; }
.delay-8 { animation-delay: 0.32s; }

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.empty-glyph {
  font-family: var(--font-sanskrit);
  font-size: 48px; font-weight: 200;
  color: rgba(255,255,255,0.04);
}
.empty-text {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════════
   SORT TABS (Leaderboard)
   ═══════════════════════════════════════════ */
.sort-tabs {
  display: flex; gap: 6px; padding: 0 12px 10px;
  overflow-x: auto;
}
.sort-tab {
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  white-space: nowrap; transition: all 0.2s;
}
.sort-tab.active {
  border-color: rgba(0,214,50,0.2);
  color: var(--ink-green);
  background: rgba(0,214,50,0.04);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Already mobile-first
   ═══════════════════════════════════════════ */
@media (min-width: 600px) {
  .content-scroll { max-width: 500px; margin: 0 auto; width: 100%; }
  .filter-section { max-width: 500px; margin: 0 auto; width: 100%; }
  .section-divider { max-width: 500px; margin: 0 auto; width: 100%; }
}

/* ═══════════════════════════════════════════
   FRAMER LOADER (DOOM SCROLL)
   ═══════════════════════════════════════════ */
.framer-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 10px 20px 25px;
  opacity: 0.6;
}
.framer-bar {
  width: 140px; height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px; position: relative; overflow: hidden;
}
.framer-bar::after {
  content: ""; position: absolute; top: 0; left: -50%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--ink-green), transparent);
  animation: framer-scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 10px var(--ink-green);
}
@keyframes framer-scan {
  0% { left: -50%; }
  100% { left: 100%; }
}
.framer-text {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Magnetic Flash for New Appended Posts */
.new-post-flash {
  animation: 
    post-enter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    post-pulse 1.2s ease-in-out 3; /* pulses 3 times */
}
@keyframes post-enter {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes post-pulse {
  0%, 100% { border-color: rgba(255,255,255,0.05); box-shadow: 0 0 0 transparent; }
  50% { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 20px rgba(52, 211, 153, 0.15); }
}

/* ═══════════════════════════════════════════
   CURVED GUIDE WINDOW ("WHAT WE DO")
   ═══════════════════════════════════════════ */
.guide-capsule-btn {
  height: 36px; padding: 0 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(52, 211, 153, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(52, 211, 153, 0.1);
  color: var(--ink-green);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto; flex-shrink: 0;
}
.guide-capsule-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 22px rgba(52, 211, 153, 0.25);
  transform: translateY(-1px);
}
.guide-capsule-btn:active { transform: scale(0.95); }

.guide-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-overlay.visible {
  display: flex !important;
  opacity: 1;
}

.guide-window {
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border-radius: 28px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(52, 211, 153, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  width: 100%; max-width: 450px; max-height: 88vh;
  overflow-y: auto; overflow-x: hidden;
  padding: 26px 22px 22px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-overlay.visible .guide-window {
  transform: scale(1) translateY(0);
}

.guide-glow-top {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 160px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.guide-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  z-index: 10;
}
.guide-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg);
}

.guide-header {
  text-align: center;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.guide-logo-wrap {
  width: 60px; height: 60px; border-radius: 18px;
  padding: 6px; position: relative;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.guide-logo-img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 12px;
}
.guide-pill {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.guide-title {
  font-size: 22px; font-weight: 700; color: #FFFFFF;
  letter-spacing: -0.02em; line-height: 1.15;
}
.guide-subtitle {
  font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.guide-cards {
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1;
}
.guide-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  transition: all 0.2s ease;
}
.guide-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(52, 211, 153, 0.25);
  transform: translateY(-1px);
}
.guide-card-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guide-card-content {
  flex: 1; min-width: 0;
}
.guide-card-title {
  font-size: 13px; font-weight: 600; color: #FFFFFF;
  margin-bottom: 3px; display: flex; align-items: center; gap: 6px;
}
.guide-card-desc {
  font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, 0.55);
}
.guide-card-desc strong {
  color: rgba(255, 255, 255, 0.85); font-weight: 500;
}
.badge-tag-danger {
  display: inline-block; padding: 1px 6px; border-radius: 6px;
  background: rgba(248, 113, 113, 0.15); color: #F87171;
  font-size: 10px; font-weight: 500;
}
.badge-tag-success {
  display: inline-block; padding: 1px 6px; border-radius: 6px;
  background: rgba(52, 211, 153, 0.15); color: var(--ink-green);
  font-size: 10px; font-weight: 500;
}

.guide-footer {
  position: relative; z-index: 1; margin-top: 4px;
}
.guide-action-btn {
  width: 100%; height: 46px;
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: #0A0A0A; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 211, 153, 0.5);
  filter: brightness(1.05);
}
.guide-action-btn:active {
  transform: scale(0.97);
}
