:root {
  --bg: #05070f;
  --text: #ffffff;
  --muted: #9aa4d6;
  --accent: #4d9eff;
  --yellow1: #ffd84d;
  --yellow2: #f5c400;

  --cheap: #3ddc97;
  --very-cheap: #00ffa6;
  --expensive: #ff6b6b;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0a0f2a, var(--bg));
  color: var(--text);
}

/* ================= TOP BAR ================= */

.top-bar {
  background: linear-gradient(180deg, #0c1026, #090c1d);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.top-bar a {
  color: var(--yellow1);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

/* ================= HERO ================= */

.hero {
  padding: 70px 20px 45px;
  text-align: center;
}

.hero-inner {
  max-width: 950px;
  margin: auto;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(77,158,255,0.12);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ================= REGION PILLS (RESTORED SIZE) ================= */

.region-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  border: none;
  cursor: pointer;

  padding: 9px 15px;
  border-radius: 999px;

  background: linear-gradient(180deg, #141a3a, #0d1126);
  color: var(--muted);

  font-size: 13px;
  font-weight: 500;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 6px 14px rgba(0,0,0,0.35);

  transition: all .15s ease;
}

.pill:hover {
  color: var(--text);
}

.pill.active {
  background: linear-gradient(180deg, var(--yellow1), var(--yellow2));
  color: #1b1b1b;
  font-weight: 600;
}

/* ================= CONTENT ================= */

.container {
  max-width: 1150px;
  margin: auto;
  padding: 20px;
}

.rates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 14px;
}

/* ================= RATE CARDS (SMALLER / DENSER) ================= */

.rate-card {
  background: linear-gradient(180deg, #141a3a, #0d1126);
  border-radius: 12px;
  padding: 12px;
  text-align: center;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 4px 16px rgba(0,0,0,0.35);

  transition: transform .12s ease;
}

.rate-card:hover {
  transform: translateY(-1px);
}

.time {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.price {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.unit {
  font-size: 10px;
  color: var(--muted);
}

/* ===== RATE STATES ===== */

.rate-card.very-cheap .price {
  color: var(--very-cheap);
}

.rate-card.cheap .price {
  color: var(--cheap);
}

.rate-card.expensive .price {
  color: var(--expensive);
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
