/**
 * Arewa Web Multi-Color Theme & Dark Mode Engine
 * Built to integrate directly with public/assets/css/style.css
 */

:root {
  --theme-primary: #002fba;
  --theme-primary-hover: #002696;
  --theme-primary-soft: #eaf0ff;
  --theme-primary-rgb: 0, 47, 186;
  --theme-gradient-start: #002696;
  --theme-gradient-end: #4d6be0;
  --theme-shadow: rgba(0, 47, 186, 0.25);
  
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-subtle: #f4f6fa;
  --text-main: #202c4b;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --navbar-bg: #ffffff;
  --footer-bg: #111827;
}

/* ==========================================================================
   8 CURATED PRESET THEMES
   ========================================================================== */

/* 1. Royal Blue (Default) */
[data-theme="royal-blue"] {
  --theme-primary: #002fba;
  --theme-primary-hover: #002696;
  --theme-primary-soft: #eaf0ff;
  --theme-primary-rgb: 0, 47, 186;
  --theme-gradient-start: #002696;
  --theme-gradient-end: #3b82f6;
  --theme-shadow: rgba(0, 47, 186, 0.25);
}

/* 2. Emerald Green */
[data-theme="emerald"] {
  --theme-primary: #03c95a;
  --theme-primary-hover: #029b45;
  --theme-primary-soft: #d2f5e1;
  --theme-primary-rgb: 3, 201, 90;
  --theme-gradient-start: #029b45;
  --theme-gradient-end: #10b981;
  --theme-shadow: rgba(3, 201, 90, 0.25);
}

/* 3. Crimson Red */
[data-theme="crimson"] {
  --theme-primary: #e70d0d;
  --theme-primary-hover: #b90b0b;
  --theme-primary-soft: #fae7e7;
  --theme-primary-rgb: 231, 13, 13;
  --theme-gradient-start: #b90b0b;
  --theme-gradient-end: #ef4444;
  --theme-shadow: rgba(231, 13, 13, 0.25);
}

/* 4. Electric Purple */
[data-theme="purple"] {
  --theme-primary: #ab47bc;
  --theme-primary-hover: #8e24aa;
  --theme-primary-soft: #f7eef9;
  --theme-primary-rgb: 171, 71, 188;
  --theme-gradient-start: #7b1fa2;
  --theme-gradient-end: #c084fc;
  --theme-shadow: rgba(171, 71, 188, 0.25);
}

/* 5. Sky Cyan */
[data-theme="skyblue"] {
  --theme-primary: #0dcaf0;
  --theme-primary-hover: #0aa2c0;
  --theme-primary-soft: #d3f5fc;
  --theme-primary-rgb: 13, 202, 240;
  --theme-gradient-start: #0891b2;
  --theme-gradient-end: #38bdf8;
  --theme-shadow: rgba(13, 202, 240, 0.25);
}

/* 6. Amber Gold */
[data-theme="amber"] {
  --theme-primary: #f59e0b;
  --theme-primary-hover: #d97706;
  --theme-primary-soft: #fef3c7;
  --theme-primary-rgb: 245, 158, 11;
  --theme-gradient-start: #d97706;
  --theme-gradient-end: #fbbf24;
  --theme-shadow: rgba(245, 158, 11, 0.25);
}

/* 7. Deep Teal */
[data-theme="teal"] {
  --theme-primary: #0d9488;
  --theme-primary-hover: #0f766e;
  --theme-primary-soft: #ccfbf1;
  --theme-primary-rgb: 13, 148, 136;
  --theme-gradient-start: #0f766e;
  --theme-gradient-end: #2dd4bf;
  --theme-shadow: rgba(13, 148, 136, 0.25);
}

/* 8. Vibrant Rose */
[data-theme="pink"] {
  --theme-primary: #fd3995;
  --theme-primary-hover: #d81b7a;
  --theme-primary-soft: #ffedfa;
  --theme-primary-rgb: 253, 57, 149;
  --theme-gradient-start: #d81b7a;
  --theme-gradient-end: #fb7185;
  --theme-shadow: rgba(253, 57, 149, 0.25);
}

/* ==========================================================================
   DYNAMIC COMPONENT OVERRIDES MATCHING style.css
   ========================================================================== */

::selection {
  background: var(--theme-primary) !important;
  color: #fff !important;
}

.bg-primary {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
}

.bg-soft-primary {
  background-color: var(--theme-primary-soft) !important;
  color: var(--theme-primary) !important;
}

.text-primary, .theme-text {
  color: var(--theme-primary) !important;
}

.border-primary {
  border-color: var(--theme-primary) !important;
}

.btn-primary,
.btn.btn-primary {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--theme-shadow);
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:active {
  background-color: var(--theme-primary-hover) !important;
  border-color: var(--theme-primary-hover) !important;
  color: #fff !important;
}

.btn-outline-primary,
.btn.btn-outline-primary {
  border-color: var(--theme-primary) !important;
  color: var(--theme-primary) !important;
  background: transparent;
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px var(--theme-shadow);
}

.btn-soft-primary,
.btn.btn-soft-primary {
  background-color: var(--theme-primary-soft) !important;
  color: var(--theme-primary) !important;
  border-color: transparent;
}

.btn-soft-primary:hover,
.btn.btn-soft-primary:hover {
  background-color: var(--theme-primary) !important;
  color: #fff !important;
  border-color: var(--theme-primary) !important;
}

.btn-linear-primary,
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
  border: none !important;
  color: #fff !important;
}

.badge.badge-primary {
  background-color: var(--theme-primary) !important;
  color: #fff !important;
}

.badge.badge-soft-primary {
  background-color: var(--theme-primary-soft) !important;
  color: var(--theme-primary) !important;
}

.theme-glow {
  box-shadow: 0 8px 30px var(--theme-shadow);
}

/* ==========================================================================
   ADVANCED DARK MODE SYSTEM
   ========================================================================== */

[data-theme-mode="dark"],
.dark-mode {
  --bg-page: #0b0f19;
  --bg-card: #131a29;
  --bg-card-subtle: #192236;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #212c42;
  --input-bg: #151d2f;
  --input-border: #2a3753;
  --navbar-bg: #0f1523;
  --footer-bg: #070a12;
  color-scheme: dark;
}

[data-theme-mode="dark"] body,
.dark-mode body {
  background-color: var(--bg-page) !important;
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] h1,
[data-theme-mode="dark"] h2,
[data-theme-mode="dark"] h3,
[data-theme-mode="dark"] h4,
[data-theme-mode="dark"] h5,
[data-theme-mode="dark"] h6,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .bg-white,
.dark-mode .bg-white {
  background-color: var(--bg-card) !important;
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] .bg-light,
.dark-mode .bg-light {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] .bg-gray,
.dark-mode .bg-gray {
  background-color: var(--bg-card-subtle) !important;
}

[data-theme-mode="dark"] .card,
.dark-mode .card {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] .border,
.dark-mode .border {
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .form-control,
[data-theme-mode="dark"] .form-select,
.dark-mode .form-control,
.dark-mode .form-select {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .form-control:focus,
[data-theme-mode="dark"] .form-select:focus,
.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb), 0.25) !important;
}

[data-theme-mode="dark"] .navbar-custom,
.dark-mode .navbar-custom {
  background-color: var(--navbar-bg) !important;
  border-bottom-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .dropdown-menu,
.dark-mode .dropdown-menu {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme-mode="dark"] .dropdown-item,
.dark-mode .dropdown-item {
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .dropdown-item:hover,
.dark-mode .dropdown-item:hover {
  background-color: var(--bg-card-subtle) !important;
  color: var(--theme-primary) !important;
}

[data-theme-mode="dark"] .bg-soft-primary,
.dark-mode .bg-soft-primary {
  background-color: rgba(var(--theme-primary-rgb), 0.15) !important;
  color: var(--theme-primary) !important;
}

[data-theme-mode="dark"] .nav-link,
[data-bs-theme="dark"] .nav-link,
.dark-mode .nav-link {
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] .nav-link:hover,
[data-theme-mode="dark"] .nav-link.active,
[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active,
.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
  color: var(--text-main) !important;
}

/* ==========================================================================
   COMPREHENSIVE DARK MODE OVERRIDES (Tables, Alerts, Text, Cards)
   ========================================================================== */

/* Tables in Dark Mode */
[data-theme-mode="dark"] .table,
[data-bs-theme="dark"] .table,
.dark-mode .table {
  --bs-table-bg: var(--bg-card) !important;
  --bs-table-color: var(--text-main) !important;
  --bs-table-striped-bg: var(--bg-card-subtle) !important;
  --bs-table-striped-color: var(--text-main) !important;
  --bs-table-active-bg: var(--bg-card-subtle) !important;
  --bs-table-active-color: var(--text-main) !important;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
  --bs-table-hover-color: var(--text-main) !important;
  --bs-table-border-color: var(--border-color) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .table > :not(caption) > * > *,
[data-bs-theme="dark"] .table > :not(caption) > * > *,
.dark-mode .table > :not(caption) > * > * {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .table-striped > tbody > tr:nth-of-type(even) > *,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > *,
.dark-mode .table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .table th,
[data-bs-theme="dark"] .table th,
.dark-mode .table th,
[data-theme-mode="dark"] .table th.bg-light,
[data-bs-theme="dark"] .table th.bg-light,
.dark-mode .table th.bg-light {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .table td,
[data-bs-theme="dark"] .table td,
.dark-mode .table td {
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .table-bordered,
[data-bs-theme="dark"] .table-bordered,
.dark-mode .table-bordered {
  border-color: var(--border-color) !important;
}

/* Alerts in Dark Mode */
[data-theme-mode="dark"] .alert,
[data-bs-theme="dark"] .alert,
.dark-mode .alert {
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .alert-light,
[data-bs-theme="dark"] .alert-light,
.dark-mode .alert-light {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .alert-light .text-secondary,
[data-bs-theme="dark"] .alert-light .text-secondary,
.dark-mode .alert-light .text-secondary {
  color: var(--text-muted) !important;
}

[data-theme-mode="dark"] .alert-info,
[data-bs-theme="dark"] .alert-info,
.dark-mode .alert-info {
  background-color: rgba(13, 202, 240, 0.12) !important;
  border-color: rgba(13, 202, 240, 0.25) !important;
  color: #38bdf8 !important;
}

/* Text Overrides in Dark Mode */
[data-theme-mode="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark,
.dark-mode .text-dark {
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .text-secondary,
[data-bs-theme="dark"] .text-secondary,
.dark-mode .text-secondary {
  color: var(--text-muted) !important;
}

/* Badge Text Exemptions */
[data-theme-mode="dark"] .badge.bg-warning,
[data-bs-theme="dark"] .badge.bg-warning,
.dark-mode .badge.bg-warning {
  background-color: #f59e0b !important;
  color: #111827 !important;
}

[data-theme-mode="dark"] .badge.bg-warning.text-dark,
[data-bs-theme="dark"] .badge.bg-warning.text-dark,
.dark-mode .badge.bg-warning.text-dark {
  color: #111827 !important;
}

[data-theme-mode="dark"] .badge.bg-info.text-dark,
[data-bs-theme="dark"] .badge.bg-info.text-dark,
.dark-mode .badge.bg-info.text-dark {
  color: #111827 !important;
}

[data-theme-mode="dark"] .badge.bg-light,
[data-bs-theme="dark"] .badge.bg-light,
.dark-mode .badge.bg-light {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* Card Headers & Footers in Dark Mode */
[data-theme-mode="dark"] .card-header,
[data-theme-mode="dark"] .card-footer,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
.dark-mode .card-header,
.dark-mode .card-footer {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .card-header.bg-white,
[data-theme-mode="dark"] .card-footer.bg-white,
[data-bs-theme="dark"] .card-header.bg-white,
[data-bs-theme="dark"] .card-footer.bg-white,
.dark-mode .card-header.bg-white,
.dark-mode .card-footer.bg-white {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .card-header.bg-light,
[data-theme-mode="dark"] .card-footer.bg-light,
[data-bs-theme="dark"] .card-header.bg-light,
[data-bs-theme="dark"] .card-footer.bg-light,
.dark-mode .card-header.bg-light,
.dark-mode .card-footer.bg-light {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

/* Modals & SweetAlert in Dark Mode */
[data-theme-mode="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content,
.dark-mode .modal-content {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .modal-header,
[data-theme-mode="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
.dark-mode .modal-header,
.dark-mode .modal-footer {
  border-color: var(--border-color) !important;
}

[data-theme-mode="dark"] .swal2-popup,
[data-bs-theme="dark"] .swal2-popup,
.dark-mode .swal2-popup {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
}

[data-theme-mode="dark"] .swal2-title,
[data-bs-theme="dark"] .swal2-title,
.dark-mode .swal2-title {
  color: var(--text-main) !important;
}

[data-theme-mode="dark"] .swal2-html-container,
[data-bs-theme="dark"] .swal2-html-container,
.dark-mode .swal2-html-container {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   FLOATING THEME SWITCHER CONTROLS
   ========================================================================== */

.theme-switcher-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-fab-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-fab-trigger:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  border-color: var(--theme-primary);
}

.theme-drawer-panel {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1050;
  animation: slideUpFade 0.25s ease-out forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.color-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.active {
  border-color: var(--text-main);
  transform: scale(1.15);
}

.mode-toggle-group {
  display: flex;
  background: var(--bg-card-subtle);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.mode-toggle-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.mode-toggle-btn.active {
  background: var(--bg-card);
  color: var(--theme-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MODERN PROFESSIONAL HEADER & NAVBAR
   ========================================================================== */

.header-navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.25s ease;
}

[data-theme-mode="dark"] .header-navbar,
.dark-mode .header-navbar {
  background: rgba(15, 21, 35, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.header-navbar .navbar-brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.header-navbar .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 0.45rem 0.95rem !important;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-navbar .nav-link:hover {
  color: var(--theme-primary);
  background-color: var(--theme-primary-soft);
}

.header-navbar .nav-link.active {
  color: var(--theme-primary);
  font-weight: 600;
  background-color: var(--theme-primary-soft);
}

[data-theme-mode="dark"] .header-navbar .nav-link:hover,
[data-theme-mode="dark"] .header-navbar .nav-link.active,
.dark-mode .header-navbar .nav-link:hover,
.dark-mode .header-navbar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(var(--theme-primary-rgb), 0.18) !important;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--theme-shadow);
  text-decoration: none !important;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--theme-shadow);
  color: #ffffff !important;
  opacity: 0.95;
  text-decoration: none !important;
}

.btn-header-login {
  color: var(--text-main);
  font-weight: 600;
  font-size: 13.5px;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-header-login:hover {
  color: var(--theme-primary);
  background: var(--bg-card-subtle);
  text-decoration: none !important;
}

.navbar-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--theme-shadow);
  transition: transform 0.2s ease;
}

.header-navbar .navbar-brand:hover .navbar-brand-badge {
  transform: scale(1.06);
}

.btn-theme-mode-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-theme-mode-toggle:hover {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border-color: var(--theme-primary);
  transform: scale(1.08);
}

[data-theme-mode="dark"] .btn-theme-mode-toggle,
.dark-mode .btn-theme-mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fbbf24;
}

[data-theme-mode="dark"] .btn-theme-mode-toggle:hover,
.dark-mode .btn-theme-mode-toggle:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: #fbbf24;
  color: #fbbf24;
}

/* ==========================================================================
   SMOOTH BOOTSTRAP SETUP & ENHANCED TYPOGRAPHY
   ========================================================================== */

html {
  scroll-behavior: smooth !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Archivo', sans-serif !important;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* Fluid responsive display sizes for mobile */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.15rem !important;
    line-height: 1.2 !important;
  }
  .display-5 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .display-6 {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
  }
}

/* Enhanced smooth transitions for cards & buttons */
.card, .btn, .nav-link {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

[data-theme-mode="dark"] .hover-lift:hover,
.dark-mode .hover-lift:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

/* ==========================================================================
   FEATHER ICONS TO BOOTSTRAP ICONS COMPATIBILITY BRIDGE
   Ensures any feather-* class automatically renders using Bootstrap Icons font
   ========================================================================== */
[class^="feather-"], [class*=" feather-"] {
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.feather-command::before { content: "\f2cb"; }
.feather-menu::before { content: "\f479"; }
.feather-sun::before { content: "\f5a0"; }
.feather-moon::before { content: "\f496"; }
.feather-grid::before { content: "\f404"; }
.feather-arrow-right::before { content: "\f138"; }
.feather-arrow-up-right::before { content: "\f140"; }
.feather-arrow-up::before { content: "\f148"; }
.feather-check::before { content: "\f272"; }
.feather-check-circle::before { content: "\f26a"; }
.feather-layers::before { content: "\f44a"; }
.feather-cloud::before { content: "\f29c"; }
.feather-link::before { content: "\f471"; }
.feather-shield::before { content: "\f53f"; }
.feather-smartphone::before { content: "\f4d0"; }
.feather-activity::before { content: "\f109"; }
.feather-phone::before { content: "\f5b4"; }
.feather-phone-call::before { content: "\f5b8"; }
.feather-mail::before { content: "\f32f"; }
.feather-send::before { content: "\f52e"; }
.feather-map-pin::before { content: "\f3e8"; }
.feather-navigation::before { content: "\f27b"; }
.feather-alert-triangle::before { content: "\f33a"; }
.feather-settings::before { content: "\f3e5"; }
.feather-sliders::before { content: "\f562"; }
.feather-x::before { content: "\f659"; }
.feather-external-link::before { content: "\f19b"; }
.feather-loader::before { content: "\f12e"; }
.feather-info::before { content: "\f431"; }
.feather-image::before { content: "\f429"; }
.feather-droplet::before { content: "\f304"; }
.feather-globe::before { content: "\f3ee"; }
.feather-share-2::before { content: "\f531"; }

/* ==========================================================================
   TABLER ICONS TO BOOTSTRAP ICONS COMPATIBILITY BRIDGE
   Ensures any ti / ti-* class automatically renders using Bootstrap Icons font
   ========================================================================== */
.ti, [class^="ti-"], [class*=" ti-"] {
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ti-refresh::before, .ti-rotate::before { content: "\f130"; }
.ti-eye::before { content: "\f341"; }
.ti-eye-fill::before { content: "\f33f"; }
.ti-shield-check::before { content: "\f53d"; }
.ti-shield-lock::before { content: "\f53e"; }
.ti-alert-circle::before, .ti-alert-circle-filled::before { content: "\f33a"; }
.ti-send::before { content: "\f52e"; }
.ti-history::before { content: "\f293"; }
.ti-calendar::before { content: "\f207"; }
.ti-circle-check-filled::before, .ti-circle-check::before { content: "\f26a"; }
.ti-loader-2::before, .ti-loader::before { content: "\f12e"; }
.ti-clock-filled::before, .ti-clock::before { content: "\f292"; }
.ti-circle-x-filled::before, .ti-circle-x::before { content: "\f62a"; }
.ti-help-circle::before { content: "\f4fa"; }
.ti-inbox::before { content: "\f437"; }

/* ==========================================================================
   GLOBAL DESIGN ENHANCEMENTS & MODERN AESTHETICS
   ========================================================================== */

/* Keyframe Micro-Animations */
@keyframes ambientGlowPulse {
  0%, 100% {
    transform: scale(1) translate(-50%, -50%);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.12) translate(-48%, -52%);
    opacity: 0.35;
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb), 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(var(--theme-primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb), 0);
  }
}

@keyframes pulseOnlineDot {
  0% {
    box-shadow: 0 0 0 0 rgba(3, 201, 90, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(3, 201, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 201, 90, 0);
  }
}

/* Base Document & Layout Refinements */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

::selection {
  background-color: var(--theme-primary) !important;
  color: #ffffff !important;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--theme-primary) !important;
  outline-offset: 2px !important;
}

/* Smooth Links & Transitions */
a {
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Hero Section Enhancements */
.hero-section {
  position: relative;
  background: radial-gradient(100% 100% at 50% 0%, rgba(var(--theme-primary-rgb), 0.05) 0%, transparent 60%);
}

[data-theme-mode="dark"] .hero-section,
.dark-mode .hero-section {
  background: radial-gradient(100% 100% at 50% 0%, rgba(var(--theme-primary-rgb), 0.12) 0%, transparent 60%);
}

.hero-section .badge {
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Hero Stats Counter Box */
.hero-stats-row {
  border-top: 1px solid var(--border-color);
}

.hero-stats-item {
  transition: transform 0.2s ease;
}

.hero-stats-item:hover {
  transform: translateY(-2px);
}

/* Services Cards Polish */
.services-section .card {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  border-radius: 16px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--theme-primary-rgb), 0.3) !important;
  box-shadow: 0 16px 36px -10px var(--theme-shadow), 0 0 0 1px rgba(var(--theme-primary-rgb), 0.1) !important;
}

.services-section .card .avatar {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.services-section .card:hover .avatar {
  transform: scale(1.1) rotate(2deg);
}

/* Support Section Channels & Form */
.support-section .card {
  border-color: var(--border-color) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Channel Cards */
.contact-channel-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  border-radius: 18px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

[data-theme-mode="dark"] .contact-channel-card,
.dark-mode .contact-channel-card {
  background: rgba(19, 26, 41, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

.contact-channel-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(var(--theme-primary-rgb), 0.45) !important;
  box-shadow: 0 16px 36px -8px var(--theme-shadow) !important;
}

.channel-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff !important;
  font-size: 24px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel-card:hover .channel-icon-badge {
  transform: scale(1.08) rotate(3deg);
}

.channel-badge-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.channel-badge-email {
  background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
  box-shadow: 0 8px 18px var(--theme-shadow);
}

.channel-badge-phone {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
}

.channel-badge-hq {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.channel-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel-card:hover .channel-action-btn {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff !important;
  transform: translate(2px, -2px);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

/* Online Pulse Dot on WhatsApp channel */
.badge-online-pulse {
  position: relative;
}

.badge-online-pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #03c95a;
  margin-right: 5px;
  animation: pulseOnlineDot 2s infinite;
}

/* Form Controls & Input Groups */
.form-control, .form-select {
  background-color: var(--input-bg) !important;
  border-color: var(--input-border) !important;
  color: var(--text-main) !important;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-group-text {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--input-border) !important;
  color: var(--text-muted) !important;
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  padding-left: 0.95rem;
  padding-right: 0.75rem;
}

.input-group .form-control,
.input-group .form-select {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 0 3.5px rgba(var(--theme-primary-rgb), 0.16) !important;
}

.input-group:focus-within .input-group-text {
  border-color: var(--theme-primary) !important;
  color: var(--theme-primary) !important;
}

/* Testimonial Cards Polish */
.testimonies-section .card {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonies-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme-mode="dark"] .testimonies-section .card:hover,
.dark-mode .testimonies-section .card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Footer Section Visual Polish */
.main-footer {
  background-color: var(--footer-bg) !important;
  border-top: 1px solid var(--border-color) !important;
}

.main-footer a.hover-primary {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-footer a.hover-primary:hover {
  color: var(--theme-primary) !important;
  transform: translateX(3px);
  display: inline-block;
}

.main-footer .btn-dark {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease;
}

.main-footer .btn-dark:hover {
  background: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

/* ==========================================================================
   DEEP SCREEN RESPONSIVENESS (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Mobile Phones (up to 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-section h1.display-4 {
    font-size: 2rem !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em;
  }

  .hero-section p.lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Full-width Stacked Hero Buttons */
  .hero-section .d-flex.flex-wrap.align-items-center.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .hero-section .btn-lg {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
  }

  /* Support Form Padding on Small Screens */
  .support-section .card.p-4.p-md-5 {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  /* Navbar Mobile Layout */
  .header-navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .header-navbar .navbar-collapse {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  [data-theme-mode="dark"] .header-navbar .navbar-collapse,
  .dark-mode .header-navbar .navbar-collapse {
    background: #131a29;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

/* Tablets (576px to 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section h1.display-4 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  .header-navbar .navbar-collapse {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  [data-theme-mode="dark"] .header-navbar .navbar-collapse,
  .dark-mode .header-navbar .navbar-collapse {
    background: #131a29;
  }
}

/* Large Desktops (992px and up) */
@media (min-width: 992px) {
  .hero-section h1.display-4 {
    font-size: 3.25rem;
    line-height: 1.15;
  }
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.app-layout {
  min-height: 100vh;
  display: flex;
  background-color: var(--bg-page);
  color: var(--text-main);
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Backdrop for Mobile */
.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  transition: opacity 0.3s ease;
}

/* Sidebar Container */
.app-sidebar {
  width: 270px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03);
}

.dark-mode .app-sidebar,
[data-theme-mode="dark"] .app-sidebar {
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  background: #111827;
}

/* Sidebar Brand Header */
.app-sidebar-header {
  height: 72px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  white-space: nowrap;
}

.app-sidebar-brand-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px var(--theme-shadow);
  transition: transform 0.2s ease;
}

.app-sidebar-brand:hover .app-sidebar-brand-icon {
  transform: scale(1.05);
}

.app-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-sidebar-brand-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.app-sidebar-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* User Card in Sidebar */
.app-sidebar-user {
  margin: 1rem 1rem 0.5rem;
  padding: 0.85rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.app-sidebar-user:hover {
  border-color: var(--theme-primary);
}

.app-sidebar-user-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-gradient-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.app-sidebar-user-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card);
}

.app-sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.app-sidebar-user-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar Wallet Pill */
.app-sidebar-wallet {
  margin: 0.5rem 1rem 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08), rgba(var(--theme-primary-rgb), 0.03));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-sidebar-wallet-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.app-sidebar-wallet-amount {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--theme-primary);
}

/* Sidebar Navigation Menu */
.app-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.app-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.app-sidebar-nav::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.app-sidebar-group-title {
  padding: 1.15rem 0.65rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.app-sidebar-group-title:first-child {
  padding-top: 0.25rem;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.62rem 0.75rem;
  margin-bottom: 3px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.app-sidebar-link:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
  transform: translateX(3px);
}

.app-sidebar-link.active {
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  font-weight: 600;
}

.app-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--theme-primary);
}

.app-sidebar-link-icon {
  font-size: 1.15rem;
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s ease;
}

.app-sidebar-link:hover .app-sidebar-link-icon {
  transform: scale(1.1);
}

.app-sidebar-link-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-link-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Sidebar Footer */
.app-sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.dark-mode .app-sidebar-footer,
[data-theme-mode="dark"] .app-sidebar-footer {
  background: #111827;
}

/* Collapsed Desktop State */
@media (min-width: 992px) {
  .sidebar-collapsed .app-sidebar,
  .app-sidebar.sidebar-collapsed {
    width: 80px !important;
    overflow-x: hidden !important;
  }

  /* Hide textual elements in collapsed state */
  .sidebar-collapsed .app-sidebar-brand-text,
  .app-sidebar.sidebar-collapsed .app-sidebar-brand-text,
  .sidebar-collapsed .app-sidebar-user-info,
  .app-sidebar.sidebar-collapsed .app-sidebar-user-info,
  .sidebar-collapsed .app-sidebar-wallet,
  .app-sidebar.sidebar-collapsed .app-sidebar-wallet,
  .sidebar-collapsed .app-sidebar-group-title,
  .app-sidebar.sidebar-collapsed .app-sidebar-group-title,
  .sidebar-collapsed .app-sidebar-link-text,
  .app-sidebar.sidebar-collapsed .app-sidebar-link-text,
  .sidebar-collapsed .app-sidebar-link-badge,
  .app-sidebar.sidebar-collapsed .app-sidebar-link-badge,
  .sidebar-collapsed .app-sidebar-footer-text,
  .app-sidebar.sidebar-collapsed .app-sidebar-footer-text {
    display: none !important;
  }

  /* Header in collapsed sidebar */
  .sidebar-collapsed .app-sidebar-header,
  .app-sidebar.sidebar-collapsed .app-sidebar-header {
    padding: 0 !important;
    justify-content: center !important;
    height: 72px;
  }

  .sidebar-collapsed .app-sidebar-brand,
  .app-sidebar.sidebar-collapsed .app-sidebar-brand {
    justify-content: center !important;
    margin: 0 !important;
  }

  /* Hide default scrollbar in collapsed state so it never cuts into icons */
  .sidebar-collapsed .app-sidebar-nav,
  .app-sidebar.sidebar-collapsed .app-sidebar-nav {
    padding: 0.75rem 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
  }

  .sidebar-collapsed .app-sidebar-nav::-webkit-scrollbar,
  .app-sidebar.sidebar-collapsed .app-sidebar-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Centered Icon Buttons in collapsed sidebar */
  .sidebar-collapsed .app-sidebar-link,
  .app-sidebar.sidebar-collapsed .app-sidebar-link {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 6px auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    transform: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .sidebar-collapsed .app-sidebar-link:hover,
  .app-sidebar.sidebar-collapsed .app-sidebar-link:hover {
    transform: scale(1.08) !important;
    background: var(--bg-card-subtle) !important;
  }

  .sidebar-collapsed .app-sidebar-link.active,
  .app-sidebar.sidebar-collapsed .app-sidebar-link.active {
    background: var(--theme-primary-soft) !important;
    color: var(--theme-primary) !important;
    box-shadow: 0 2px 10px var(--theme-shadow) !important;
  }

  .sidebar-collapsed .app-sidebar-link.active::before,
  .app-sidebar.sidebar-collapsed .app-sidebar-link.active::before {
    display: none !important;
  }

  .sidebar-collapsed .app-sidebar-link-icon,
  .app-sidebar.sidebar-collapsed .app-sidebar-link-icon {
    width: 100% !important;
    height: 100% !important;
    min-width: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    margin: 0 !important;
  }

  /* Form container for Logout in collapsed nav */
  .sidebar-collapsed .app-sidebar-nav form,
  .app-sidebar.sidebar-collapsed .app-sidebar-nav form {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .sidebar-collapsed .app-sidebar-footer,
  .app-sidebar.sidebar-collapsed .app-sidebar-footer {
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
  }

  .sidebar-collapsed .app-main-wrapper,
  .app-main-wrapper.sidebar-collapsed {
    margin-left: 80px !important;
  }
}

/* Mobile Offcanvas */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.show-mobile {
    transform: translateX(0);
  }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 72px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
}

.dark-mode .app-header,
[data-theme-mode="dark"] .app-header {
  background: rgba(19, 26, 41, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.app-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.15rem;
  text-decoration: none;
}

.app-header-btn:hover {
  background: var(--bg-card-subtle);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  transform: translateY(-1px);
}

.app-header-greeting {
  display: flex;
  flex-direction: column;
}

.app-header-greeting-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.2;
}

.app-header-greeting-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Header Quick Search */
.app-header-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.app-header-search-input {
  width: 100%;
  height: 40px;
  padding: 0 54px 0 38px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.app-header-search-input:focus {
  background: var(--bg-card);
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}

.app-header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.app-header-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  pointer-events: none;
}

/* Header Right Actions */
.app-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-header-right .dropdown {
  position: relative;
}

.app-header-right .dropdown-menu,
.app-header .dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
  top: 100% !important;
}

/* Header Wallet Pill */
.app-header-wallet-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--theme-primary-soft);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-header-wallet-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

.app-header-wallet-icon {
  font-size: 1.1rem;
  color: var(--theme-primary);
}

.app-header-wallet-info {
  display: flex;
  flex-direction: column;
}

.app-header-wallet-amount {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--theme-primary);
  line-height: 1.2;
}

.app-header-wallet-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Header Notification Bell */
.app-header-notif-btn {
  position: relative;
}

.app-header-notif-ping {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--navbar-bg);
}

/* Header User Profile Trigger */
.app-header-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.app-header-user-btn:hover {
  border-color: var(--theme-primary);
  background: var(--bg-card-subtle);
}

.app-header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-gradient-end));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.app-header-user-name {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.app-header-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */

.app-main-wrapper {
  margin-left: 270px;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  width: calc(100% - 270px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-page);
  overflow-x: hidden;
}

@media (min-width: 992px) {
  .sidebar-collapsed .app-main-wrapper {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
}

@media (max-width: 991.98px) {
  .app-main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  .app-header {
    height: 64px;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .app-header-user-btn {
    padding: 3px;
    gap: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    justify-content: center;
    flex-shrink: 0;
  }

  .app-header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
}

.app-content-body {
  flex: 1 1 auto;
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 575.98px) {
  .app-content-body {
    padding: 1rem 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .app-header {
    height: 60px;
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .app-header-left {
    gap: 8px;
  }
  .app-header-right {
    gap: 6px;
  }
  .app-header-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .app-header-user-btn {
    width: 38px;
    height: 38px;
    padding: 2px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .app-header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   STANDARD BILLS & AUTHORIZATION PIN MODAL
   ========================================================================== */
.pin-auth-modal .modal-content {
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
}

.pin-auth-header {
  background: linear-gradient(135deg, var(--theme-gradient-start, #002696) 0%, var(--theme-gradient-end, #2563eb) 100%) !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pin-icon-bubble {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-icon-bubble i {
  font-size: 1.15rem;
  color: #ffffff;
}

.pin-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.pin-modal-subtitle {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Standard Network Operator / Provider Selection Cards */
.network-operator-card,
.network-badge,
.cable-operator-card {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0) !important;
  border-radius: 12px;
  cursor: pointer;
}

.network-operator-card:hover,
.network-badge:hover,
.cable-operator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1 !important;
}

.network-operator-card.active-operator,
.network-badge.active-network,
.cable-operator-card.active-cable-operator {
  border: 2px solid var(--theme-primary, #002fba) !important;
  background-color: var(--theme-primary-soft, #eaf0ff) !important;
  box-shadow: 0 4px 14px var(--theme-shadow, rgba(0, 47, 186, 0.22)) !important;
  transform: translateY(-2px);
}

.network-operator-card .selected-check,
.network-badge .selected-check,
.cable-operator-card .selected-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--theme-primary, #002fba);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 47, 186, 0.4);
}

.network-operator-card.active-operator .selected-check,
.network-badge.active-network .selected-check,
.cable-operator-card.active-cable-operator .selected-check {
  display: flex;
}

.network-operator-card .operator-name,
.network-badge .operator-name,
.cable-operator-card .operator-name {
  color: var(--text-main, #202c4b);
  transition: color 0.2s ease;
}

.network-operator-card.active-operator .operator-name,
.network-badge.active-network .operator-name,
.cable-operator-card.active-cable-operator .operator-name {
  color: var(--theme-primary, #002fba) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   IDENTITY & KYC VERIFICATION RESPONSIVE SUITE
   Ensures verification tables & slips display 100% visible on mobile phones
   ========================================================================== */
.verification-result-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
}

.verification-result-table th,
.verification-result-table td {
  vertical-align: middle !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  padding: 0.65rem 0.75rem !important;
}

.verification-result-table th {
  width: 38% !important;
  max-width: 38% !important;
  background-color: var(--bg-card-subtle, #f8fafc) !important;
  color: var(--text-muted, #64748b) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.verification-result-table td {
  width: 62% !important;
  max-width: 62% !important;
  color: var(--text-main, #1e293b) !important;
  font-size: 0.875rem !important;
}

@media (max-width: 575.98px) {
  .verification-result-table th {
    width: 42% !important;
    max-width: 42% !important;
    font-size: 0.7rem !important;
    padding: 0.45rem 0.45rem !important;
    letter-spacing: 0.2px !important;
  }
  .verification-result-table td {
    width: 58% !important;
    max-width: 58% !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.45rem !important;
  }
}

.verification-slips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .verification-slips-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
}

.verification-slips-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .verification-slips-grid-3 > :last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (min-width: 576px) {
  .verification-slips-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

