:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --primary: #1d4ed8;
  --primary-soft: #eef4ff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #eef4ff 0%, #f7f9fc 35%, #f5f7fb 100%);
  color: var(--text);
}

.min-vh-80 { min-height: 80vh; }
.app-navbar {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,0.9);
}

.glass-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.25);
}

.hero-card {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,248,255,0.98));
}

.stats-card {
  min-width: 180px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0;
}

.card, .sample-box, .summary-box {
  border-radius: 20px;
}

.table > :not(caption) > * > * {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  background: #fafbfc;
}

.form-control,
.form-select,
textarea {
  border-radius: 14px;
  border: 1px solid #d8dee7;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(29, 78, 216, 0.45);
}

.btn {
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: none;
}

.btn-dark { border: none; }

.sample-box {
  background: #f8fafc;
  border: 1px dashed #d7dfeb;
  padding: 16px;
}

.summary-box {
  background: #0f172a;
  color: #fff;
  padding: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: rgba(255,255,255,0.86);
}

.summary-row.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.1rem;
}

.sticky-card {
  position: sticky;
  top: 90px;
}

.flash-stack {
  max-width: 820px;
}

.demo-hint code {
  color: #1d4ed8;
}

@media (max-width: 1199px) {
  .sticky-card { position: static; }
}
