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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0b;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #111115;
  border-bottom: 1px solid #1a1a1f;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.logo-icon {
  color: #4285f4;
  font-size: 20px;
}

.logo-text {
  color: #ffffff;
}

.logo-pro {
  color: #4285f4;
  font-size: 14px;
  background: rgba(66, 133, 244, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: #8b8b99;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  position: relative;
}

.search-input {
  background: #1a1a1f;
  border: 1px solid #2a2a2f;
  border-radius: 8px;
  padding: 8px 40px 8px 12px;
  color: #ffffff;
  font-size: 14px;
  width: 300px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #4285f4;
}

.search-input::placeholder {
  color: #8b8b99;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8b99;
  font-size: 12px;
}

.deposit-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.deposit-btn:hover {
  background: #3367d6;
}

/* Main Content */
.main {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.tab {
  background: none;
  border: none;
  color: #8b8b99;
  padding: 12px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #ffffff;
  border-bottom-color: #4285f4;
}

.tab:hover {
  color: #ffffff;
}

/* Controls */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.time-filters {
  display: flex;
  gap: 8px;
}

.time-filter {
  background: #1a1a1f;
  border: 1px solid #2a2a2f;
  color: #8b8b99;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.time-filter.active,
.time-filter:hover {
  background: #4285f4;
  color: white;
  border-color: #4285f4;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-btn {
  background: #1a1a1f;
  border: 1px solid #2a2a2f;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.filter-btn:hover {
  background: #2a2a2f;
}

.quick-buy {
  color: #8b8b99;
  font-size: 13px;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #8b8b99;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #2a2a2f;
  border-top: 3px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Table */
.table-container {
  background: #111115;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1a1f;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
}

.token-table th {
  background: #1a1a1f;
  color: #8b8b99;
  font-weight: 500;
  padding: 16px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-table td {
  padding: 16px;
  border-top: 1px solid #1a1a1f;
}

.token-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Token Info */
.token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.token-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.token-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.token-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b8b99;
  font-size: 12px;
}

.age-badge {
  background: rgba(66, 133, 244, 0.2);
  color: #4285f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}

/* Chart */
.mini-chart {
  width: 80px;
  height: 32px;
  background: linear-gradient(90deg, 
    rgba(34, 197, 94, 0.1) 0%, 
    rgba(34, 197, 94, 0.2) 50%, 
    rgba(34, 197, 94, 0.1) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #22c55e;
}

/* Price Changes */
.price-change {
  font-weight: 600;
}

.positive {
  color: #22c55e;
}

.negative {
  color: #ef4444;
}

/* Action Button */
.buy-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 13px;
}

.buy-btn:hover {
  background: #3367d6;
}

/* Token Stats */
.token-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stat-label {
  color: #8b8b99;
}

.stat-value {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
  .header-right .search-input {
    width: 200px;
  }
  
  .nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }
  
  .header-left {
    gap: 16px;
  }
  
  .nav {
    display: none;
  }
  
  .main {
    padding: 16px;
  }
  
  .controls {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .controls-right {
    justify-content: space-between;
  }
  
  .token-table th,
  .token-table td {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .token-info {
    gap: 8px;
  }
  
  .token-logo {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .token-logo img {
    width: 32px;
    height: 32px;
  }
}