:root {
  --primary: #0b3d91;
  --primary-2: #0a2f70;
  --accent: #19b39b;
  --surface: rgba(255, 255, 255, 0.88);
  --muted: #5b6473;
  --border: #dde3ed;
  --shadow-strong: 0 22px 70px rgba(8, 27, 64, 0.18);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.1);
  --radius-lg: 20px;
  --radius-sm: 12px;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 61, 145, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(25, 179, 155, 0.15), transparent 30%),
    linear-gradient(135deg, #f4f7fb 0%, #e9edf5 100%);
  color: #0f172a;
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
}

.navbar {
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.nav-glass {
  background: rgba(8, 22, 54, 0.78);
  border-radius: 0;
  padding: 14px 0;
  margin-top: 0;
  box-shadow: var(--shadow-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-nav {
  align-items: center;
  gap: 10px;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 1.15rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
}

.hero-section {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
}

.hero-section .gradient-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  z-index: 0;
}

.gradient-blob.blob-1 { top: -100px; left: -80px; background: rgba(11, 61, 145, 0.48); }
.gradient-blob.blob-2 { bottom: -110px; right: 0; background: rgba(22, 160, 133, 0.55); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  letter-spacing: 0.5px;
}

.hero-heading {
  position: relative;
  z-index: 1;
}

.hero-heading h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.hero-heading p {
  color: #4b5563;
  max-width: 40rem;
  font-size: 1.06rem;
}

.hero-actions .btn {
  padding: 12px 20px;
  border-radius: 14px;
}

.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(11, 61, 145, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(11, 61, 145, 0.12);
  pointer-events: none;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.feature-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-meta {
  color: #6b7280;
  font-size: 0.95rem;
}

.stat-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(11, 61, 145, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  min-width: 120px;
}

.stat-chip span {
  color: #6b7280;
  font-size: 0.85rem;
}

.stat-chip strong {
  font-size: 1.05rem;
}

.card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.9);
}

.card + .card {
  margin-top: 1rem;
}

.table {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.table th, .table td {
  border-color: var(--border);
}

.form-control {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
}

.form-control:focus {
  border-color: rgba(11, 61, 145, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(11, 61, 145, 0.12);
}

.btn {
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(11, 61, 145, 0.28);
  border-radius: 12px;
}

.btn-outline-light {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.section-heading {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: #6b7280;
}

.badge-soft {
  background: rgba(25, 179, 155, 0.14);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.12), rgba(22, 160, 133, 0.08)), #f4f7fb;
}

.auth-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 96px 16px 48px;
}

.auth-card {
  width: 100%;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header small {
  color: #6b7280;
}

.list-group-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

#hash-output {
  min-height: 50px;
  border-radius: 10px;
  background: #f8fafc;
}

/* Utility helpers for the lightweight bootstrap stub */
.position-relative { position: relative; }
.text-end { text-align: right; }
.text-success { color: #198754; }
.text-muted { color: #6b7280; }
.lead { font-size: 1.05rem; color: #4b5563; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.flex-wrap { flex-wrap: wrap; }
.align-items-start { align-items: flex-start; }
.align-items-lg-center { align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.g-3 { gap: 16px; }
.g-4 { gap: 24px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-4 { margin-bottom: 16px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.pt-3 { padding-top: 12px; }
.pb-3 { padding-bottom: 12px; }
.border-top { border-top: 1px solid #e5e7eb; }
.img-fluid { max-width: 100%; height: auto; }
.table.align-middle td, .table.align-middle th { vertical-align: middle; }
.bg-success-subtle { background: rgba(25, 135, 84, 0.12); color: #0f5132; }
.me-auto { margin-right: auto; }
.text-center { text-align: center; }
.shadow-lg { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); }
.p-4 { padding: 24px; }
.p-md-5 { padding: 30px; }
.h-100 { height: 100%; }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, 0.45); padding: 6px 10px; }
.navbar-toggler-icon {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 2px;
  background: #fff;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}
.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }
.col-lg-6 { padding: 0 12px; flex-basis: 50%; flex-grow: 1; }
@media (max-width: 768px) {
  .col-lg-6 { flex-basis: 100%; }
}
