:root {
  --text-color: #fff;
  --accent-up: #4eea7c;
  --accent-down: #ff6b6b;
  --card-bg: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --text-color: #222;
  --card-bg: rgba(255, 255, 255, 0.6);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1f1f2e, #2b2b3c);
  color: var(--text-color);
  padding: 20px;
}

.page-container {
  max-width: 960px;
  margin: auto;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.commodity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.commodity-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.commodity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.commodity-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  padding: 6px;
}

.commodity-price {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
}

.commodity-change {
  font-size: 1rem;
  font-weight: 500;
}

.commodity-change.up {
  color: var(--accent-up);
}

.commodity-change.down {
  color: var(--accent-down);
}
