* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 80px;
}

.header {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.header-action {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Wallet Status */
.wallet-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
}

.wallet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wallet-label {
  font-size: 15px;
  font-weight: 600;
}

.wallet-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.connect-btn {
  padding: 10px 20px;
  background: #a855f7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Search */
.search-container {
  padding: 0 16px 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-box svg {
  color: var(--text-secondary);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-tab.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
}

/* Content Area */
.content-area {
  padding: 0 16px 16px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-card:hover {
  transform: translateY(-2px);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon.bridge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.action-icon.swap {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.action-icon.stake {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.action-icon.lending {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.action-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Section */
.section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
}

.see-all {
  font-size: 13px;
  color: #a855f7;
  text-decoration: none;
}

/* DApps Grid */
.dapps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dapp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.dapp-card:hover {
  transform: translateY(-2px);
}

.dapp-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dapp-name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.dapp-category {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Protocols List */
.protocols-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protocol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
}

.protocol-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.protocol-info {
  flex: 1;
}

.protocol-name {
  font-size: 14px;
  font-weight: 600;
}

.protocol-tvl {
  font-size: 12px;
  color: var(--text-secondary);
}

.protocol-apy {
  text-align: right;
}

.apy-value {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
}

.apy-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon.swap-act {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.activity-icon.stake-act {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.activity-icon.bridge-act {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 13px;
  font-weight: 600;
}

.activity-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.activity-amount {
  text-align: right;
}

.activity-value {
  font-size: 13px;
  font-weight: 600;
}

.activity-time {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 11px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: #a855f7;
}