:root {
  --si-primary: #1e40af;
  --si-primary-light: #3b82f6;
  --si-primary-dark: #172554;
  --si-accent: #2563eb;
  --si-secondary: #FFFFFF;
  --si-light-blue: #eff6ff;
  --si-navy: #172554;
  --si-text: #0f172a;
  --si-muted: #64748B;
  --si-bg: #f8fafc;
  --si-border: #e2e8f0;
  --si-success: #10b981;
  --si-warning: #f59e0b;
  --si-danger: #ef4444;
  --si-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --si-radius: 16px;
  --si-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --si-font-size: 15px;
  --si-btn-color: #1e40af;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--si-font);
  font-size: var(--si-font-size);
  background-color: var(--si-bg);
  color: var(--si-text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--si-navy);
  font-weight: 700;
  word-wrap: break-word;
}

.navbar-fintech {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--si-border);
  min-height: 66px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-sm {
  min-height: 32px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--si-primary) 0%, var(--si-accent) 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
  transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--si-primary-dark) 0%, var(--si-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.38);
}

.btn-outline-primary {
  color: var(--si-primary);
  border: 2px solid var(--si-primary);
  border-radius: 10px;
  font-weight: 600;
}

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

/* SkyServerDNS-inspired Top Bar, Hero, Step Icons, Mobile Pill Bar & White Footer */
.top-announcement-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.9) 0%, #ffffff 90%);
  padding: clamp(2.5rem, 6vw, 4.75rem) 0;
  border-bottom: 1px solid var(--si-border);
}

.text-gradient-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-feature-card {
  background: #ffffff;
  border: 1px solid var(--si-border);
  border-top: 5px solid var(--si-primary);
  border-radius: 16px;
  box-shadow: 0 18px 35px -8px rgba(30, 64, 175, 0.12);
}

.method-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  transition: border-color 0.2s ease;
}

.method-tile:hover {
  border-color: #93c5fd;
}

.step-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.footer-white {
  background: #ffffff;
  border-top: 1px solid var(--si-border);
  color: var(--si-muted);
  padding: 3.5rem 0 1.5rem;
}

.footer-white a {
  color: var(--si-muted);
  text-decoration: none;
}

.footer-white a:hover {
  color: var(--si-primary);
}

.mobile-sticky-bar {
  display: none;
}

@media (max-width: 991.98px) {
  body.has-mobile-bar {
    padding-bottom: 84px;
  }
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    z-index: 1030;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
  }
  .mobile-sticky-bar a {
    color: #475569;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .mobile-sticky-bar a.active, .mobile-sticky-bar a:hover {
    color: var(--si-primary);
  }
  .mobile-sticky-bar i {
    font-size: 1.15rem;
  }
}

.card-fintech {
  background: var(--si-secondary);
  border: 1px solid var(--si-border);
  border-radius: var(--si-radius);
  box-shadow: var(--si-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.card-fintech:hover {
  box-shadow: 0 14px 36px rgba(23, 105, 210, 0.10);
}

.hero-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF3FF 100%);
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--si-border);
}

.badge-soft-blue {
  background-color: var(--si-light-blue);
  color: var(--si-primary);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.stat-card {
  background: var(--si-secondary);
  border: 1px solid var(--si-border);
  border-radius: var(--si-radius);
  padding: 1.15rem;
  box-shadow: var(--si-shadow);
  height: 100%;
  min-width: 0;
}

.stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--si-light-blue);
  color: var(--si-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Dashboard Sidebar Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.app-sidebar {
  width: 260px;
  background: var(--si-navy);
  color: #CBD5E1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.app-sidebar .nav-link {
  color: #CBD5E1;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  margin: 0.12rem 0.7rem;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-sidebar .nav-link:hover, .app-sidebar .nav-link.active {
  background: rgba(23, 105, 210, 0.28);
  color: #FFFFFF;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: var(--si-secondary);
  border-bottom: 1px solid var(--si-border);
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1040;
}

.sidebar-backdrop.show {
  display: block;
}

.footer-fintech {
  background: var(--si-navy);
  color: #CBD5E1;
  padding: 3rem 0 1.5rem;
}

.footer-fintech a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-fintech a:hover {
  color: #FFFFFF;
}

/* Roman Urdu Admin Help Text */
.roman-urdu-help {
  font-size: 0.78rem;
  color: #475569;
  background: #F1F5F9;
  border-left: 3px solid var(--si-primary);
  padding: 0.35rem 0.6rem;
  border-radius: 0 6px 6px 0;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Responsive Tables & Forms */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

code {
  word-break: break-all;
}

/* Dark Theme Support */
body.theme-dark {
  --si-bg: #0F172A;
  --si-secondary: #1E293B;
  --si-text: #E2E8F0;
  --si-navy: #F8FAFC;
  --si-border: #334155;
  --si-light-blue: rgba(23, 105, 210, 0.2);
}

body.theme-dark .navbar-fintech {
  background: rgba(30, 41, 59, 0.96);
}

body.theme-dark .navbar-fintech .nav-link,
body.theme-dark .app-topbar,
body.theme-dark .table {
  color: #E2E8F0;
}

body.theme-dark .app-sidebar {
  background: #0B1120;
}

body.theme-dark .roman-urdu-help {
  background: #0F172A;
  color: #CBD5E1;
}

/* Breakpoints: Mobile (320px - 575px), Tablet (576px - 991px), Laptop/Desktop (992px+) */
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: -275px;
    top: 0;
    bottom: 0;
    z-index: 1050;
    transition: left 0.25s ease;
    overflow-y: auto;
  }
  .app-sidebar.show {
    left: 0;
  }
}

@media (max-width: 575.98px) {
  .display-5 {
    font-size: 1.75rem;
  }
  .stat-card {
    padding: 0.85rem;
  }
  .stat-card .fs-5, .stat-card .fs-4 {
    font-size: 1.05rem !important;
  }
  .app-topbar {
    padding: 0.65rem 0.9rem;
  }
  .card-fintech {
    padding: 1rem !important;
  }
  .btn-lg {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
  }
}
