/* ====================================================
   SolLotto — Main Stylesheet
   Mobile-first, 390px optimized
==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import './tokens.css';
@import './animations.css';
@import './glass.css';

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ─── Background ─── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Dot grid */
.bg-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Noise overlay */
.bg-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  background-size: 256px 256px;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(123, 94, 248, 0.5) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 229, 212, 0.35) 0%, transparent 70%);
  top: 40%;
  left: -80px;
  animation-delay: -4s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, transparent 70%);
  bottom: 20%;
  right: -40px;
  animation-delay: -8s;
}

/* ─── App Shell ─── */
#app {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px));
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--px);
  height: 58px;
  background: rgba(4, 5, 14, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--grad-violet);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(123, 94, 248, 0.4);
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--text-secondary);
}

.nav-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: scale(1.08);
}

.nav-btn.has-notif {
  position: relative;
}

.nav-btn.has-notif::after {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-violet);
  border: 1.5px solid var(--bg-base);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}

.wallet-connect-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-violet-dim);
  border: 1px solid rgba(123, 94, 248, 0.35);
  color: var(--accent-violet-bright);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.wallet-connect-btn:hover {
  background: rgba(123, 94, 248, 0.3);
  box-shadow: 0 0 16px rgba(123, 94, 248, 0.3);
}

.wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ─── Main Scroll Content ─── */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0 20px;
}

.scroll-content::-webkit-scrollbar { display: none; }

/* ─── Hero Zone ─── */
.hero-zone {
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

/* ─── Countdown Ring ─── */
.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.countdown-svg-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.countdown-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(123, 94, 248, 0.5));
}

.countdown-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.countdown-time {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Pulse ring around countdown */
.countdown-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(123, 94, 248, 0.3);
  animation: pulseRing 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ─── Pool Pill ─── */
.pool-pill {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s 0.1s var(--ease-out) both;
}

.pool-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pool-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pool-sol-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.pool-sol-value {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pool-usd {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.pool-slots {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.pool-slots-count {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pool-slots-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.pool-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pool-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.pool-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
  box-shadow: 0 0 8px rgba(0, 229, 212, 0.5);
  animation: barFill 1.2s var(--ease-out) both;
  transition: width 0.8s var(--ease-out);
}

.pool-bar-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-violet);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.pool-dot.empty {
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

/* ─── Section Header ─── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  margin-bottom: 10px;
}

.section-head .section-label {
  color: var(--text-muted);
}

.section-see-all {
  font-size: var(--text-xs);
  color: var(--accent-violet-bright);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* ─── Ticket Section (Obsidian Compact) ─── */
.ticket-section {
  padding: 0 var(--px);
  animation: fadeInUp 0.5s 0.2s var(--ease-out) both;
}

.ticket-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket-btn-compact {
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 72px;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  -webkit-tap-highlight-color: transparent;
}

.ticket-btn-compact .tag {
  align-self: flex-end; /* Top Right */
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Free tag accent */
.ticket-btn-compact .tag.free {
  color: #c4b5fd;
  background: rgba(123, 94, 248, 0.15);
  border-color: rgba(123, 94, 248, 0.3);
}

.ticket-btn-compact .val {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.ticket-btn-compact .unit {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-left: 2px;
}

.ticket-btn-compact:hover {
  transform: translateY(-2px);
  background: rgba(20, 20, 24, 0.8);
}

.ticket-btn-compact:active {
  transform: translateY(0) scale(0.96);
}

.ticket-btn-compact.selected {
  background: rgba(123, 94, 248, 0.1) !important;
  border-color: rgba(123, 94, 248, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(123, 94, 248, 0.3), 0 8px 16px rgba(0,0,0,0.6) !important;
}

.ticket-btn-compact.selected .tag {
  color: #c4b5fd;
  background: rgba(123, 94, 248, 0.2);
  border-color: rgba(123, 94, 248, 0.3);
}


/* ─── Buy Button ─── */
.buy-section {
  padding: 10px var(--px) 0;
}

.buy-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--grad-violet);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(123, 94, 248, 0.35);
}

.buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.buy-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 32px rgba(123, 94, 248, 0.5);
}

.buy-btn:active {
  transform: scale(0.98);
}

.buy-btn-sol {
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* ─── Participants Strip ─── */
.participants-section {
  margin-top: 20px;
  animation: fadeInUp 0.5s 0.3s var(--ease-out) both;
}

.participants-track {
  padding: 0 var(--px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.participants-track::-webkit-scrollbar { display: none; }

.participants-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px 0 8px;
}

.participant-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
}

.participant-bubble:hover {
  transform: translateY(-2px);
}

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

.participant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: rgba(123, 94, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.participant-avatar.is-me {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(123, 94, 248, 0.2), 0 0 12px rgba(123, 94, 248, 0.4);
}

.participant-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 1.5px solid var(--bg-base);
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.participant-addr {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.more-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ─── Winner Card ─── */
.winner-section {
  padding: 0 var(--px);
  margin-top: 20px;
  animation: fadeInUp 0.5s 0.35s var(--ease-out) both;
}

.winner-card {
  border-radius: var(--radius-xl);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.winner-card-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-winner);
  border-radius: inherit;
}

/* Sparkle particles */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}

.sparkle:nth-child(1) { background: var(--accent-cyan); top: 20%; left: 15%; animation: confetti1 3s ease-in-out infinite; animation-delay: 0s; }
.sparkle:nth-child(2) { background: var(--accent-violet); top: 30%; left: 75%; animation: confetti2 3.2s ease-in-out infinite; animation-delay: -0.8s; }
.sparkle:nth-child(3) { background: var(--accent-pink); top: 60%; left: 30%; animation: confetti3 2.8s ease-in-out infinite; animation-delay: -1.6s; }
.sparkle:nth-child(4) { background: var(--accent-purple); top: 70%; right: 20%; animation: confetti4 3.5s ease-in-out infinite; animation-delay: -0.4s; }
.sparkle:nth-child(5) { width: 3px; height: 3px; background: #fff; top: 40%; left: 55%; animation: confetti1 2.5s ease-in-out infinite; animation-delay: -1.2s; }
.sparkle:nth-child(6) { width: 5px; height: 5px; background: var(--accent-cyan); top: 80%; left: 60%; animation: confetti2 3.8s ease-in-out infinite; animation-delay: -2s; }

.winner-card-content {
  position: relative;
  z-index: 1;
}

.winner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.winner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.winner-tx {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.winner-tx:hover { color: var(--text-secondary); }

.winner-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.winner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 212, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 212, 0.1);
  box-shadow: 0 0 16px rgba(0, 229, 212, 0.25);
}

.winner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.winner-addr {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -0.02em;
}

.winner-amount {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.winner-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Stats Row ─── */
.stats-section {
  padding: 0 var(--px);
  margin-top: 14px;
  animation: fadeInUp 0.5s 0.4s var(--ease-out) both;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-sm);
}

.stat-pill {
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform var(--duration) var(--ease);
  cursor: default;
}

.stat-pill:hover {
  transform: translateY(-2px);
}

.stat-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.stat-value {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Draw Feed ─── */
.feed-section {
  padding: 0 var(--px);
  margin-top: 20px;
  animation: fadeInUp 0.5s 0.45s var(--ease-out) both;
}

.feed-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--duration) ease;
  cursor: pointer;
}

.feed-row:last-child {
  border-bottom: none;
}

.feed-row:hover {
  background: rgba(255,255,255,0.03);
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-hover);
}

.feed-info {
  flex: 1;
  min-width: 0;
}

.feed-addr {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-time {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.feed-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.feed-prize {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.feed-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 229, 212, 0.15);
  border: 1px solid rgba(0, 229, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Bottom Nav ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 60px;
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 4px;
  transition: all var(--duration) var(--ease);
  border-radius: var(--radius-md);
  position: relative;
}

.nav-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  color: var(--text-muted);
}

.nav-tab-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration) ease;
}

.nav-tab.active .nav-tab-icon {
  color: var(--accent-violet-bright);
  filter: drop-shadow(0 0 6px rgba(123, 94, 248, 0.6));
}

.nav-tab.active .nav-tab-label {
  color: var(--accent-violet-bright);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 24px;
  height: 2px;
  background: var(--accent-violet);
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(123, 94, 248, 0.7);
}

.nav-tab:hover:not(.active) .nav-tab-icon {
  color: var(--text-secondary);
  transform: translateY(-1px);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(123, 94, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Section spacing ─── */
.section-gap {
  height: 20px;
}

/* ─── Utility ─── */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.text-violet { color: var(--accent-violet-bright); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ─── View Toggling ─── */
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.view-content {
  display: none;
}
.view-content.active {
  display: flex;
  animation: fadeInView 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
