/* ============================================================
   IBIDAKWIYE — Design System
   Premium institutional UI · Responsive · Accessible
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --ibk-navy:        #0a1f3d;
  --ibk-navy-2:      #0e2a52;
  --ibk-navy-3:      #123e66;
  --ibk-blue:        #1565c0;
  --ibk-blue-2:      #1e88e5;
  --ibk-blue-soft:   #e8f1fb;
  --ibk-green:       #14a05a;
  --ibk-green-2:     #22c55e;
  --ibk-green-soft:  #e7f8ef;
  --ibk-amber:       #f59e0b;
  --ibk-amber-soft:  #fff6e2;
  --ibk-red:         #ef4444;
  --ibk-red-soft:    #fdecec;

  /* Neutrals */
  --ibk-ink:         #0f172a;
  --ibk-slate:       #475569;
  --ibk-slate-2:     #64748b;
  --ibk-line:        #e2e8f0;
  --ibk-line-2:      #eef2f7;
  --ibk-bg:          #f6f8fc;
  --ibk-bg-2:        #ffffff;

  /* Radii / shadows / motion */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 2px 8px rgba(15,23,42,.06);
  --sh-md: 0 8px 24px rgba(15,23,42,.08);
  --sh-lg: 0 20px 48px rgba(15,23,42,.12);
  --sh-glow-blue: 0 12px 40px rgba(21,101,192,.22);
  --sh-glow-green: 0 12px 40px rgba(20,160,90,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .28s;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, #eaf2ff 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 20%, #e9f7ef 0%, transparent 55%),
    var(--ibk-bg);
  color: var(--ibk-ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ibk-blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--ibk-blue-2); }

h1,h2,h3,h4,h5,h6 {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ibk-ink);
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { color: var(--ibk-slate); }

::selection { background: rgba(21,101,192,.18); color: var(--ibk-navy); }

/* Focus ring */
:focus-visible {
  outline: 3px solid rgba(21,101,192,.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ibk-blue), var(--ibk-navy));
  border-radius: 999px;
  border: 2px solid var(--ibk-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--ibk-navy); }

/* ---------- 3. TOP DISCLAIMER BAR ---------- */
.top-disclaimer {
  background: linear-gradient(90deg, #fff8e1 0%, #fff5d6 100%);
  color: #6d4c00;
  font-size: .78rem;
  font-weight: 500;
  border-bottom: 1px solid #ffe082;
  padding: .45rem 0;
}
.top-disclaimer i { color: #b8860b; }

/* ---------- 4. NAVBAR ---------- */
.ibk-navbar {
  background: linear-gradient(135deg, var(--ibk-navy) 0%, var(--ibk-navy-2) 60%, var(--ibk-navy-3) 100%);
  box-shadow: 0 2px 20px rgba(10,31,61,.18);
  padding: .55rem 0;
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  backdrop-filter: saturate(160%) blur(8px);
}
.ibk-navbar.scrolled {
  padding: .25rem 0;
  box-shadow: 0 6px 24px rgba(10,31,61,.25);
}

.ibk-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}
.ibk-navbar .navbar-brand i {
  background: linear-gradient(135deg, var(--ibk-green-2), var(--ibk-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(34,197,94,.4));
}

.ibk-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: .94rem;
  padding: .5rem .9rem !important;
  border-radius: var(--r-xs);
  position: relative;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ibk-navbar .nav-link:hover,
.ibk-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}
.ibk-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--ibk-green-2);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease);
}
.ibk-navbar .nav-link:hover::after { width: 40%; }

.ibk-navbar .btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: .35rem 1rem;
  transition: all var(--dur) var(--ease);
}
.ibk-navbar .btn-outline-light:hover {
  background: #fff;
  color: var(--ibk-navy);
  border-color: #fff;
  transform: translateY(-1px);
}
.ibk-navbar .btn-light {
  background: #fff;
  border: 1.5px solid #fff;
  color: var(--ibk-navy) !important;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: .4rem 1.15rem;
  box-shadow: 0 6px 18px rgba(255,255,255,.2);
  transition: all var(--dur) var(--ease);
}
.ibk-navbar .btn-light:hover {
  background: var(--ibk-green-2);
  border-color: var(--ibk-green-2);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--sh-glow-green);
}

.ibk-navbar .dropdown-menu {
  border: 1px solid var(--ibk-line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  padding: .35rem;
  font-size: .9rem;
  animation: fadeSlide .2s var(--ease);
}
.ibk-navbar .dropdown-item {
  border-radius: var(--r-xs);
  padding: .5rem .75rem;
  font-weight: 500;
  color: var(--ibk-ink);
}
.ibk-navbar .dropdown-item:hover {
  background: var(--ibk-blue-soft);
  color: var(--ibk-blue);
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34,197,94,.28), transparent 55%),
    radial-gradient(1000px 700px at 10% 110%, rgba(30,136,229,.35), transparent 55%),
    linear-gradient(135deg, var(--ibk-navy) 0%, var(--ibk-navy-3) 55%, var(--ibk-blue) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34,197,94,.35), transparent 65%);
  filter: blur(40px);
  animation: floaty 12s ease-in-out infinite;
  z-index: -1;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 560px;
}
.hero .badge.bg-success {
  background: rgba(34,197,94,.18) !important;
  color: #d1fae5 !important;
  border: 1px solid rgba(34,197,94,.35);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: .78rem;
  padding: .45rem .9rem;
}

/* Hero stat card */
.hero .bg-white.rounded-4.shadow-lg {
  border-radius: var(--r-xl) !important;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.28) !important;
  position: relative;
  overflow: hidden;
}
.hero .bg-white.rounded-4.shadow-lg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ibk-green), var(--ibk-blue), var(--ibk-green));
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  border-radius: var(--r-sm);
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--dur) var(--ease);
  padding: .65rem 1.3rem;
}
.btn:active { transform: scale(.98); }

.btn-ibk-primary {
  background: linear-gradient(135deg, var(--ibk-green-2), var(--ibk-green));
  color: #fff;
  border: none;
  padding: .8rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(20,160,90,.35);
  position: relative;
  overflow: hidden;
}
.btn-ibk-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
}
.btn-ibk-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20,160,90,.45);
}
.btn-ibk-primary:hover::after { transform: translateX(100%); }

.btn-ibk-outline {
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  background: rgba(255,255,255,.06);
  padding: .8rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.btn-ibk-outline:hover {
  background: #fff;
  color: var(--ibk-navy);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,255,255,.18);
}

.btn-outline-primary {
  border: 1.5px solid var(--ibk-blue);
  color: var(--ibk-blue);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--ibk-blue);
  color: #fff;
  box-shadow: var(--sh-glow-blue);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ibk-blue-2), var(--ibk-blue));
  border: none;
  box-shadow: 0 6px 18px rgba(21,101,192,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ibk-blue), var(--ibk-navy-3));
  box-shadow: var(--sh-glow-blue);
  transform: translateY(-1px);
}

/* ---------- 7. CARDS ---------- */
.card {
  border: 1px solid var(--ibk-line-2);
  border-radius: var(--r-md);
  background: var(--ibk-bg-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { border-color: #d7e2f0; }

.card-stat {
  border: 1px solid var(--ibk-line-2);
  border-radius: var(--r-md);
  background: var(--ibk-bg-2);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #dbe6f5;
}
.card-stat .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: transform var(--dur) var(--ease);
}
.card-stat:hover .icon { transform: scale(1.08) rotate(-4deg); }

/* Category cards */
.cat-card {
  border: 1px solid var(--ibk-line-2);
  border-radius: var(--r-md);
  background: var(--ibk-bg-2);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ibk-blue), var(--ibk-green));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card i {
  font-size: 1.8rem;
  color: var(--ibk-blue);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.cat-card:hover i {
  transform: scale(1.15) rotate(-6deg);
  color: var(--ibk-green);
}

/* ---------- 8. FORMS ---------- */
.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--ibk-ink);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.form-control,
.form-select {
  border-radius: var(--r-sm);
  padding: .78rem 1rem;
  border: 1.5px solid var(--ibk-line);
  background: #fff;
  font-size: .95rem;
  color: var(--ibk-ink);
  transition: all var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.form-control::placeholder { color: #94a3b8; }
.form-control:hover,
.form-select:hover { border-color: #c9d7ea; }
.form-control:focus,
.form-select:focus {
  border-color: var(--ibk-blue);
  box-shadow: 0 0 0 4px rgba(21,101,192,.14), 0 2px 8px rgba(21,101,192,.08);
  background: #fff;
  outline: none;
}

textarea.form-control { min-height: 130px; resize: vertical; }

.form-check-input {
  width: 2.4em; height: 1.25em;
  border: 1.5px solid var(--ibk-line);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.form-check-input:checked {
  background-color: var(--ibk-green);
  border-color: var(--ibk-green);
}
.form-check-input:focus {
  border-color: var(--ibk-green-2);
  box-shadow: 0 0 0 4px rgba(34,197,94,.2);
}
.form-check-label { font-weight: 600; cursor: pointer; }

/* ---------- 9. STATS / BADGES / TYPOGRAPHY ACCENTS ---------- */
.stat-number {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--ibk-navy);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.badge {
  font-weight: 600;
  padding: .42em .8em;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  font-size: .74rem;
}
.badge.bg-primary { background: var(--ibk-blue) !important; }
.badge.bg-success { background: var(--ibk-green) !important; }
.badge.bg-info    { background: #0ea5e9 !important; }
.badge.bg-warning { background: var(--ibk-amber) !important; color: #4a2c00 !important; }
.badge.bg-danger  { background: var(--ibk-red) !important; }

/* ---------- 10. ALERTS ---------- */
.alert {
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .92rem;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert-success { background: var(--ibk-green-soft); color: #0b5b33; border-color: #a7e9c4; }
.alert-danger  { background: var(--ibk-red-soft);   color: #861414; border-color: #f5b7b7; }
.alert-warning { background: var(--ibk-amber-soft); color: #7a4c00; border-color: #ffd98a; }
.alert-info    { background: var(--ibk-blue-soft);  color: #0d3f7a; border-color: #b7d4f2; }

/* ---------- 11. TABLES ---------- */
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  font-size: .92rem;
}
.table thead th {
  background: var(--ibk-bg);
  color: var(--ibk-slate);
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ibk-line) !important;
  padding: .85rem 1rem;
  white-space: nowrap;
}
.table tbody td {
  padding: .85rem 1rem;
  border-color: var(--ibk-line-2);
  vertical-align: middle;
  color: var(--ibk-ink);
}
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: #f8fafd; }
.table .font-monospace { color: var(--ibk-blue); font-weight: 600; }

/* ---------- 12. TIMELINE ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ibk-blue), var(--ibk-green), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 1.15rem; padding-bottom: .25rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ibk-blue);
  box-shadow: 0 0 0 4px rgba(21,101,192,.14);
  transition: all var(--dur) var(--ease);
}
.timeline-item:hover::before {
  border-color: var(--ibk-green);
  box-shadow: 0 0 0 5px rgba(34,197,94,.2);
  transform: scale(1.1);
}
.timeline-item .small { line-height: 1.45; }

/* ---------- 13. DASHBOARD SHELL ---------- */
.dashboard-wrap {
  display: flex;
  min-height: calc(100vh - var(--nav-h) - 40px);
  background: var(--ibk-bg);
}

.sidebar {
  width: 265px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--ibk-navy) 0%, var(--ibk-navy-2) 100%);
  color: #cbd5e1;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(10,31,61,.12);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border: none; }

.sidebar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0 1.5rem 1.25rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.01em;
}
.sidebar .brand i { color: var(--ibk-green-2); }

.sidebar a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #cbd5e1;
  text-decoration: none;
  padding: .75rem 1.5rem;
  font-size: .93rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.sidebar a i { width: 18px; text-align: center; opacity: .85; }
.sidebar a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: rgba(34,197,94,.5);
  padding-left: 1.75rem;
}
.sidebar a.active {
  background: linear-gradient(90deg, rgba(34,197,94,.15), rgba(255,255,255,.04));
  color: #fff;
  border-left-color: var(--ibk-green-2);
  font-weight: 600;
}
.sidebar a.active::before {
  content: "";
  position: absolute;
  right: 1.25rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ibk-green-2);
  box-shadow: 0 0 12px var(--ibk-green-2);
}
.sidebar hr { border-color: rgba(255,255,255,.1); margin: 1rem 1.5rem; }

.dash-content {
  flex: 1;
  min-width: 0;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  background: var(--ibk-bg);
}

/* ---------- 14. FOOTER ---------- */
.ibk-footer {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(34,197,94,.12), transparent 60%),
    linear-gradient(135deg, var(--ibk-navy) 0%, #061529 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ibk-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 42px;
  pointer-events: none;
}
.ibk-footer h5, .ibk-footer h6 {
  color: #fff;
  position: relative;
}
.ibk-footer p, .ibk-footer li { position: relative; }
.ibk-footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  display: inline-block;
}
.ibk-footer a:hover {
  color: #fff;
  transform: translateX(3px);
}
.ibk-footer .text-white-50 { color: rgba(203,213,225,.75) !important; }
.ibk-footer hr { border-color: rgba(255,255,255,.1) !important; }

/* ---------- 15. ACCORDION / FAQ ---------- */
.accordion-item {
  border: 1px solid var(--ibk-line-2);
  border-radius: var(--r-sm) !important;
  margin-bottom: .75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur) var(--ease);
}
.accordion-item:hover { box-shadow: var(--sh-sm); }
.accordion-button {
  font-weight: 600;
  color: var(--ibk-ink);
  background: #fff;
  padding: 1.1rem 1.35rem;
  font-size: .98rem;
  border: none;
}
.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, var(--ibk-blue-soft), #fff);
  color: var(--ibk-blue);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(21,101,192,.14);
  border-radius: var(--r-sm);
}
.accordion-button::after {
  background-size: 1.1rem;
  transition: transform var(--dur) var(--ease);
}
.accordion-body { color: var(--ibk-slate); font-size: .93rem; padding: 0 1.35rem 1.15rem; }

/* ---------- 16. CHART CONTAINERS ---------- */
canvas { max-width: 100%; }

/* ---------- 17. ANIMATIONS ---------- */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px, 30px) scale(1.06); }
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Entrance animation utility */
.fade-up { animation: fadeSlide .55s var(--ease) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

/* ---------- 18. RESPONSIVE ---------- */

/* ≥ 1400px — wide desktops */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* 992px–1199px — tablets landscape / small desktops */
@media (max-width: 1199.98px) {
  .dashboard-wrap { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding: .75rem .5rem;
    gap: .25rem;
  }
  .sidebar .brand {
    width: 100%;
    padding: .5rem 1rem;
    margin-bottom: .5rem;
    border-bottom: none;
  }
  .sidebar a {
    border-left: none;
    border-radius: var(--r-xs);
    padding: .55rem .85rem !important;
    font-size: .88rem;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .sidebar a.active::before { display: none; }
  .sidebar hr { display: none; }
  .dash-content { padding: 1.5rem 1rem; }
}

/* ≤ 991px — tablet portrait */
@media (max-width: 991.98px) {
  :root { --nav-h: 60px; }
  .hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
  .hero .lead { max-width: 100%; }
  .ibk-navbar .navbar-collapse {
    background: rgba(10,31,61,.98);
    margin-top: .75rem;
    padding: 1rem;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
  }
  .ibk-navbar .nav-link { padding: .7rem 1rem !important; }
  .ibk-navbar .btn-outline-light,
  .ibk-navbar .btn-light { width: 100%; margin-top: .5rem; }
  .ibk-navbar .nav-link::after { display: none; }

  .stat-number { font-size: 1.6rem; }
  .dash-content { padding: 1.25rem .85rem; }
}

/* ≤ 767px — mobile landscape / large phones */
@media (max-width: 767.98px) {
  .top-disclaimer { font-size: .72rem; padding: .4rem .5rem; }
  .hero { text-align: left; }
  .hero .btn-lg,
  .btn-ibk-primary.btn-lg,
  .btn-ibk-outline.btn-lg {
    width: 100%;
    padding: .8rem 1.2rem;
    font-size: .95rem;
  }
  .hero .d-flex.flex-wrap { flex-direction: column; }
  h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
  .stat-number { font-size: 1.4rem; }
  .card-stat .icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .card-stat.p-4 { padding: 1.1rem !important; }
  .cat-card { padding: 1.2rem; }
  .table thead th { font-size: .68rem; padding: .65rem .7rem; }
  .table tbody td { padding: .7rem; font-size: .85rem; }
  .dash-content h2 { font-size: 1.4rem; }
  .ibk-footer { text-align: center; }
  .ibk-footer .text-md-start { text-align: center !important; }
}

/* ≤ 575px — small phones */
@media (max-width: 575.98px) {
  body { font-size: .94rem; }
  .container { padding-left: .9rem; padding-right: .9rem; }
  .hero { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
  .hero h1 { line-height: 1.25; }
  .card, .card-stat, .cat-card { border-radius: var(--r-sm); }
  .btn { font-size: .9rem; padding: .6rem 1rem; }
  .form-control, .form-select { padding: .65rem .85rem; font-size: .9rem; }
  .stat-number { font-size: 1.25rem; }
  .timeline { padding-left: 22px; }
  .timeline-item::before { left: -22px; width: 12px; height: 12px; }
  .sidebar a { font-size: .82rem; padding: .5rem .6rem !important; }
  .sidebar a i { font-size: .85rem; }
  .dash-content { padding: 1rem .65rem; }
  .table { font-size: .8rem; }
}

/* ---------- 19. PREFERS-REDUCED-MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero::after { display: none; }
}

/* ---------- 20. PRINT ---------- */
@media print {
  .ibk-navbar, .sidebar, .top-disclaimer, .ibk-footer, .btn { display: none !important; }
  .dash-content { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}