:root {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --text: #12212f;
  --muted: #5b6b78;
  --brand: #0f4c81;
  --brand-2: #1f7a8c;
  --line: #d9e1e8;
}

html {
  font-size: 15px;
}

body {
  background: radial-gradient(circle at 10% 0%, #cfe0f5 0%, transparent 45%),
    radial-gradient(circle at 90% 5%, #d4f0ee 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.shell-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(7, 22, 34, 0.15);
}

.navbar-brand,
.nav-link,
.user-pill {
  color: #f7fbff !important;
}

.nav-link {
  opacity: 0.9;
}

.nav-link:hover {
  opacity: 1;
}

.user-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
}

.shell-body {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.shell-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  margin-top: 2rem;
}

.hero-panel {
  background: linear-gradient(120deg, #11395f, #2f7aa1);
  color: #f6fbff;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.hero-panel h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.hero-panel p {
  max-width: 56ch;
  margin: 0;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  align-items: center;
}

.panel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  min-height: 118px;
}

.metric-card .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.metric-card .value {
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-card .sub {
  color: var(--muted);
  margin-top: 0.3rem;
  font-size: 0.82rem;
}

.snippet {
  font-size: 0.82rem;
  background: #f0f4f8;
  padding: 0.65rem;
  border-radius: 0.6rem;
  margin-top: 0.75rem;
}

.auth-panel {
  max-width: 560px;
  margin: 1rem auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.3rem;
}

.table > :not(caption) > * > * {
  border-color: var(--line);
}

.trend-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.trend-item {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 0.7rem;
  align-items: center;
}

.trend-item .month,
.trend-item .amount {
  font-size: 0.85rem;
  color: var(--muted);
}

.trend-item .amount {
  text-align: right;
}

.bar-wrap {
  background: #eaf0f5;
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}

.bar {
  background: linear-gradient(90deg, #4f8ec5, #72b9bf);
  height: 12px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .trend-item {
    grid-template-columns: 75px 1fr 80px;
  }
}
