:root{
  --brand: #2563eb; /* modern blue */
  --brand-2: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f6f7fb;
  --card: #ffffff;
  --border: rgba(15,23,42,.10);
  --shadow: 0 16px 40px rgba(15,23,42,.08);
  --radius: 18px;
}

html,body{ height:100%; }
.bg-soft{ background: var(--soft); color: var(--ink); }
a{ color: var(--brand); }
a:hover{ color: var(--brand-2); }

.brand-mark{
  width:32px; height:32px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(37,99,235,.10);
  color: var(--brand);
}
.card-soft{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-soft.flat{ box-shadow:none; }

.btn-brand{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-radius: 999px;
}
.btn-brand:hover{ background: var(--brand-2); border-color: var(--brand-2); }

.btn-soft{
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--brand);
  border-radius: 999px;
}
.btn-soft:hover{ background: rgba(37,99,235,.16); }

.form-control, .form-select, .accordion-button{
  border-radius: 14px;
}
.accordion-item{ border-radius: 14px; overflow:hidden; border:1px solid var(--border); }
.accordion-button{ background:#fff; }

.topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.nav-pill{
  display:flex; align-items:center; gap:.55rem;
  padding:.55rem .9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration:none;
  border:1px solid transparent;
}
.nav-pill:hover{ background: rgba(2,6,23,.04); }
.nav-pill.active{
  background: var(--brand);
  color:#fff;
}
.nav-pill .bi{ font-size: 1.05rem; }

.page-wrap{ max-width: 1200px; margin: 0 auto; }

.hero-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-sub{ color: var(--muted); }

.section-title{
  font-weight: 800;
  letter-spacing: -0.01em;
}

.qa-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding: 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.qa-left{ display:flex; gap: 14px; align-items:flex-start; }
.qa-ico{
  width:44px; height:44px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(2,6,23,.03);
}
.qa-ico.blue{ background: rgba(37,99,235,.10); color: var(--brand); }
.qa-ico.green{ background: rgba(16,185,129,.12); color: #059669; }
.qa-ico.orange{ background: rgba(245,158,11,.14); color: #d97706; }
.qa-ico.purple{ background: rgba(139,92,246,.14); color: #7c3aed; }

.kpi{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.kpi .kpi-label{ color: var(--muted); font-size: .9rem; }
.kpi .kpi-val{ font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

.badge-soft{
  background: rgba(2,6,23,.04);
  border: 1px solid var(--border);
  color: var(--ink);
}

/* Bottom nav (mobile) */
.bottom-nav{
  position: fixed;
  left:0; right:0; bottom:0;
  display:flex;
  justify-content:space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 1030;
  background:#fff;
  border-top:1px solid var(--border);
}
.bn-item{
  text-decoration:none;
  color: var(--muted);
  width: 20%;
  text-align:center;
  padding:6px 0;
  border-radius: 14px;
}
.bn-item.active{
  background: rgba(37,99,235,.10);
  color: var(--brand);
  font-weight: 800;
}
.bn-ico{ font-size: 18px; line-height: 18px; }
.bn-txt{ font-size: 12px; line-height: 14px; }

/* Hide bottom-nav on desktop */
@media (min-width: 992px){
  .bottom-nav{ display:none; }
}


/* Ensure content not hidden behind bottom nav */
@media (max-width: 991.98px){
  body{ padding-bottom: 74px; }
}


/* ===== Mobile Bottom Navigation ===== */
.bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
}
.bn-item{
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: 12px;
  padding-top: 6px;
}
.bn-item i{ display:block; font-size:20px; margin-bottom:2px; }
.bn-item span{ display:block; }
.bn-item.active{ color: var(--brand); font-weight: 800; }
.bn-item.active i{ transform: scale(1.12); }
body{ padding-bottom: 72px; }
@media (min-width: 992px){
  .bottom-nav{ display:none; }
  body{ padding-bottom: 0; }
}
