* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f0f1e;
  color: #fff;
  padding: 2rem;
  min-height: 100vh;
}

.wallet-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #1a1a2e;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0, 212, 170, 0.3));
}

.brand-text h1 {
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(135deg, #00d4aa, #00f5c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.tagline {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}

.wallet-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.wallet-address {
  color: #888;
  font-family: monospace;
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
}

.wallet-balance {
  margin: 2rem 0;
  text-align: center;
}

.wallet-balance .label {
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wallet-balance h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
  font-weight: 700;
}

.change {
  font-size: 1.1rem;
  font-weight: 500;
}

.positive {
  color: #00d4aa;
}

.chart-container {
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

#walletChart {
  display: block;
  width: 100%;
}

.ai-projection {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 212, 170, 0.05);
  border-left: 3px solid #00d4aa;
  border-radius: 8px;
}

.ai-badge {
  font-weight: 600;
  margin-bottom: 1rem;
}

.ai-badge span {
  background: rgba(0, 212, 170, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.projection-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.projection-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: transform 0.2s;
}

.projection-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.projection-item span {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projection-item strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.projection-item small {
  color: #00d4aa;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .wallet-container {
    padding: 1rem;
  }

  .logo-header {
    flex-direction: column;
    text-align: center;
    padding-bottom: 1.5rem;
  }

  .site-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text h1 {
    font-size: 1.5rem;
  }

  .wallet-balance h1 {
    font-size: 2rem;
  }

  .projection-content {
    grid-template-columns: 1fr;
  }

  .demo-popup {
    padding: 2rem 1.5rem;
  }

  .demo-popup h2 {
    font-size: 1.5rem;
  }
}

.demo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.demo-overlay.hidden {
  display: none;
}

.demo-popup {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 170, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-popup .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.demo-popup .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.demo-popup h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00d4aa;
}

.demo-popup p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.demo-popup .highlight {
  background: rgba(0, 212, 170, 0.1);
  border-left: 3px solid #00d4aa;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.demo-popup .highlight strong {
  color: #00d4aa;
  display: block;
  margin-bottom: 0.5rem;
}

.demo-popup .cta-btn {
  background: #00d4aa;
  color: #0f0f1e;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  margin-top: 1rem;
}

.demo-popup .cta-btn:hover {
  background: #00f5c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}
