/* ============================================================
   VerifyNG — Sneat-Style Dashboard Theme
   Nigerian KYC Verification Platform
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables: Light Mode ───────────────────────────── */
:root {
  /* Brand */
  --primary:          #bd1a5e;
  --primary-dark:     #73153c;
  --primary-light:    #e7e7ff;
  --primary-shadow:   rgba(110, 33, 65, 0.35);

  /* Semantic */
  --success:          #71dd37;
  --success-light:    #e8fbd6;
  --warning:          #ffab00;
  --warning-light:    #fff3cd;
  --danger:           #ff3e1d;
  --danger-light:     #fde8e4;
  --info:             #03c3ec;
  --info-light:       #d6f5fc;

  /* Backgrounds */
  --bg-body:          #f4f5fb;
  --bg-card:          #ffffff;
  --bg-input:         #ffffff;

  /* Sidebar */
  --sidebar-bg:       #ffffff;
  --sidebar-width:    260px;
  --sidebar-collapsed:68px;
  --sidebar-border:   #d9dee3;

  /* Text */
  --text-primary:     #566a7f;
  --text-heading:     #32475c;
  --text-muted:       #a5b7cd;
  --text-link:        #bd1a5e;

  /* Borders & Shadows */
  --border-color:     #d9dee3;
  --shadow-sm:        0 2px 6px rgba(67, 89, 113, 0.08);
  --shadow:           0 2px 6px rgba(67, 89, 113, 0.12);
  --shadow-md:        0 4px 16px rgba(67, 89, 113, 0.16);
  --shadow-lg:        0 8px 30px rgba(67, 89, 113, 0.20);

  /* Topbar */
  --topbar-height:    64px;
  --topbar-bg:        #ffffff;

  /* Radius */
  --radius-sm:        0.25rem;
  --radius:           0.5rem;
  --radius-lg:        0.75rem;
  --radius-xl:        1rem;
  --radius-pill:      50rem;

  /* Transitions */
  --transition:       0.2s ease;
  --transition-slow:  0.35s ease;

  /* Font */
  --font-family:      'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base:   0.9375rem;
  --font-size-sm:     0.8125rem;
  --font-size-xs:     0.75rem;
}

/* ── Dark Mode Variables ─────────────────────────────────── */
[data-theme="dark"] {
  --bg-body:          #25293c;
  --bg-card:          #2f3349;
  --bg-input:         #3a3f5a;
  --sidebar-bg:       #2f3349;
  --sidebar-border:   #434968;
  --topbar-bg:        #2f3349;
  --text-primary:     #a3aed5;
  --text-heading:     #cfd3ec;
  --text-muted:       #b6bdd8;
  --border-color:     #434968;
  --shadow-sm:        0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow:           0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md:        0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg:        0 8px 30px rgba(0, 0, 0, 0.45);
  --primary-light:    rgba(105, 108, 255, 0.15);
}

/* Dark mode table overrides */
[data-theme="dark"] .table {
  background-color: var(--bg-card);
}

[data-theme="dark"] .table > tbody > tr {
  background-color: var(--bg-card);
}

[data-theme="dark"] .table > tbody > tr:hover > td {
  background-color: rgba(105, 108, 255, 0.08);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ── Layout Shell ────────────────────────────────────────── */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.layout-container {
  display: flex;
  flex: 1;
  min-width: 0;
}

.content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-slow);
}

.content-wrapper.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

.container-xxl {
  padding: 1.5rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.layout-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  z-index: 1030;
  overflow: hidden;
  transition: width var(--transition-slow), box-shadow var(--transition-slow);
}

.layout-menu.collapsed {
  width: var(--sidebar-collapsed);
}

/* Logo area */
.app-brand {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.app-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-brand-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-brand-logo i {
  color: #fff;
  font-size: 1.1rem;
}

.app-brand-text {
  margin-left: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  transition: opacity var(--transition-slow), max-width var(--transition-slow);
}

.layout-menu.collapsed .app-brand-text {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
}

/* Menu scroll area */
.menu-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
}

.menu-inner::-webkit-scrollbar { width: 4px; }
.menu-inner::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Menu section headers */
.menu-header {
  padding: 0.65rem 1.25rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition-slow);
}

.layout-menu.collapsed .menu-header {
  opacity: 0;
  height: 0;
  padding: 0;
}

/* Menu items */
.menu-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.62rem 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  border-radius: 0;
  gap: 0.75rem;
  text-decoration: none;
}

.menu-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.menu-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}

.menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.menu-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  transition: color var(--transition);
}

.menu-link:hover .menu-icon,
.menu-link.active .menu-icon {
  color: var(--primary);
}

.menu-text {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: opacity var(--transition-slow), max-width var(--transition-slow);
}

.layout-menu.collapsed .menu-text,
.layout-menu.collapsed .menu-arrow {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
}

.menu-arrow {
  font-size: 0.75rem;
  margin-left: auto;
  transition: transform var(--transition), opacity var(--transition-slow);
}

.menu-item.open > .menu-link .menu-arrow {
  transform: rotate(90deg);
}

/* Sub-menu */
.menu-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.menu-item.open > .menu-sub {
  max-height: 600px;
}

.menu-sub .menu-link {
  padding-left: 3.1rem;
  font-size: var(--font-size-sm);
}

/* Sidebar toggle button */
.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Topbar ──────────────────────────────────────────────── */
.layout-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-slow);
}

.navbar-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.navbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.navbar-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-icon-btn .bx {
  font-size: 1.3rem;
}

/* Notification badge */
.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--topbar-bg);
}

/* Wallet display in topbar */
.topbar-wallet {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--success-light);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #2d7a00;
  white-space: nowrap;
}

[data-theme="dark"] .topbar-wallet {
  background: rgba(113, 221, 55, 0.15);
  color: #71dd37;
}

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--bg-card);
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.95rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.3rem; }

.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.card-hover {
  transition: all var(--transition);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-body { padding: 1.5rem; }

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

/* Stat Cards */
.stat-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.purple { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: var(--success-light); color: #2d7a00; }
.stat-icon.blue   { background: var(--info-light); color: #0284a0; }
.stat-icon.orange { background: var(--warning-light); color: #8a5d00; }
.stat-icon.red    { background: var(--danger-light); color: #b52b12; }

[data-theme="dark"] .stat-icon.green { color: var(--success); }
[data-theme="dark"] .stat-icon.blue  { color: var(--info); }
[data-theme="dark"] .stat-icon.orange { color: var(--warning); }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Service Cards */
.service-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.3;
}

.service-card:hover .service-name { color: var(--primary); }

/* ── Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  border-radius: var(--radius);
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
  transition: all var(--transition);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus, .form-select:focus {
  background-color: var(--bg-input);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.15);
  color: var(--text-heading);
  outline: none;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.form-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.input-group-text {
  background-color: var(--bg-body);
  border-color: var(--border-color);
  color: var(--text-muted);
}

/* Floating labels */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem 0.25rem;
}

.form-floating > label {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Password strength meter */
.password-strength {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-color);
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease, background 0.3s ease;
}

/* Radio slip-type selector */
.slip-type-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slip-type-option {
  position: relative;
}

.slip-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.slip-type-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-primary);
}

.slip-type-option input:checked + .slip-type-label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.slip-type-label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius);
  padding: 0.55rem 1.2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 50%;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s, opacity 0.4s;
  opacity: 0;
}

.btn:active::after {
  inset: -50%;
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

/* Icon buttons */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.btn-icon .bx { font-size: 1rem; }

/* ── Tables ──────────────────────────────────────────────── */
.table {
  --bs-table-bg: var(--bg-card);
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border-color);
  --bs-table-hover-bg: rgba(105, 108, 255, 0.06);
  --bs-table-hover-color: var(--text-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  color: var(--text-primary);
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

.table > thead > tr > th {
  background: var(--bg-body);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table > tbody > tr > td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table > tbody > tr:hover > td {
  background: rgba(105, 108, 255, 0.04);
}

.table > tbody > tr:last-child > td {
  border-bottom: none;
}

.table-responsive {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3em 0.65em;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: 0.9rem 1.1rem;
  font-size: var(--font-size-sm);
}

.alert-success { background: var(--success-light); color: #2d7a00; }
.alert-warning { background: var(--warning-light); color: #8a5d00; }
.alert-danger  { background: var(--danger-light); color: #b52b12; }
.alert-info    { background: var(--info-light); color: #0284a0; }

[data-theme="dark"] .alert-success { background: rgba(113,221,55,0.12); color: #88ee50; }
[data-theme="dark"] .alert-warning { background: rgba(255,171,0,0.12); color: #ffbd30; }
[data-theme="dark"] .alert-danger  { background: rgba(255,62,29,0.12); color: #ff6b52; }
[data-theme="dark"] .alert-info    { background: rgba(3,195,236,0.12); color: #29d4f5; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
}

.btn-close {
  filter: none;
  opacity: 0.5;
}

[data-theme="dark"] .btn-close { filter: invert(1); }

/* ── Verification Slip Cards ─────────────────────────────── */
.slip-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.slip-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slip-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.slip-header-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.slip-header-sub {
  font-size: var(--font-size-xs);
  opacity: 0.85;
}

.slip-photo {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--border-color);
  float: right;
  margin-left: 1rem;
}

.slip-body {
  padding: 1.5rem;
  clearfix: both;
}

.slip-body::after {
  content: '';
  display: table;
  clear: both;
}

.slip-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: var(--font-size-sm);
}

.slip-field-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 150px;
  flex-shrink: 0;
}

.slip-field-value {
  color: var(--text-heading);
  font-weight: 600;
  word-break: break-word;
}

.slip-footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* BVN Card (physical card style) */
.bvn-card-display {
  background: linear-gradient(135deg, var(--primary) 0%, #4547d4 50%, #232580 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: #fff;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(105,108,255,0.4);
}

.bvn-card-display::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.bvn-card-display::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.bvn-card-number {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 1rem 0;
}

.bvn-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Theme Toggle Switch ─────────────────────────────────── */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition);
}

.theme-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.theme-toggle input:checked + .theme-toggle-slider {
  background: var(--primary);
}

.theme-toggle input:checked + .theme-toggle-slider::before {
  transform: translateX(20px);
}

/* ── Wallet Balance Display ──────────────────────────────── */
.balance-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
}

.balance-currency {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

/* Virtual Account Card */
.virtual-account-card {
  background: linear-gradient(135deg, #1a1f36, #2d3561);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: #fff;
}

.virtual-account-card .va-bank {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.virtual-account-card .va-number {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.5rem 0 0.25rem;
}

.va-copy-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: background var(--transition);
}

.va-copy-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Status Chips ────────────────────────────────────────── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-chip.success { background: var(--success-light); color: #2d7a00; }
.status-chip.success::before { background: #2d7a00; }
.status-chip.pending { background: var(--warning-light); color: #8a5d00; }
.status-chip.pending::before { background: #8a5d00; }
.status-chip.failed  { background: var(--danger-light); color: #b52b12; }
.status-chip.failed::before  { background: #b52b12; }
.status-chip.info    { background: var(--info-light); color: #0284a0; }
.status-chip.info::before    { background: #0284a0; }

[data-theme="dark"] .status-chip.success { background: rgba(113,221,55,0.12); color: #88ee50; }
[data-theme="dark"] .status-chip.success::before { background: #88ee50; }
[data-theme="dark"] .status-chip.pending { background: rgba(255,171,0,0.12); color: #ffbd30; }
[data-theme="dark"] .status-chip.pending::before { background: #ffbd30; }
[data-theme="dark"] .status-chip.failed  { background: rgba(255,62,29,0.12); color: #ff6b52; }
[data-theme="dark"] .status-chip.failed::before  { background: #ff6b52; }

/* ── Progress / Steps ────────────────────────────────────── */
.step-indicator {
  display: flex;
  gap: 0;
  position: relative;
  margin-bottom: 2rem;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step.done .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ── Dropdowns ───────────────────────────────────────────── */
.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 180px;
}

.dropdown-item {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-item i { font-size: 1rem; }
.dropdown-divider { border-color: var(--border-color); margin: 0.35rem 0; }

/* ── Footer ──────────────────────────────────────────────── */
.content-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  padding: 1.5rem;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(105,108,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(105,108,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-icon i { color: #fff; font-size: 1.3rem; }

.auth-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── API Docs ────────────────────────────────────────────── */
.api-method-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.04em;
}

.api-method-get  { background: #d6f5fc; color: #0284a0; }
.api-method-post { background: var(--success-light); color: #2d7a00; }

[data-theme="dark"] .api-method-get  { background: rgba(3,195,236,0.12); color: #29d4f5; }
[data-theme="dark"] .api-method-post { background: rgba(113,221,55,0.12); color: #88ee50; }

.api-endpoint-url {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-heading);
  word-break: break-all;
}

.code-block {
  background: #1a1f2e;
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--font-size-xs);
  color: #a3b4d7;
  overflow-x: auto;
  line-height: 1.7;
}

.code-block .k { color: #c792ea; } /* keywords */
.code-block .s { color: #c3e88d; } /* strings */
.code-block .n { color: #82aaff; } /* names */
.code-block .c { color: #546e7a; } /* comments */

/* ── Misc Utilities ──────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.text-heading-custom { color: var(--text-heading) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-card-custom { background: var(--bg-card) !important; }
.border-custom { border-color: var(--border-color) !important; }

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.25rem 0;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.3s ease both;
}

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

/* ── Scrollbar Global ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .layout-menu {
    transform: translateX(-100%);
    transition: transform var(--transition-slow), width var(--transition-slow);
  }

  .layout-menu.mobile-open {
    transform: translateX(0);
    width: var(--sidebar-width);
  }

  .content-wrapper {
    margin-left: 0 !important;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1029;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .container-xxl { padding: 1rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .slip-photo { width: 70px; height: 85px; }
  .stat-value { font-size: 1.1rem; }
}

/* Fix muted text visibility in dark mode */
	[data-theme="dark"] .text-muted,
	[data-theme="dark"] .text-body-secondary,
	[data-theme="dark"] small.text-muted,
	[data-theme="dark"] label.text-muted {
    color: var(--text-muted) !important;
	}

	[data-theme="dark"] label,
	[data-theme="dark"] .form-label,
	[data-theme="dark"] .form-check-label {
    color: var(--text-primary) !important;
	}

/* ── Print Styles ────────────────────────────────────────── */
@media print {
  .layout-menu,
  .layout-navbar,
  .content-footer,
  .btn,
  .no-print { display: none !important; }

  .content-wrapper { margin-left: 0 !important; }
  .slip-card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; color: #000; }
}

/* NIN slip sample preview */
.slip-sample-preview {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.slip-sample-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slip-sample-preview__title {
  color: var(--text-heading);
  font-weight: 600;
}

.slip-sample-preview__body {
  padding: 0.75rem;
}

.slip-sample-preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: contain;
}

.sidebar-brand-logo {
    width: 220px;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    display: block;
    padding: 4px 8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.layout-menu .app-brand {
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.layout-menu .app-brand-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
