:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #0f0f0f;
  --bg-card: #0f0f0f;
  --accent-primary: #ff00ff;
  --accent-secondary: #9cff00;
  --text-primary: #ffffff;
  --text-secondary: #b2b4c6;
  --liquidity: #9cff00;
  --marketcap: #ff00ff;
  --price: #c21561;
  --ratio: #ffcc00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-inter), "Inter", sans-serif;
  font-weight: 500;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.logo-icon {
  font-size: 36px;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.last-updated {
  color: var(--text-secondary);
  font-size: 14px;
}

.last-updated span {
  color: var(--accent-secondary);
  font-weight: 600;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 0 10px rgba(156, 255, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent-primary),
    var(--accent-secondary)
  );
}

.card-lp {
  border: 2px solid var(--accent-secondary);
  box-shadow: 0 0 10px rgba(156, 255, 0, 0.5);
}

.card-mc {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.card-ratio {
  border: 2px solid var(--accent-secondary);
  box-shadow: 0 0 10px rgba(156, 255, 0, 0.5);
}

.card-price {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.card:hover {
  transform: translateY(-5px);
}

.card-lp:hover {
  box-shadow: 0 0 15px rgba(156, 255, 0, 0.7);
}

.card-mc:hover {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.card-ratio:hover {
  box-shadow: 0 0 15px rgba(156, 255, 0, 0.7);
}

.card-price:hover {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-lp .card-icon {
  background: rgba(156, 255, 0, 0.1);
  color: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(156, 255, 0, 0.3);
}

.card-mc .card-icon {
  background: rgba(255, 0, 255, 0.1);
  color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.card-ratio .card-icon {
  background: rgba(255, 204, 0, 0.1);
  color: var(--ratio);
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.card-price .card-icon {
  background: rgba(194, 21, 97, 0.1);
  color: var(--price);
  box-shadow: 0 0 8px rgba(194, 21, 97, 0.3);
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.card-lp .card-value {
  color: var(--liquidity);
  text-shadow: 0 0 5px rgba(156, 255, 0, 0.3);
}

.card-mc .card-value {
  color: var(--marketcap);
  text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.card-ratio .card-value {
  color: var(--ratio);
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.card-price .card-value {
  color: var(--price);
  text-shadow: 0 0 5px rgba(194, 21, 97, 0.3);
}

.card-footer {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.chart-container {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent-secondary),
    var(--accent-primary)
  );
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-secondary);
}

.chart-controls {
  display: flex;
  gap: 10px;
}

.data-controls,
.time-controls {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 10px;
}

.control-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.control-btn.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.control-btn:hover {
  background: rgba(255, 0, 255, 0.3);
}

canvas {
  width: 100% !important;
  height: 300px !important;
}

.range-controls {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 10px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  flex-direction: column;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 30px;
  padding-top: 20px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(156, 255, 0, 0.5),
    rgba(255, 0, 255, 0.5),
    rgba(255, 204, 0, 0.5),
    rgba(194, 21, 97, 0.5)
  );
  box-shadow: 0 0 10px rgba(156, 255, 0, 0.3), 0 0 10px rgba(255, 0, 255, 0.3),
    0 0 10px rgba(255, 204, 0, 0.3), 0 0 10px rgba(194, 21, 97, 0.3);
}

.data-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .chart-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .chart-controls {
    flex-direction: column;
    width: 100%;
  }

  .data-controls,
  .time-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
