/* ═══════════════════════════════════════════
   LAUNCHPAD — VOID-GLASS SANSKRIT TRADING UI
   "शून्य से निर्मित · crafted from the void"
   ═══════════════════════════════════════════ */

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

/* ─── Design Tokens ─── */
:root {
  /* Surfaces */
  --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);

  /* Text / Ink */
  --soft-white: #F2F2F2;
  --dim-white: rgba(242, 242, 242, 0.5);

  /* Accent — used with extreme restraint */
  --ink-red: #E52E2E;
  --ink-red-glow: rgba(229, 46, 46, 0.4);
  --ink-red-soft: rgba(229, 46, 46, 0.12);

  /* Gain / Loss */
  --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);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Fonts */
  --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: #080808;
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--surface);
  color: var(--soft-white);
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  overscroll-behavior: none;
}

/* Hidden scrollbar globally */
::-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;
}

/* ═══════════════════════════════════════════
   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 — Subtle red radial in top-right
   ═══════════════════════════════════════════ */
.ambient-glow {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 46, 46, 0.035) 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(229, 46, 46, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   HEADER — Ultra minimal, mix-blend-mode
   ═══════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dim-white);
  position: relative;
  transition: color 0.2s;
}

.header-icon-btn:active {
  transform: scale(0.9);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.header-brand {
  font-family: var(--font-sanskrit);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-red);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px var(--ink-red-soft);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--ink-red);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--ink-red-glow);
}

/* ─── Micro Tracker (Left side context) ─── */
.micro-tracker {
  padding: 0 20px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  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-red);
  box-shadow: 0 0 6px 2px var(--ink-red-glow);
}

.tracker-dim {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.2);
}

.tracker-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 12px;
  color: rgba(242, 242, 242, 0.15);
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   TRADER CARDS (Horizontal Scroll)
   ═══════════════════════════════════════════ */
.trader-rail {
  display: flex;
  gap: 12px;
  padding: 8px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.trader-rail::-webkit-scrollbar {
  display: none;
}

.trader-card {
  flex: 0 0 calc(100vw - 80px);
  max-width: 280px;
  scroll-snap-align: center;
  background: rgba(16, 16, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trader-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trader-avatar-wrap {
  position: relative;
}

.trader-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.trader-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.trader-info {
  flex: 1;
}

.trader-profit {
  font-size: 18px;
  font-weight: 300;
  color: var(--soft-white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.trader-wallet {
  font-size: 11px;
  color: rgba(242, 242, 242, 0.3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.trader-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trader-metric-title {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.4);
  letter-spacing: 0.02em;
}

.trader-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tdot.buy { background: rgba(52, 211, 153, 0.8); }
.tdot.sell { background: rgba(248, 113, 113, 0.8); }
.tdot.empty { background: rgba(255, 255, 255, 0.1); }

.trader-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
}
.trader-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 10px;
}
.trader-bar-fill {
  height: 100%;
  background: var(--ink-red);
}
.trader-bar-label {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.3);
  font-variant-numeric: tabular-nums;
}
.trader-bar-value {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.8);
  font-variant-numeric: tabular-nums;
}

.trader-tokens {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trader-tokens-label {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.4);
  letter-spacing: 0.02em;
  margin-right: auto;
}

.trader-token-stack {
  display: flex;
  align-items: center;
}

.tt-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #111;
  background: #222;
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  position: relative;
  z-index: 1;
}
.tt-icon:nth-child(1) { margin-left: 0; z-index: 4; }
.tt-icon:nth-child(2) { z-index: 3; }
.tt-icon:nth-child(3) { z-index: 2; }
.tt-icon:nth-child(4) { z-index: 1; }

/* ═══════════════════════════════════════════
   FILTER TABS — Floating glass pills
   ═══════════════════════════════════════════ */
.filter-section {
  padding: 0 20px 12px;
  flex-shrink: 0;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.3);
  white-space: nowrap;
  transition: all 0.3s;
}

.filter-tab.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 242, 242, 0.85);
}

.filter-tab:active {
  transform: scale(0.95);
}

/* ═══════════════════════════════════════════
   TABLE HEADER
   ═══════════════════════════════════════════ */
.table-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  padding: 12px 20px 8px;
  flex-shrink: 0;
}

.table-header span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.2);
  cursor: pointer;
  transition: color 0.2s;
}

.table-header span:hover {
  color: rgba(242, 242, 242, 0.4);
}

.table-header .col-right {
  text-align: right;
}

/* ═══════════════════════════════════════════
   TOKEN LIST — Scrollable void container
   ═══════════════════════════════════════════ */
.token-list-container {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

/* ─── Token Card — Rich Glassmorphism Detail Card ─── */
.token-card {
  margin: 0 12px 8px;
  padding: 14px 16px 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);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.token-card:active {
  background: rgba(24, 24, 24, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Card Top Row */
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.card-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-identity {
  flex: 1;
  min-width: 0;
}

.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.card-symbol {
  font-size: 14px;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.9);
  letter-spacing: 0.02em;
}

.card-fullname {
  font-size: 11px;
  font-weight: 300;
  color: rgba(242, 242, 242, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.card-time {
  font-size: 9px;
  color: rgba(242, 242, 242, 0.2);
  letter-spacing: 0.06em;
}

.card-social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-social-icon {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: rgba(242, 242, 242, 0.18);
}

.card-social-icon svg {
  width: 11px;
  height: 11px;
  opacity: 0.35;
}

.card-creator {
  font-size: 9px;
  color: rgba(242, 242, 242, 0.14);
  letter-spacing: 0.06em;
}

/* Card Stats (top right) */
.card-stats-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.card-stats-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.card-stat-label {
  font-size: 9px;
  color: rgba(242, 242, 242, 0.18);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-stat-value {
  font-size: 11px;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.55);
  font-variant-numeric: tabular-nums;
}

.card-stat-value.accent {
  color: rgba(229, 46, 46, 0.65);
}

.card-tx-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tx-dots {
  display: flex;
  gap: 2px;
}

.tx-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.5);
}

/* Card Bottom Row */
.card-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ─── Mock Data State (Greyed out) ─── */
.is-mock {
  opacity: 0.45;
  filter: grayscale(80%) contrast(0.9);
  pointer-events: none; /* Disable clicks */
}

.is-mock .buy-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 242, 0.3);
}

.is-mock .bonding-fill {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.is-mock .tx-dot {
  background: rgba(255, 255, 255, 0.15);
}

.is-mock .metric-pill .metric-pill-value {
  color: rgba(242, 242, 242, 0.3) !important;
}

.is-mock .ath-pill {
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(242, 242, 242, 0.25) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.card-metric-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.metric-pill svg {
  width: 10px;
  height: 10px;
  opacity: 0.3;
}

.metric-pill-label {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.2);
}

.metric-pill-value {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.45);
  font-variant-numeric: tabular-nums;
}

/* Bonding Progress Bar */
.card-bonding {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.bonding-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  min-width: 30px;
}

.bonding-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ink-red), rgba(229, 46, 46, 0.5));
  border-radius: 2px;
  transition: width 0.6s ease;
  box-shadow: 0 0 4px rgba(229, 46, 46, 0.2);
}

.bonding-fill.graduated {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.7), rgba(52, 211, 153, 0.3));
  box-shadow: 0 0 4px rgba(52, 211, 153, 0.15);
}

.bonding-pct {
  font-size: 10px;
  color: rgba(242, 242, 242, 0.3);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  text-align: right;
}

/* ATH Pill */
.ath-pill {
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.ath-pill.near-ath {
  background: rgba(52, 211, 153, 0.06);
  color: rgba(52, 211, 153, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.08);
}

.ath-pill.far-ath {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(242, 242, 242, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Buy Button */
.buy-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.05);
  color: var(--gain);
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: var(--font);
}

.buy-btn:active {
  transform: scale(0.94);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

/* ═══════════════════════════════════════════
   ENTRY 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; }

/* ═══════════════════════════════════════════
   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-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.skeleton-text {
  height: 14px;
  width: 80px;
}

.skeleton-text-sm {
  height: 10px;
  width: 50px;
  margin-top: 4px;
}

.skeleton-badge {
  width: 72px;
  height: 30px;
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════
   BOTTOM DOCK — Floating glass bar
   ═══════════════════════════════════════════ */
.dock-nav {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 242, 242, 0.25);
  transition: all 0.2s;
  position: relative;
}

.dock-btn:active {
  transform: scale(0.9);
}

.dock-btn.active {
  color: var(--soft-white);
}

.dock-btn.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-red);
  box-shadow: 0 0 6px 2px var(--ink-red-glow);
}

.dock-btn svg {
  width: 20px;
  height: 20px;
}

/* Center FAB */
.dock-action {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  transition: all 0.2s;
  color: var(--soft-white);
}

.dock-action:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.dock-action svg {
  width: 20px;
  height: 20px;
}

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

/* Vertical divider accent */
.v-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════
   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(242, 242, 242, 0.06);
}

.empty-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.15);
}

/* ═══════════════════════════════════════════
   CREATE TOKEN MODAL — Bottom sheet glass
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.visible {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 24px 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 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;
}

.modal-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.4);
  margin-bottom: 24px;
}

/* Form Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: rgba(242, 242, 242, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--soft-white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.form-input:focus {
  border-color: rgba(229, 46, 46, 0.3);
  box-shadow: 0 0 20px rgba(229, 46, 46, 0.06);
}

.form-input::placeholder {
  color: rgba(242, 242, 242, 0.15);
}

/* Target Selector */
.target-options {
  display: flex;
  gap: 8px;
}

.target-option {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(242, 242, 242, 0.3);
  transition: all 0.2s;
}

.target-option.active {
  border-color: rgba(229, 46, 46, 0.3);
  background: var(--ink-red-soft);
  color: rgba(242, 242, 242, 0.8);
}

/* Launch Button */
.launch-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--soft-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 28px;
  transition: all 0.3s;
}

.launch-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.launch-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.06);
}

.launch-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   WALLET MODAL
   ═══════════════════════════════════════════ */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
}

.wallet-modal-overlay.visible {
  display: flex;
}

.wallet-modal-card {
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 88%;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: voidIn 0.3s ease-out;
}

@keyframes voidIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wallet-modal-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.4);
  margin-bottom: 6px;
}

.wallet-modal-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 14px;
  color: rgba(242, 242, 242, 0.12);
  margin-bottom: 24px;
}

.wallet-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: rgba(242, 242, 242, 0.6);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.wallet-option-btn:active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(0.98);
}

.wallet-option-icon {
  font-size: 20px;
}

.wallet-close-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.2);
  transition: color 0.2s;
}

.wallet-close-btn:hover {
  color: rgba(242, 242, 242, 0.4);
}

/* ═══════════════════════════════════════════
   CONNECT BUTTON (in header)
   ═══════════════════════════════════════════ */
.wallet-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.wallet-btn:active {
  transform: scale(0.95);
}

.wallet-btn.connected {
  border-color: rgba(229, 46, 46, 0.2);
  color: rgba(242, 242, 242, 0.7);
}

/* ═══════════════════════════════════════════
   SECTION SEPARATORS — Void line with Sanskrit
   ═══════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px;
  flex-shrink: 0;
}

.divider-glyph {
  font-family: var(--font-sanskrit);
  font-size: 11px;
  color: rgba(242, 242, 242, 0.08);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.04), transparent);
}

.divider-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.1);
}

/* ═══ Header Search ═══ */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 8px 16px;
  margin-left: 20px;
  gap: 10px;
  flex: 1;
  max-width: 300px;
  transition: all 0.3s ease;
}
.header-search:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.header-search svg {
  width: 16px;
  height: 16px;
  color: #737373;
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
}
.header-search input::placeholder {
  color: #525252;
}

/* ═══ Profile Modal ═══ */
.profile-content {
  width: 480px;
  background: #0F0F0F;
  border: 1px solid rgba(255,255,255,0.05);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.ps-label {
  font-size: 12px;
  color: #737373;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ps-value {
  font-size: 16px;
  font-weight: 500;
  font-family: 'Space Mono', monospace;
  color: #fff;
}

.rewards-section {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(234, 179, 8, 0.01) 100%);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.rewards-title {
  color: #eab308;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.rewards-amount {
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  font-family: 'Space Mono', monospace;
}

.pt-title {
  font-size: 14px;
  font-weight: 500;
  color: #A3A3A3;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .profile-content { width: 90%; }
}

/* ═══ Trade Modal ═══ */
.trade-content {
  width: 800px;
  max-width: 95vw;
  background: #0F0F0F;
  border: 1px solid rgba(255,255,255,0.05);
}

.trade-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.trade-chart {
  background: #000;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
}

.trade-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trade-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 4px;
}

.trade-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #737373;
  padding: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.trade-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.trade-input-group {
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
}

.trade-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 20px;
}

.trade-currency {
  color: #A3A3A3;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.trade-estimate {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #737373;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .trade-grid { grid-template-columns: 1fr; }
  .trade-chart { height: 250px; }
}
