/* ═══════════════════════════════════════════════════════════
   Sidebar Component
   ═══════════════════════════════════════════════════════════ */

.sidebar {
  grid-area: sidebar;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-soft);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 100vh;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--base-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 14px;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.logo-pro {
  font-size: 9px;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: white;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.sidebar-section {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 12px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--solana-glow), transparent);
  color: var(--text-main);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--purple);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-badge {
  margin-left: auto;
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.chain-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
}
.chain-icon.eth  { background: var(--eth-blue); }
.chain-icon.base { background: var(--base-blue); }
.chain-icon.bnb  { background: var(--gold); color: #000; }
.chain-icon.arb  { background: #28a0f0; }
.chain-icon.poly { background: #8247e5; }
.chain-icon.ton  { background: #0098ea; }
.chain-icon.sui  { background: #6fbcf0; color: #000; }

/* Upgrade card at bottom */
.upgrade-card {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--solana-glow), rgba(0, 82, 255, 0.08));
  border: 1px solid var(--purple);
  border-radius: var(--radius-md);
}

.upgrade-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.upgrade-features {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0;
}

.upgrade-features li {
  padding: 2px 0;
}

.upgrade-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, var(--purple), var(--base-blue));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.upgrade-btn:hover {
  opacity: 0.9;
}
