html,
body {
  min-height: 100%;
}

body {
  background:
    url("stock-pattern.svg") repeat,
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 30%),
    linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
  background-size: 420px 420px, auto, auto;
  background-attachment: fixed, fixed, fixed;
}

.app-navbar {
  background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
}

.navbar-brand {
  letter-spacing: 0.2px;
}

.card {
  border: 0;
  border-radius: 1rem;
}

.dashboard-stat {
  overflow: hidden;
}

.auth-shell {
  max-width: 1120px;
}

.landing-shell {
  max-width: 1240px;
}

.landing-hero,
.landing-panel {
  overflow: hidden;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-hero {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(238, 243, 248, 0.9));
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.7;
}

.landing-hero::before {
  top: -240px;
  left: -240px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.26), transparent 60%);
}

.landing-hero::after {
  bottom: -280px;
  right: -300px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.22), transparent 58%);
}

.landing-title {
  max-width: 18ch;
  letter-spacing: -0.02em;
}

.landing-lead {
  max-width: 64ch;
}

.landing-badges .badge {
  font-weight: 650;
}

.landing-metrics,
.landing-feature-list {
  display: grid;
  gap: 1rem;
}

.landing-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.landing-metric,
.landing-callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.landing-metric {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.landing-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  flex: 0 0 auto;
}

.landing-metric-title {
  font-weight: 800;
  line-height: 1.15;
}

.landing-metric-text {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  line-height: 1.35;
}

.landing-feature strong,
.landing-callout strong {
  display: block;
}

.landing-feature span,
.landing-callout span {
  color: var(--bs-secondary-color);
}

.landing-feature {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-feature:last-child {
  border-bottom: 0;
}

.landing-feature .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
}

.auth-card {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-feature-list {
  display: grid;
  gap: 1rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.08);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-size: 1.25rem;
}

.table td,
.table th {
  white-space: nowrap;
}

.btn .bi,
.navbar-brand .bi,
.card-header .bi,
.badge .bi,
h1 .bi {
  line-height: 1;
}

[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] body {
  background:
    url("stock-pattern.svg") repeat,
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  background-size: 420px 420px, auto, auto;
  background-attachment: fixed, fixed, fixed;
}

[data-bs-theme="dark"] .card {
  background-color: rgba(17, 24, 39, 0.92);
}

[data-bs-theme="dark"] .landing-hero,
[data-bs-theme="dark"] .landing-panel,
[data-bs-theme="dark"] .auth-card {
  background-color: rgba(17, 24, 39, 0.92);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] .landing-metric,
[data-bs-theme="dark"] .landing-callout,
[data-bs-theme="dark"] .auth-feature {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.18);
}

[data-bs-theme="dark"] .landing-feature {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .landing-feature .bi {
  background: rgba(96, 165, 250, 0.16);
}

[data-bs-theme="dark"] .landing-metric-icon {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

[data-bs-theme="dark"] .stat-icon {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

@media (max-width: 576px) {
  .landing-title {
    max-width: none;
  }
}
