/* Kaushal se Karobar Portal - Central Bank of India Design System */
:root {
  --primary: #0067A5;
  --primary-hover: #005080;
  --primary-dark: #003052;
  --primary-light: #EBF4FA;
  --secondary: #0072B8;
  --secondary-hover: #005E99;
  --brand-red: #D71920;
  --brand-red-hover: #B8141A;
  --brand-red-light: #FDE8E9;
  --accent-saffron: #D71920;
  --accent-saffron-light: #FDE8E9;
  --accent-green: #0D8050;
  --accent-green-light: #E8F7EE;
  --dark: #0F172A;
  --text-muted: #64748B;
  --bg-light: #F4F8FC;
  --card-bg: #FFFFFF;
  --border-color: #D3E2EE;
  --sidebar-width: 270px;
  --header-height: 64px;
  --content-padding: clamp(14px, 2.2vw, 28px);
  --shadow-sm: 0 1px 3px rgba(0,103,165,0.08);
  --shadow-md: 0 4px 12px rgba(0,103,165,0.10);
  --shadow-lg: 0 10px 25px rgba(0,48,82,0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--dark);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* App Container & Layout */
.app-container,
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 43, 73, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #002B49 0%, #004573 45%, #0067A5 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  box-shadow: 2px 0 16px rgba(0,43,73,0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.15);
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-logo-img {
  width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.logo-text {
  text-align: center;
  width: 100%;
}

.logo-text h1 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 11px;
  color: #d0e4f5;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.nav-group-title {
  padding: 12px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  text-decoration: none;
  border-left-color: rgba(255,255,255,0.4);
}

.nav-link.active {
  background-color: rgba(255,255,255,0.18);
  color: #ffffff;
  border-left-color: var(--brand-red);
  font-weight: 700;
}

.nav-link i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  color: #d0e4f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.1);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header */
/* Stylish Header System */
.top-header {
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 103, 165, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px -2px rgba(0, 43, 73, 0.05);
}

.top-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brand-red) 50%, var(--accent-saffron) 100%);
}

.header-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f8fafc;
  border: 1px solid rgba(0, 103, 165, 0.15);
  border-radius: 8px;
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 103, 165, 0.04) 0%, rgba(215, 25, 32, 0.03) 100%);
  border: 1px solid rgba(0, 103, 165, 0.15);
  border-radius: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 103, 165, 0.04);
}

.header-brand-wrap:hover {
  background: linear-gradient(135deg, rgba(0, 103, 165, 0.08) 0%, rgba(215, 25, 32, 0.06) 100%);
  border-color: rgba(0, 103, 165, 0.28);
  box-shadow: 0 4px 12px rgba(0, 103, 165, 0.08);
}

.header-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, #004573 100%);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 103, 165, 0.25);
  flex-shrink: 0;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.portal-brand-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--primary);
}

.portal-brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}

/* Header Center Live Status */
.header-center-wrap {
  display: flex;
  align-items: center;
}

.header-live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-label {
  font-weight: 600;
  color: #334155;
}

.live-version {
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9.5px;
}

/* Header Right Panel */
.header-user-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(0, 103, 165, 0.3);
  transform: translateY(-1px);
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 5px;
  background: #f8fafc;
  border: 1px solid rgba(0, 103, 165, 0.12);
  border-radius: 24px;
  transition: all 0.2s ease;
}

.user-profile-chip:hover {
  background: #ffffff;
  border-color: rgba(0, 103, 165, 0.25);
  box-shadow: 0 2px 6px rgba(0, 103, 165, 0.06);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.user-avatar-circle.admin { background: linear-gradient(135deg, #dc2626, #991b1b); }
.user-avatar-circle.rseti { background: linear-gradient(135deg, #0067A5, #004573); }
.user-avatar-circle.co { background: linear-gradient(135deg, #0284c7, #0369a1); }
.user-avatar-circle.asbd { background: linear-gradient(135deg, #d97706, #b45309); }
.user-avatar-circle.msme { background: linear-gradient(135deg, #16a34a, #15803d); }
.user-avatar-circle.candidate { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.user-avatar-circle.guest { background: linear-gradient(135deg, #64748b, #475569); }

.user-badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--dark);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.role-pill.admin { background: #fee2e2; color: #dc2626; }
.role-pill.rseti { background: #e0f2fe; color: #0067A5; font-weight: 800; }
.role-pill.co { background: #e0f2fe; color: #0284c7; }
.role-pill.asbd { background: #fef3c7; color: #b45309; }
.role-pill.msme { background: #dcfce7; color: #15803d; }
.role-pill.candidate { background: #f3e8ff; color: #7e22ce; }

.btn-logout {
  background: #dc2626;
  border: 1px solid #b91c1c;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-logout:hover {
  background-color: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

/* Page Content */
.content-area {
  padding: var(--content-padding);
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Card Component */
.ksk-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.ksk-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ksk-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ksk-card-body {
  padding: 20px;
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary);
}

.stat-card.orange::before { background-color: var(--accent-saffron); }
.stat-card.green::before { background-color: var(--accent-green); }
.stat-card.red::before { background-color: #ef4444; }
.stat-card.purple::before { background-color: #8b5cf6; }

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card.orange .stat-icon { background-color: var(--accent-saffron-light); color: var(--accent-saffron); }
.stat-card.green .stat-icon { background-color: var(--accent-green-light); color: var(--accent-green); }

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 103, 165, 0.25) #f1f5f9;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 103, 165, 0.3);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.ksk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ksk-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.ksk-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.ksk-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-saffron {
  background-color: var(--accent-saffron);
  color: #ffffff;
}
.btn-saffron:hover {
  background-color: #d95e14;
}

.btn-success {
  background-color: var(--accent-green);
  color: #ffffff;
}
.btn-success:hover {
  background-color: #096840;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--dark);
}
.btn-outline:hover {
  background-color: #f1f5f9;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-label.required::after {
  content: ' *';
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: #ffffff;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30, 66, 119, 0.1);
}

.form-select {
  appearance: auto;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.registered { background: #e0f2fe; color: #0369a1; }
.status-badge.profile-completed { background: #dbeafe; color: #1d4ed8; }
.status-badge.mapped { background: #e0e7ff; color: #4338ca; }
.status-badge.under-eval { background: #fef3c7; color: #b45309; }
.status-badge.eligible { background: #dcfce7; color: #15803d; }
.status-badge.not-eligible { background: #fee2e2; color: #b91c1c; }
.status-badge.training-progress { background: #fef9c3; color: #854d0e; }
.status-badge.training-completed { background: #d1fae5; color: #065f46; }
.status-badge.lms-forwarded { background: #fae8ff; color: #86198f; }

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  background-color: #e2e8f0;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-saffron) 0%, var(--accent-green) 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 43, 73, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: min(94vw, 620px);
  width: 94%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.2s ease-out;
}

.modal-content.modal-lg {
  max-width: min(95vw, 920px);
}

.modal-content.modal-sm {
  max-width: min(90vw, 480px);
}

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

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: #f8fafc;
  flex-wrap: wrap;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  padding: 12px 18px;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  animation: slideIn 0.3s ease;
}

.toast-item.success { background-color: var(--accent-green); }
.toast-item.error { background-color: #ef4444; }
.toast-item.warning { background-color: #f59e0b; }
.toast-item.info { background-color: var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Utility Classes */
.page-header-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ksk-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: flex-end;
}

.ksk-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ksk-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ksk-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ksk-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-login-label-long {
  display: inline;
}

.btn-login-label-short {
  display: none;
}

.login-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive Breakpoints & Tablet Optimization */
@media (max-width: 1024px) {
  .btn-menu-toggle {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: 4px 0 24px rgba(0, 43, 73, 0.45);
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }
  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }
  .top-header {
    padding: 0 16px;
    height: 62px;
  }
  .header-brand-wrap {
    padding: 4px 10px;
    gap: 8px;
  }
  .portal-brand-title {
    font-size: 12.5px;
  }
  .portal-brand-subtitle {
    font-size: 9px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .ksk-form-grid-4,
  .ksk-form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ksk-card-header {
    padding: 12px 16px;
  }
  .ksk-card-body {
    padding: 16px;
  }
  .ksk-table th, 
  .ksk-table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .user-name {
    max-width: 110px;
  }
}

@media (max-width: 834px) {
  .portal-brand-subtitle {
    display: none;
  }
  .header-user-panel {
    gap: 8px;
  }
  .user-profile-chip {
    padding: 3px 6px;
    gap: 6px;
  }
  .user-name {
    display: none;
  }
  .btn-logout {
    padding: 6px 12px;
    min-height: 34px;
    font-size: 11.5px;
  }
  .btn-logout span {
    display: inline;
    font-weight: 700;
  }
  .ksk-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-header {
    height: 56px;
    padding: 0 10px;
  }
  .header-left-wrap {
    gap: 8px;
  }
  .btn-menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .header-brand-wrap {
    padding: 2px 4px;
    gap: 6px;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .header-brand-wrap img {
    height: 28px !important;
  }
  .portal-brand-title {
    font-size: 11px;
    letter-spacing: 0.2px;
  }
  .btn-login-label-long {
    display: none !important;
  }
  .btn-login-label-short {
    display: inline !important;
  }
  .login-tab-btn {
    padding: 8px 4px !important;
    font-size: 11px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .login-card-inner {
    padding: 16px 14px !important;
  }
  .portal-brand-subtitle {
    display: none !important;
  }
  .header-user-panel {
    gap: 6px;
  }
  .header-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .user-avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .role-pill {
    font-size: 8px;
    padding: 1px 4px;
  }
  .user-profile-chip {
    padding: 2px 4px;
    gap: 4px;
  }
  .btn-logout {
    padding: 6px 11px;
    min-height: 36px;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
  }
  .btn-logout span {
    display: inline !important;
    color: #ffffff !important;
  }
  .btn-logout i {
    font-size: 12px !important;
    color: #ffffff !important;
  }
}

@media (max-width: 440px) {
  .portal-brand-title {
    font-size: 9.5px !important;
  }
  .user-badge-info {
    display: none !important;
  }
  .user-profile-chip {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .btn-logout {
    padding: 5px 8px !important;
    font-size: 10.5px !important;
    min-height: 32px !important;
  }
  .content-area {
    padding: 12px 10px;
  }
  .sidebar {
    width: min(85vw, 285px);
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 10.5px;
  }
  .ksk-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ksk-form-grid-2,
  .ksk-form-grid-3,
  .ksk-form-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ksk-card {
    border-radius: 8px;
    margin-bottom: 14px;
  }
  .ksk-card-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ksk-card-header > div:last-child {
    width: 100%;
  }
  .ksk-card-body {
    padding: 12px;
  }
  .ksk-table th,
  .ksk-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .modal-overlay {
    padding: 8px;
  }
  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 10px;
  }
  .modal-header {
    padding: 12px 14px;
  }
  .modal-body {
    padding: 14px;
  }
  .modal-footer {
    padding: 10px 14px;
    flex-direction: column-reverse;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .page-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-header-wrap > div:last-child {
    width: 100%;
  }
  .page-header-wrap > div:last-child .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .top-header {
    padding: 0 8px;
    height: 52px;
  }
  .header-brand-wrap {
    gap: 4px;
  }
  .header-brand-wrap img {
    height: 24px !important;
  }
  .portal-brand-title {
    font-size: 10px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .btn-login-label-short {
    display: none !important;
  }
  .header-user-panel .btn-primary {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .user-profile-chip {
    padding: 2px 3px;
  }
  .user-avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .login-card {
    border-radius: 8px !important;
    box-shadow: var(--shadow-md) !important;
  }
  .login-card-inner {
    padding: 14px 10px !important;
  }
  .login-tab-btn {
    font-size: 10px !important;
    padding: 6px 2px !important;
  }
}

/* Touch Ergonomics on Tablet & Touch Devices */
@media (pointer: coarse), (max-width: 1024px) {
  .btn {
    min-height: 38px;
  }
  .btn-sm {
    min-height: 32px;
  }
  .form-control {
    min-height: 38px;
    font-size: 14px;
  }
  .nav-link {
    padding: 11px 18px;
    min-height: 42px;
  }
}

/* ==========================================================================
   Central Bank Mascot & Interactive Guide Styles
   ========================================================================== */
@keyframes mascotFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes mascotFlying {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(-3deg);
  }
  50% {
    transform: translateY(-24px) rotate(2deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(0.55);
    opacity: 0.15;
  }
}

@keyframes auraRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.25) rotate(180deg);
  }
}

@keyframes mascotBulbGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.85), 0 12px 32px rgba(0, 0, 0, 0.28);
  }
}

@keyframes speechBubblePop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bank-mascot-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bank-mascot-animated {
  animation: mascotFloat 3.5s ease-in-out infinite;
}

.bank-mascot-glow {
  animation: mascotFloat 3.5s ease-in-out infinite, mascotBulbGlow 2.5s ease-in-out infinite;
}

.bank-mascot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 4px 10px 4px 6px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mascot-floating-widget {
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.mascot-flying-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mascot-flying-body {
  animation: mascotFlying 3.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-flying-body:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.08);
}

.mascot-flying-shadow {
  width: 40px;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(0, 43, 73, 0.4) 0%, rgba(0, 43, 73, 0) 75%);
  border-radius: 50%;
  margin-top: 4px;
  animation: shadowPulse 3.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  pointer-events: none;
}

.mascot-aura-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50% !important;
  border: 1.5px dashed rgba(245, 158, 11, 0.55);
  animation: auraRotate 14s linear infinite;
  pointer-events: none;
}

.mascot-flying-sparkle {
  position: absolute;
  color: #fbbf24;
  font-size: 9px;
  animation: sparkleTwinkle 2s ease-in-out infinite;
  pointer-events: none;
}

.mascot-speech-bubble {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  margin-bottom: 10px;
  max-width: 320px;
  animation: speechBubblePop 0.25s ease-out;
  position: relative;
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.mascot-trigger-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 50% !important;
  border: 2.5px solid #ffffff !important;
  padding: 0 !important;
  cursor: pointer;
  background: #002B49;
  position: relative;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(0, 43, 73, 0.35), 0 0 12px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-trigger-btn img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}

.mascot-fly-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #002B49 0%, #004573 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.2px;
}

.mascot-advisor-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.mascot-advisor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

@media (max-width: 640px) {
  .mascot-floating-widget {
    bottom: 14px !important;
    right: 14px !important;
  }
  .mascot-trigger-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
  .mascot-speech-bubble {
    max-width: 260px;
    padding: 10px 12px;
    font-size: 12px;
  }
}