/* ============ Base ============ */
:root{
  --bg: #f6f6f6;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --shadow: 0 10px 20px rgba(0,0,0,.06);
  --goldbar: #caa15d;
  --pill: #e9e9e9;

  --teal: #0aa58b;
  --blue: #0b5bd3;
  --grayBox: #d9d9d9;
  --red: #d11033;
  --purple: #6a5ad7;
  --silver: #b8bcc3;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ============ Top Bar ============ */
.topbar{
  width:100%;
  background: var(--goldbar);
  padding: 22px 16px;
  text-align:center;
  position: sticky;
  top:0;
  z-index:2;
}
.topbar h1{
  margin:0;
  font-size: clamp(24px, 3.5vw, 38px);
  letter-spacing:.06em;
  font-weight: 800;
}

/* ============ Container ============ */
.container{
  max-width: 1200px;
  margin: 28px auto 56px;
  padding: 0 16px;
}

/* ============ Date Pill ============ */
.date-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e5e7eb;
  color:#111827;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight:600;
  box-shadow: var(--shadow);
  margin: 8px 0 28px 0;
}

/* ============ Grid ============ */
.rate-grid{
  display:grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 18px;
  align-items:stretch;
}

.row-labels{
  display:flex;
  flex-direction:column;
  gap: 18px;
  padding: 8px 0;
}
.row-labels .label{
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.08em;
  padding-left: 8px;
}

/* ============ Card ============ */
.card{
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.card-title{
  text-align:center;
  margin:2px 0 6px;
  font-size: 18px;
  font-weight:700;
  letter-spacing:.03em;
}

/* Bars */
.bar{
  height: 56px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
  font-weight: 800;
}
.bar .value{ transform: translateY(1px); }

.bar.today{ background: var(--teal); color:white; }
.bar.eight{ background: var(--blue); color:white; }
.bar.yesterday{
  background: var(--grayBox);
  color:#334155;
}
.bar.change{ background: var(--red); color:white; }
.bar.note{
  background: var(--purple);
  color:white;
  font-size: 14px;
  font-weight: 600;
}

/* ============ Bottom Stats ============ */
.bottom-stats{
  display:flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:center;
  margin-top: 28px;
}
.stat{
  display:flex;
  align-items:center;
  gap: 10px;
}
.stat-label{
  min-width: 140px;
  border-radius: 14px;
  padding: 16px 24px;
  text-align:center;
  font-weight: 700;
  letter-spacing:.05em;
  color:#1f2937;
  box-shadow: var(--shadow);
}
.stat-label.gold{ background: #d7b377; }
.stat-label.silver{ background: #d1d5db; }

.stat-value{
  min-width: 140px;
  border-radius: 14px;
  padding: 16px 24px;
  text-align:center;
  font-weight: 900;
  font-size: 22px;
  background: #e5decf;
  box-shadow: var(--shadow);
}

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .rate-grid{
    grid-template-columns: 180px 1fr 1fr;
  }
}

@media (max-width: 760px){
  .rate-grid{
    grid-template-columns: 1fr;
  }
  .row-labels{ display:none; }
}
