* {
  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;
}

/* Stats Banner */
.stats-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 16px;
  margin: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-color);
}

/* 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: #fbbf24;
  border-color: #fbbf24;
  color: #000;
}

/* Content Area */
.content-area {
  padding: 0 16px 16px;
}

/* Featured Project */
.featured-project {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.9);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.project-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.project-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Progress */
.progress-section {
  margin-bottom: 20px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #10b981);
  border-radius: 4px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Project Stats */
.project-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pstat-value {
  font-size: 16px;
  font-weight: 600;
}

.pstat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.participate-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

/* 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: #fbbf24;
  text-decoration: none;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.project-icon.orange {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.3));
}

.project-icon.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3));
}

.project-icon.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
}

.project-icon.purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.3));
}

.project-info {
  flex: 1;
}

.project-card-name {
  font-size: 14px;
  font-weight: 600;
}

.project-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.project-meta {
  text-align: right;
}

.project-raise {
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
}

.project-status {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.project-status.live {
  color: #10b981;
}

.project-status.ended {
  color: var(--text-secondary);
}

/* Past Projects */
.past-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.past-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.past-info {
  flex: 1;
}

.past-name {
  font-size: 13px;
  font-weight: 600;
}

.past-raised {
  font-size: 11px;
  color: var(--text-secondary);
}

.past-roi {
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
}

/* 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: #fbbf24;
}