:root {
  --primary: #2563eb;
  --primary-glow: rgb(37 99 235 / 15%);
  --noon: #b45309;
  --keeta: #047857;
  --talabat: #ea580c;
  --bg: #f8fafc;
  --card-bg: #fff;
  --glass-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgb(241 245 249 / 50%) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgb(219 234 254 / 30%) 0, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.glass {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 5%),
    0 2px 4px -2px rgb(0 0 0 / 5%),
    0 10px 15px -3px rgb(0 0 0 / 3%);
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  margin-bottom: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Utilities */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.space-x-3 > * + * {
  margin-left: 0.75rem;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-6 > * + * {
  margin-left: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.w-auto {
  width: auto;
}
.rounded-full {
  border-radius: 9999px;
}
.bg-white-10 {
  background: rgb(255 255 255 / 10%);
}
.border-white-20 {
  border: 1px solid rgb(255 255 255 / 20%);
}

.nav-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
  flex-shrink: 0;
  white-space: nowrap;
}

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

.status-badge {
  background: rgb(16 185 129 / 10%);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(16 185 129 / 70%);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(16 185 129 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(16 185 129 / 0%);
  }
}

/* Hero */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-family: Outfit, sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #0f172a, #2563eb);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
  color: inherit;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 5%);
}

.category-card:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 5%);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 20%);
}

/* Platform Specific Hover Colors */
.category-card[data-platform="Noon"]:hover {
  border-color: rgb(234 179 8 / 50%);
  background: rgb(234 179 8 / 5%);
}

.category-card[data-platform="Keeta"]:hover {
  border-color: rgb(236 72 153 / 50%);
  background: rgb(236 72 153 / 5%);
}

.category-card[data-platform="Talabat"]:hover {
  border-color: rgb(249 115 22 / 50%);
  background: rgb(249 115 22 / 5%);
}

/* Platform Specific Active Colors */
.category-card.active {
  border-color: var(--active-theme-color, var(--primary));
  background: var(--active-theme-bg, rgb(37 99 235 / 5%));
  box-shadow:
    0 0 15px var(--active-theme-bg, rgb(37 99 235 / 20%)),
    inset 0 0 10px var(--active-theme-bg, transparent);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon.noon {
  background: rgb(255 238 0 / 10%);
  color: var(--noon);
}
.card-icon.keeta {
  background: rgb(0 255 136 / 10%);
  color: var(--keeta);
}
.card-icon.talabat {
  background: rgb(255 94 0 / 10%);
  color: var(--talabat);
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.talabat-group {
  grid-column: span 1;
}

.city-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.city-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.city-chip:hover {
  background: #e2e8f0;
}

.city-chip.active {
  background: var(--talabat);
  color: white;
  border-color: var(--talabat);
}

/* Upload Container */
.upload-container {
  padding: 2.5rem;
  margin-bottom: 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--active-theme-color, rgb(255 255 255 / 10%));
  box-shadow: 0 0 40px var(--active-theme-bg, rgb(0 0 0 / 30%));
  transition: all 0.4s ease;
}

.active-selection-indicator {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.active-selection-indicator strong {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drop-zone {
  border: 2px dashed var(--active-theme-color, rgb(255 255 255 / 20%));
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--active-theme-bg, rgb(0 0 0 / 20%));
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgb(37 99 235 / 2%);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: rgb(59 130 246 / 10%);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.drop-zone h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.drop-zone p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgb(59 130 246 / 30%);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #2563eb;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* File Info */
.file-info {
  animation: slideUp 0.4s ease-out;
}

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

.file-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.file-icon {
  width: 40px;
  height: 40px;
  color: var(--success);
  margin-right: 1.5rem;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-details .name {
  font-weight: 600;
  font-size: 1.1rem;
}
.file-details .size {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
}

.remove-btn:hover {
  background: rgb(239 68 68 / 10%);
  color: #ef4444;
}

.process-actions {
  text-align: center;
}

/* Preview Section */
.preview-section {
  padding: 2rem;
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #fff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  max-width: 500px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.search-box i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logout-btn {
  background: rgb(239 68 68 / 10%);
  border: 1px solid rgb(239 68 68 / 20%);
  color: #ef4444;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn i {
  width: 16px;
  height: 16px;
}
.logout-btn:hover {
  background: rgb(239 68 68 / 20%);
  border-color: #ef4444;
  transform: translateY(-1px);
}

.status-badge {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgb(239 68 68 / 5%);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.4rem;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgb(239 68 68 / 10%);
  color: #ef4444;
}

.action-btn i {
  width: 16px;
  height: 16px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  font-weight: 500;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

tr:hover td {
  background: #f8fafc;
}

/* Loader Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgb(248 250 252 / 85%);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgb(59 130 246 / 10%);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

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

/* Login Styles */
.login-card {
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.login-header {
  margin-bottom: 2rem;
}
.auth-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}
.login-header h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.login-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-form {
  text-align: left;
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.input-group input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.error-text {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}

/* Success Toast */
.success-toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 1rem 2rem;
  border-radius: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgb(16 185 129 / 40%);
  z-index: 2000;
  animation: toastIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hidden {
  display: none !important;
}

footer,
#main-app .admin-workspace-footer,
#rider-app > footer {
  text-align: center !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 1.5rem 1rem !important;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  outline: none !important;
}

footer p,
#main-app .admin-workspace-footer p,
#rider-app > footer p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  color: inherit !important;
}

/* Responsive */
.preview-section.detailed-view {
  max-width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.preview-section.detailed-view .table-wrapper {
  max-height: 70vh;
}

.preview-section.detailed-view table {
  font-size: 0.8rem;
}

.history-section {
  padding: 2rem;
  margin-bottom: 3rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.history-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.history-item .item-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.history-item .item-meta {
  display: flex;
  flex-direction: column;
}

.history-item .item-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  margin-bottom: 0.2rem;
  width: fit-content;
}

.history-item .item-name {
  font-weight: 500;
}

.history-item .item-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Modal */
.modal-card {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  background: white; /* Make the payslip area white for realism */
  color: #1f2937;
  margin: 1.5rem;
  border-radius: 0.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--glass-border);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Payslip Preview Style */
.preview-payslip {
  font-family: Inter, sans-serif;
}

.preview-payslip header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  margin: -2rem -2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.preview-payslip h2 {
  margin: 0;
  font-size: 1.5rem;
}
.preview-payslip .company-info {
  text-align: right;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.info-item label {
  font-weight: 700;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.preview-table th {
  background: #f3f4f6;
  color: #374151;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

.preview-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

/* Action Buttons */
.eye-btn {
  color: var(--primary) !important;
}

.eye-btn:hover {
  background: rgb(59 130 246 / 10%) !important;
}

/* Role Selector Tabs */
.role-selector {
  display: flex;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.role-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.role-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%);
}

/* Rider Portal Stats */
.rider-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 5%);
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: Outfit, sans-serif;
}

.stat-card.earnings {
  border-left: 4px solid var(--success);
}
.stat-card.deductions {
  border-left: 4px solid #ef4444;
}
.stat-card.net {
  border-left: 4px solid var(--primary);
}

/* Document Upload Fields */
.upload-box {
  cursor: pointer;
  text-align: left;
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgb(37 99 235 / 2%);
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.upload-label {
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Nav Link Active Indicator */
#admin-nav-tabs .nav-btn.active {
  border-color: var(--primary);
  background: rgb(37 99 235 / 5%);
  font-weight: 600;
}

/* Card Guidelines Overlay inside dropzone */
.card-guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.2s;
  z-index: 2;
}

.upload-dropzone:hover .card-guide-overlay {
  opacity: 0.65;
}

/* Hide guideline card overlay when preview image is visible */
.upload-dropzone:has(img:not(.hidden)) .card-guide-overlay {
  display: none;
}

.card-outline {
  width: 80%;
  height: 70%;
  border: 1.5px dashed var(--primary);
  border-radius: 0.5rem;
  position: relative;
  box-sizing: border-box;
}

.card-chip {
  width: 14px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 2px;
  position: absolute;
  top: 15%;
  left: 10%;
}

.card-photo-placeholder {
  width: 18px;
  height: 22px;
  border: 1.5px solid #cbd5e1;
  position: absolute;
  bottom: 15%;
  right: 10%;
  border-radius: 2px;
}

/* Camera Guideline frames */
.camera-guideline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Pulsing and glow for instruction banner */
#camera-instruction-banner {
  animation: bannerPulse 2s infinite ease-in-out;
}

@keyframes bannerPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 12px rgb(37 99 235 / 30%);
  }

  50% {
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 6px 18px rgb(37 99 235 / 60%);
    background: #1d4ed8;
  }
} /* Card Guidelines Outline Styles */
.camera-card-box {
  width: 85%;
  height: 60%;
  border: 3.5px dashed rgb(255 255 255 / 70%);
  border-radius: 12px;
  margin: auto;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 55%);
  transition: all 0.3s ease;
}

/* Turns green when aligned / captured successfully */
.camera-card-box.success {
  border-color: #10b981 !important;
  border-style: solid !important;
  box-shadow:
    0 0 25px rgb(16 185 129 / 65%),
    0 0 0 9999px rgb(0 0 0 / 45%) !important;
}

.camera-card-chip {
  width: 32px;
  height: 24px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-radius: 4px;
  position: absolute;
  top: 30%;
  left: 8%;
  transition: all 0.3s ease;
}

.camera-card-box.success .camera-card-chip {
  border-color: #10b981;
  background: rgb(16 185 129 / 15%);
}

.camera-card-photo {
  width: 48px;
  height: 60px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-radius: 4px;
  position: absolute;
  bottom: 12%;
  right: 8%;
  transition: all 0.3s ease;
}

.camera-card-box.success .camera-card-photo {
  border-color: #10b981;
  background: rgb(16 185 129 / 15%);
}

.camera-selfie-oval {
  width: 200px;
  height: 240px;
  border: 3.5px dashed rgb(255 255 255 / 70%);
  border-radius: 50%;
  margin: auto;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 55%);
  transition: all 0.3s ease;
}

.camera-selfie-oval.success {
  border-color: #10b981 !important;
  border-style: solid !important;
  box-shadow:
    0 0 25px rgb(16 185 129 / 65%),
    0 0 0 9999px rgb(0 0 0 / 45%) !important;
}

/* Detailed card guide layouts */
.camera-card-header-bar {
  position: absolute;
  top: 6%;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
  padding-bottom: 2px;
}

.camera-card-box.success .camera-card-header-bar {
  border-color: rgb(16 185 129 / 30%);
}

.uae-text-guide {
  font-size: 7px;
  font-weight: 700;
  color: rgb(255 255 255 / 50%);
  letter-spacing: 0.5px;
}

.camera-card-box.success .uae-text-guide {
  color: rgb(16 185 129 / 80%);
}

.uae-crest-guide {
  width: 10px;
  height: 10px;
  background: rgb(255 255 255 / 30%);
  border-radius: 50%;
}

.camera-card-box.success .uae-crest-guide {
  background: rgb(16 185 129 / 60%);
}

.camera-card-lines {
  position: absolute;
  bottom: 12%;
  left: 8%;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.line-sm {
  width: 30%;
  height: 2px;
  background: rgb(255 255 255 / 30%);
}
.line-md {
  width: 70%;
  height: 2px;
  background: rgb(255 255 255 / 30%);
}
.line-lg {
  width: 90%;
  height: 2px;
  background: rgb(255 255 255 / 30%);
}

.camera-card-box.success .line-sm,
.camera-card-box.success .line-md,
.camera-card-box.success .line-lg {
  background: rgb(16 185 129 / 50%);
}

/* ID Back side components */
.camera-card-magstrip {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: 25px;
  background: rgb(255 255 255 / 20%);
}

.camera-card-box.success .camera-card-magstrip {
  background: rgb(16 185 129 / 20%);
}

.camera-card-hologram {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 30px;
  height: 30px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-radius: 50%;
}

.camera-card-box.success .camera-card-hologram {
  border-color: #10b981;
  background: rgb(16 185 129 / 10%);
}

.camera-card-mrz {
  position: absolute;
  bottom: 8%;
  left: 5%;
  right: 5%;
  font-family: monospace;
  font-size: 6px;
  color: rgb(255 255 255 / 45%);
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
}

.camera-card-box.success .camera-card-mrz {
  color: rgb(16 185 129 / 70%);
}

/* Responsive Styles */
@media (width <= 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  nav {
    padding: 0.75rem 1rem !important;
  }

  nav .logo {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0.5rem;
  }

  #admin-nav-tabs {
    margin-left: 0 !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding: 0.5rem 0.25rem 0.75rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #admin-nav-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .nav-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }

  .nav-btn span {
    display: inline !important;
    font-weight: 600 !important;
  }

  nav .logout-btn {
    margin-left: 0 !important;
  }

  .hero-section h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .preview-section {
    padding: 1rem;
    border-radius: 1rem;
  }

  .flex-row-mobile-stack {
    flex-direction: column;
    gap: 1rem;
  }

  .overlay-content {
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 1.25rem;
  }

  /* Web camera on mobile */
  .camera-container {
    width: 100%;
    height: auto;
    max-width: 320px;
  }

  .camera-card-box {
    width: 280px;
    height: 180px;
  }

  .camera-selfie-oval {
    width: 180px;
    height: 240px;
  }
}

@media (width <= 480px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .nav-btn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
  }

  .nav-btn span {
    display: inline !important;
    font-weight: 600 !important;
  }

  .nav-btn i {
    margin-right: 0.25rem !important;
    width: 15px !important;
    height: 15px !important;
  }
}

/* Text selection enabled */
body {
  user-select: text;
}

img {
  -webkit-user-drag: none;
}

input,
textarea {
  user-select: text !important;
  user-select: text !important;
  user-select: text !important;
  user-select: text !important;
}

/* Request Dropdown & Animations */
.dropdown button:hover {
  background-color: rgb(255 255 255 / 10%);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(16 185 129 / 40%);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgb(16 185 129 / 0%);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(16 185 129 / 0%);
  }
}

/* Spinner */
.spinner {
  border: 4px solid rgb(255 255 255 / 10%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Status Colors & Animations */
.status-pending {
  color: #ffbf00;
  font-weight: bold;
  animation: blinker 1.5s linear infinite;
}
.status-approved {
  color: #0f0;
  font-weight: bold;
}
.status-rejected {
  color: #f00;
  font-weight: bold;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.hover-glow {
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.hover-glow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

#admin-nav-tabs::-webkit-scrollbar {
  height: 6px;
}
#admin-nav-tabs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}
#admin-nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
#admin-nav-tabs {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ACTIVE CAMERA & REAL-TIME DOCUMENT CAPTURE STYLES
   ========================================================================== */
.camera-viewport {
  position: relative;
  width: 100%;
  height: 340px;
  background: #090d16;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

#webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Active Scanner Laser */
.camera-laser-scan {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #3b82f6, transparent);
  box-shadow: 0 0 14px #10b981, 0 0 6px #3b82f6;
  opacity: 0.85;
  pointer-events: none;
  z-index: 15;
  animation: scanLaserAnim 2.6s ease-in-out infinite alternate;
}

@keyframes scanLaserAnim {
  0% { top: 8%; opacity: 0.4; }
  50% { opacity: 0.95; }
  100% { top: 92%; opacity: 0.4; }
}

/* Camera Target Frame Reticles */
.camera-reticle-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #3b82f6;
  border-style: solid;
  pointer-events: none;
  z-index: 12;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.camera-card-box.in-focus .camera-reticle-corner {
  border-color: #10b981 !important;
}

.camera-reticle-tl { top: -2px; left: -2px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 6px; }
.camera-reticle-tr { top: -2px; right: -2px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 6px; }
.camera-reticle-bl { bottom: -2px; left: -2px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 6px; }
.camera-reticle-br { bottom: -2px; right: -2px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 6px; }

/* Camera Flash Overlay */
.camera-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.08s ease-out;
}
.camera-flash-overlay.active {
  opacity: 0.92;
}

/* Selfie Biometric Progress Ring */
.selfie-liveness-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3b82f6;
  pointer-events: none;
  transition: all 0.3s ease;
}
.selfie-liveness-ring.verifying {
  animation: rotateRing 1.4s linear infinite;
  border-top-color: #f59e0b;
  border-right-color: #f59e0b;
}
.selfie-liveness-ring.verified {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Captured Review Freeze Overlay */
.camera-review-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 80;
  transition: opacity 0.25s ease;
}
.camera-review-img {
  max-width: 90%;
  max-height: 220px;
  border-radius: 0.75rem;
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Dropzone Hover and Success States */
.upload-dropzone.has-photo {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}
.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* ==========================================================================
   OVERHAULED RIDER DASHBOARD STYLES (MODERN, HIGH-EFFICIENCY, RESPONSIVE)
   ========================================================================== */
#rider-app > nav,
.rider-top-navbar {
  background: linear-gradient(135deg, #091540 0%, #0f172a 60%, #1e293b 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(9, 21, 64, 0.25) !important;
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.75rem !important;
}

#rider-app > nav .logout-btn {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.38) !important;
  font-weight: 700 !important;
}

#rider-app > nav .logout-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.rider-portal-hero {
  background: linear-gradient(135deg, #091540 0%, #0f172a 55%, #1e293b 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 28px -6px rgba(9, 21, 64, 0.35);
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.rider-portal-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rider-portal-hero #rider-welcome-name {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rider-portal-hero #rider-welcome-meta {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}

.rider-portal-hero .btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.rider-portal-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.rider-profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.rider-info-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.rider-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  position: relative;
  flex-shrink: 0;
}

.rider-avatar-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2.5px solid #0f172a;
  border-radius: 50%;
}

.rider-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-talabat {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.badge-noon {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.badge-keeta {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.badge-verified {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.rider-portal-hero .badge-talabat {
  background: rgba(234, 88, 12, 0.22);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.45);
}
.rider-portal-hero .badge-noon {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.45);
}
.rider-portal-hero .badge-keeta {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.rider-portal-hero .badge-verified {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

/* Executive KPI Cards Grid */
.rider-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.rider-kpi-card {
  background: var(--card-bg);
  border: 1px solid #cbd5e1;
  border-radius: 1.15rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rider-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.rider-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rider-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rider-kpi-val {
  font-family: Outfit, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.rider-kpi-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Modern Tab Navigation */
#rider-tabs-header,
.rider-tab-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #cbd5e1;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#rider-tabs-header::-webkit-scrollbar,
.rider-tab-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.rider-tab-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.rider-tab-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #94a3b8;
}

.rider-tab-pill.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  border-color: var(--primary);
}

/* Featured Statement Showcase (Executive Digital Payslip Ticket & Virtual Debit Card) */
.featured-statement-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #93c5fd;
  border-radius: 1.25rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  color: #0f172a;
}

/* ============================================================================
   REFINED LUXURY VIRTUAL DEBIT CARD (TASSLIM / C3 CARD DESIGN)
   ============================================================================ */
.debit-card-showcase-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.15rem !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
}

.payroll-debit-card {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 250px !important;
  background: linear-gradient(135deg, #090e1a 0%, #152244 52%, #0a1124 100%) !important;
  border-radius: 20px !important;
  padding: 1.45rem 1.65rem 1.35rem !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 22px 45px -10px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 2px 4px rgba(255, 255, 255, 0.1) inset !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  color: #ffffff !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  margin: 0 auto !important;
}

.payroll-debit-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 
    0 28px 56px -12px rgba(2, 6, 23, 0.65),
    0 0 0 1px rgba(52, 211, 153, 0.35) inset,
    0 0 25px rgba(52, 211, 153, 0.15) !important;
}

.debit-card-gloss {
  position: absolute !important;
  top: -50% !important;
  right: -20% !important;
  width: 120% !important;
  height: 120% !important;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 60%) !important;
  pointer-events: none !important;
}

.debit-card-row-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.debit-card-bank-info {
  display: flex !important;
  flex-direction: column !important;
}

.debit-bank-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.debit-bank-type {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.debit-contactless-icon {
  color: rgba(255, 255, 255, 0.8) !important;
  display: flex !important;
  align-items: center !important;
}

.debit-card-row-chip {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0.65rem 0 0.45rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.debit-emv-chip {
  width: 44px !important;
  height: 33px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #fef08a 0%, #d97706 70%, #b45309 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}

.debit-emv-chip .chip-line.h-line {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(146, 64, 14, 0.55) !important;
}

.debit-emv-chip .chip-line.v-line {
  position: absolute !important;
  left: 45% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  background: rgba(146, 64, 14, 0.55) !important;
}

.debit-card-period-tag {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 99px !important;
  letter-spacing: 0.4px !important;
}

.debit-card-balance-section {
  position: relative !important;
  z-index: 2 !important;
  margin: 0.3rem 0 !important;
}

.debit-balance-caption {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
}

.debit-balance-num {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #34d399 !important;
  letter-spacing: -0.5px !important;
  text-shadow: 0 2px 10px rgba(52, 211, 153, 0.25) !important;
  line-height: 1.2 !important;
}

.debit-card-digits {
  font-family: 'Space Grotesk', 'Courier New', monospace !important;
  font-size: 1.15rem !important;
  letter-spacing: 3.5px !important;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 2 !important;
  margin: 0.3rem 0 0.45rem !important;
}

.debit-card-row-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  position: relative !important;
  z-index: 2 !important;
}

.debit-meta-label {
  display: block !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

.debit-meta-val {
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.debit-card-network-logo {
  display: flex !important;
  align-items: center !important;
}

.debit-card-network-logo .circle {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
}

.debit-card-network-logo .circle-left {
  background: #ea580c !important;
  opacity: 0.9 !important;
  margin-right: -10px !important;
}

.debit-card-network-logo .circle-right {
  background: #f59e0b !important;
  opacity: 0.85 !important;
}

/* Companion Panel (Quick Stats & Action Buttons) */
.debit-card-companion-panel {
  width: 100% !important;
  max-width: 440px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.debit-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.55rem !important;
  width: 100% !important;
}

.debit-metric-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.55rem 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.debit-metric-pill .m-label {
  font-size: 0.67rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

.debit-metric-pill .m-val {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  margin-top: 0.15rem !important;
}

.debit-action-buttons {
  display: flex !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.debit-action-buttons .btn {
  flex: 1 !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
}

/* Refined Statement History Tile */
.refined-statement-tile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 1.15rem 1.35rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.22s ease !important;
}

.refined-statement-tile:hover {
  transform: translateY(-2px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.09) !important;
}

.pagination-page-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.pagination-page-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.statement-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.statement-ticket-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.statement-metric-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  padding: 1.1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.statement-metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.statement-metric-amount {
  font-family: Outfit, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

/* Modern Rider Service Card */
.rider-service-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rider-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
}

.rider-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rider-service-title {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rider-service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
/* ==========================================================================
   MOBILE APP VIEW & MULTI-SCREEN RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Native Mobile Bottom Navigation Bar (Hidden on Desktop & Tablet) */
.mobile-bottom-nav {
  display: none;
}

.admin-more-sheet-card {
  max-width: 520px;
}

.admin-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
}

.admin-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-more-item:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.08);
}

.admin-more-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.admin-more-icon i {
  width: 22px;
  height: 22px;
}

@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   1. MOBILE APP VIEW (@media max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Root & App Shell */
  body {
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none;
  }

  .app-container {
    padding: 0 0.75rem !important;
  }

  /* Safe padding for bottom navigation bar */
  #main-app main,
  #rider-app main {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Sticky App Bar Header */
  nav.glass {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    border-radius: 0 0 1.25rem 1.25rem !important;
    padding: 0.65rem 0.85rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.45) !important;
    gap: 0.65rem !important;
  }

  nav.glass .logo img {
    height: 28px !important;
  }

  /* Compact tactile action buttons in mobile header */
  nav.glass .header-actions .nav-btn,
  nav.glass .logo-actions .nav-btn {
    padding: 0.5rem !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
  }

  nav.glass .header-actions .nav-btn i,
  nav.glass .logo-actions .nav-btn i {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  /* Global mobile button touch responsiveness */
  button, .btn, .nav-btn, .action-btn, .mobile-bottom-nav-item {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .table-wrapper {
    -webkit-overflow-scrolling: touch !important;
  }

  .logout-btn {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 9999px !important;
  }

  .logout-btn span {
    display: none !important; /* Icon-only logout on mobile for clean space */
  }

  .global-search-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0.25rem 0 0 0 !important;
    order: 3;
  }

  .search-box.glass {
    height: 40px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* Admin Top Tabs: Smooth Horizontal Swipe Strip */
  #admin-nav-tabs {
    display: flex !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.25rem 0 0.15rem 0 !important;
    margin-top: 0.25rem !important;
  }

  #admin-nav-tabs::-webkit-scrollbar {
    display: none !important;
  }

  #admin-nav-tabs .nav-btn {
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    gap: 0.4rem !important;
  }

  #admin-nav-tabs .nav-btn span {
    display: inline !important;
  }

  /* -------------------------------------------------------------
     NATIVE MOBILE BOTTOM NAVIGATION BAR
     ------------------------------------------------------------- */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 1000 !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5) !important;
  }

  .mobile-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    gap: 3px !important;
    padding: 5px 10px !important;
    border-radius: 12px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    flex: 1 !important;
    max-width: 76px !important;
  }

  .mobile-bottom-nav-item i {
    width: 21px !important;
    height: 21px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }

  .mobile-bottom-nav-item.active {
    color: #10b981 !important;
    font-weight: 700 !important;
  }

  .mobile-bottom-nav-item.active i {
    color: #10b981 !important;
    transform: translateY(-2px) !important;
  }

  .mobile-bottom-nav-item:active {
    transform: scale(0.92) !important;
  }

  .mobile-bottom-nav-item .mob-badge {
    position: absolute !important;
    top: 2px !important;
    right: 14px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 9999px !important;
    min-width: 16px !important;
    text-align: center !important;
  }

  /* -------------------------------------------------------------
     NATIVE MOBILE BOTTOM SHEET MODALS
     ------------------------------------------------------------- */
  .overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2100 !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: #0f172a !important;
    padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)) 1.25rem !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8) !important;
    animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    z-index: 2105 !important;
    position: relative !important;
  }

  /* Visual Top Grab Handle on all bottom sheets */
  .modal-card::before {
    content: '' !important;
    display: block !important;
    width: 44px !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 9999px !important;
    margin: 0 auto 0.75rem auto !important;
    flex-shrink: 0 !important;
  }

  /* -------------------------------------------------------------
     RIDER PORTAL: APP-STYLE COMPONENTS
     ------------------------------------------------------------- */
  /* Profile Hero Banner */
  .rider-portal-hero {
    padding: 1.25rem !important;
    border-radius: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
  }

  .rider-profile-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .rider-info-cluster {
    gap: 0.95rem !important;
    width: 100% !important;
    align-items: center !important;
  }

  .rider-avatar-large {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #3b82f6, #10b981) !important;
  }

  #rider-welcome-name {
    font-size: 1.45rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  }

  #rider-welcome-meta {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
  }

  .rider-portal-hero .btn-outline {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 0.65rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Hide top tab bar on mobile to prioritize the native bottom navigation bar */
  #rider-tabs-header,
  .rider-tab-nav {
    display: none !important;
  }

  /* Executive App KPI Metric Cards - Hero Net Payout + Clean Grid */
  .rider-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }

  .rider-kpi-card {
    padding: 1rem !important;
    border-radius: 1.15rem !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 100px !important;
    color: #ffffff !important;
    overflow: hidden !important;
  }

  /* Hero Net Payout Card takes full width */
  .rider-kpi-grid > .rider-kpi-card:first-child {
    grid-column: 1 / -1 !important;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.4) !important;
    padding: 1.25rem 1.15rem !important;
  }

  .rider-kpi-grid > .rider-kpi-card:first-child .rider-kpi-val {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #34d399 !important;
    letter-spacing: -0.02em !important;
    margin: 0.35rem 0 !important;
  }

  /* Visa & Dues Card takes full width to avoid text collision */
  .rider-kpi-grid > .rider-kpi-card:nth-child(4) {
    grid-column: 1 / -1 !important;
    padding: 1rem 1.15rem !important;
  }

  .rider-kpi-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .rider-kpi-val {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .rider-kpi-sub {
    font-size: 0.78rem !important;
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
  }

  /* Featured Payslip Card: Mobile High-End Executive Ticket & Virtual Debit Card */
  .payroll-debit-card {
    max-width: 100% !important;
    min-height: 220px !important;
    padding: 1.25rem 1.15rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .debit-card-digits {
    font-size: 1.02rem !important;
    letter-spacing: 2.2px !important;
  }

  .debit-balance-num {
    font-size: 1.55rem !important;
  }

  .debit-card-companion-panel {
    max-width: 100% !important;
  }

  .debit-metrics-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .debit-metric-pill {
    padding: 0.45rem 0.35rem !important;
  }

  .debit-metric-pill .m-label {
    font-size: 0.62rem !important;
  }

  .debit-metric-pill .m-val {
    font-size: 0.78rem !important;
  }

  .featured-statement-showcase {
    padding: 1.25rem 1rem !important;
    border-radius: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    border: 1px solid #93c5fd !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    display: block !important;
    visibility: visible !important;
  }

  .statement-ticket-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.15rem !important;
    width: 100% !important;
  }

  #featured-statement-title {
    color: #0f172a !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0.35rem 0 0.2rem 0 !important;
    display: block !important;
  }

  #rider-latest-month {
    color: #334155 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    display: block !important;
  }

  #rider-latest-actions,
  .statement-ticket-header .ticket-actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.65rem !important;
    margin-top: 0.5rem !important;
  }

  #rider-latest-actions .btn,
  .statement-ticket-header .ticket-actions .btn {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 0.65rem 0.6rem !important;
    border-radius: 0.75rem !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  #rider-latest-actions .btn-outline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Metric Breakdown Grid on Mobile (2x2 Cards with Zero Overlap) */
  .statement-ticket-metrics,
  .statement-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
  }

  .statement-metric-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.85rem !important;
    padding: 0.85rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  }

  .statement-metric-label {
    font-size: 0.72rem !important;
    color: #334155 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.25rem !important;
  }

  .statement-metric-amount {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    font-family: Outfit, sans-serif !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }

  /* Statement History Section on Mobile */
  #rider-history-section {
    padding: 1.25rem 1rem !important;
    border-radius: 1.25rem !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
    display: block !important;
    visibility: visible !important;
    margin-bottom: 1.5rem !important;
  }

  #rider-history-section h3 {
    font-size: 1.15rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  #rider-history-section > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 1.15rem !important;
  }

  #rider-history-section > div:first-child .search-box.glass {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 0.75rem !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }

  #rider-history-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  #rider-history-body .glass,
  .rider-history-card {
    padding: 1.15rem 1rem !important;
    border-radius: 1rem !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  }

  .rider-history-actions {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  .rider-history-actions .btn {
    flex: 1 !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
  }

  #rider-tab-payroll-view:not(.hidden) {
    display: block !important;
    width: 100% !important;
  }
  #rider-tab-overview-view.hidden,
  #rider-tab-payroll-view.hidden,
  #rider-tab-services-view.hidden,
  #rider-tab-requests-view.hidden,
  #rider-tab-documents-view.hidden,
  #rider-tab-dues-view.hidden {
    display: none !important;
  }

  /* Services Tab: Mobile 2-Column Touch Launcher Grid */
  #rider-tab-services-view .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .rider-service-card {
    padding: 1.15rem 1rem !important;
    border-radius: 1.15rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    min-height: 145px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .rider-service-card:active {
    transform: scale(0.96) !important;
    background: #f8fafc !important;
  }

  .rider-service-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  .rider-service-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.2rem !important;
  }

  .rider-service-desc {
    font-size: 0.78rem !important;
    color: #64748b !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Documents Tab: Responsive Card Frame */
  #rider-tab-documents-view .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Requests Tab History Containers */
  #rider-leave-history-body,
  #rider-advance-history-body,
  #rider-bike-history-body {
    gap: 0.65rem !important;
  }

  /* -------------------------------------------------------------
     TABLE RESPONSIVENESS & TOUCH WRAPPERS
     ------------------------------------------------------------- */
  .table-responsive,
  .table-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    margin-bottom: 1rem !important;
  }

  table {
    min-width: 620px !important;
  }

  table th,
  table td {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
    color: #0f172a !important;
  }

  table td strong {
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  /* Buttons & Inputs Touch Targets */
  .btn {
    min-height: 42px !important;
    font-size: 0.88rem !important;
    border-radius: 0.75rem !important;
  }

  .btn:active {
    transform: scale(0.97) !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important; /* Critical: Prevents iOS Safari unwanted zoom on focus */
    min-height: 42px !important;
    border-radius: 0.75rem !important;
  }

  /* Center Auth Screens on Mobile (Never push down) */
  #login-screen.overlay:not(.hidden),
  #forgot-screen.overlay:not(.hidden),
  #register-screen.overlay:not(.hidden) {
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 1.5rem 1rem !important;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%) !important;
    box-sizing: border-box !important;
  }

  #login-screen .login-card,
  #forgot-screen .modal-card,
  #register-screen .modal-card {
    margin: auto !important;
    width: 100% !important;
    max-width: 400px !important;
    border-radius: 1.75rem !important;
    padding: 2.5rem 1.75rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6) !important;
    transform: none !important;
  }

  /* Full-Screen PDF & Statement Breakdown Modal on Mobile */
  #preview-modal.overlay:not(.hidden) {
    align-items: stretch !important;
    justify-content: stretch !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    background: #0f172a !important;
  }

  #preview-modal .modal-card,
  #preview-modal .full-screen-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0b1120 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: none !important;
  }

  #preview-modal .modal-header,
  #preview-modal .statement-viewer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.85rem 1.25rem !important;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
    color: white !important;
  }

  #preview-modal .modal-body {
    flex: 1 1 auto !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #0b1120 !important;
  }

  #preview-modal .modal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
  }

  /* -------------------------------------------------------------
     MOBILE CARD & CONTAINER ARCHITECTURE (Zero Overlapping)
     ------------------------------------------------------------- */
  .app-container, .main-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .hero-section {
    padding: 1.25rem 0.75rem !important;
    margin-bottom: 1.25rem !important;
    text-align: center !important;
  }
  .hero-section h1 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-section p {
    font-size: 0.85rem !important;
  }

  /* Category Cards Grid on Mobile: Contained 1-column cards */
  .category-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }
  .category-card {
    padding: 1rem !important;
    border-radius: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .category-card .city-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    margin-top: 0.65rem !important;
  }
  .city-chip {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  /* Upload Container & Dropzone on Mobile: Strict Contained Card */
  .upload-container {
    padding: 1rem 0.85rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .upload-container > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 0.85rem !important;
  }
  .active-selection-indicator {
    text-align: left !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  .period-selector {
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 0.85rem !important;
    box-sizing: border-box !important;
    border-radius: 0.85rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
  .period-selector span {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
  }
  .period-selector select {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.65rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }
  .period-selector select option {
    background: #0f172a !important;
    color: #ffffff !important;
  }

  /* Drop Zone on Mobile */
  .drop-zone {
    padding: 1.5rem 0.85rem !important;
    border-radius: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .drop-zone-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem !important;
  }
  .drop-zone-content p {
    font-size: 0.8rem !important;
    margin-bottom: 0.65rem !important;
  }
  .drop-zone-content div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  .drop-zone-content .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
  }

  /* File Info & Action Bar on Mobile */
  .file-info {
    padding: 0.85rem !important;
    border-radius: 1rem !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
  }
  .file-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  .file-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Preview Section on Mobile */
  #preview-section {
    padding: 1rem 0.85rem !important;
    border-radius: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1.25rem !important;
  }
  .preview-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .preview-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  .preview-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .kpi-summary-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
  }

  /* History Section & Card on Mobile */
  .history-section, #history-section, .history-card {
    padding: 1rem 0.85rem !important;
    border-radius: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-bottom: 1.25rem !important;
  }
  .history-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .history-header .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   2. SMALL PHONE OPTIMIZATION (@media max-width: 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .app-container {
    padding: 0 0.5rem !important;
  }

  .rider-kpi-val {
    font-size: 1.15rem !important;
  }

  .rider-kpi-sub {
    font-size: 0.72rem !important;
  }

  #rider-welcome-name {
    font-size: 1.25rem !important;
  }

  .statement-metric-amount {
    font-size: 1.1rem !important;
  }

  .mobile-bottom-nav-item span {
    font-size: 0.65rem !important;
  }

  .mobile-bottom-nav-item i {
    width: 19px !important;
    height: 19px !important;
  }
}

/* ==========================================================================
   3. TABLET & IPAD SCREENS (@media min-width: 769px and max-width: 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .app-container {
    max-width: 95% !important;
    padding: 0 1rem !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .rider-kpi-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
  }

  #rider-tab-services-view .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .modal-card {
    max-width: 680px !important;
    border-radius: 1.25rem !important;
  }
}

/* ==========================================================================
   4. DESKTOP & LARGE SCREENS (@media min-width: 1025px)
   ========================================================================== */
@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .modal-card::before {
    display: none !important;
  }

  .app-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
  }

  .rider-portal-hero,
  .rider-kpi-grid {
    display: none !important;
  }

  .rider-profile-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .statement-ticket-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .statement-ticket-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }

  #main-app main,
  #rider-app main {
    padding-bottom: 3rem !important;
  }
}

/* Global Hidden State Enforcer (Highest Specificity) */
#preview-modal.hidden,
#login-screen.hidden,
#forgot-screen.hidden,
#register-screen.hidden,
#rider-app.hidden,
#rider-app.app-container.hidden,
#main-app.hidden,
#main-app.app-container.hidden,
.app-container.hidden,
.overlay.hidden,
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#rider-app.hidden #rider-mobile-bottom-nav,
#rider-app.hidden .mobile-bottom-nav,
#rider-app.hidden .mobile-rider-drawer,
#rider-app.hidden .mobile-drawer-overlay,
#rider-app.hidden .mobile-reference-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#main-app.hidden #admin-mobile-bottom-nav,
#main-app.hidden .admin-left-sidebar,
#main-app.hidden #admin-sidebar-backdrop {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Universal Full-Screen PDF Viewer & Payslip Breakdown Modal */
#preview-modal.overlay:not(.hidden) {
  align-items: stretch !important;
  justify-content: stretch !important;
  display: flex !important;
  padding: 0 !important;
  margin: 0 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: #0b1120 !important;
}

#preview-modal .modal-card,
#preview-modal .full-screen-modal {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0b1120 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  border: none !important;
}

#preview-modal .modal-header,
#preview-modal .statement-viewer-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.75rem 1.25rem !important;
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
  color: white !important;
}

#preview-modal .modal-body,
#preview-modal .statement-viewer-body {
  flex: 1 1 auto !important;
  padding: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: #0b1120 !important;
}

#preview-modal .modal-footer {
  display: none !important;
}

@media (max-width: 768px) {
  #preview-modal .modal-body {
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  #full-pdf-doc-view {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    border-radius: 0.75rem !important;
  }
  #full-pdf-doc-view table {
    width: 100% !important;
    table-layout: fixed !important;
  }
  #full-pdf-doc-view table td:last-child,
  #full-pdf-doc-view table th:last-child {
    white-space: nowrap !important;
    text-align: right !important;
    width: 38% !important;
  }
  #full-pdf-doc-view table td:first-child,
  #full-pdf-doc-view table th:first-child {
    word-break: break-word !important;
    width: 62% !important;
  }
}

/* ==========================================================================
   UNIFIED RESPONSIVE RIDER PORTAL UI (Desktop, Tablet & Mobile Harmony)
   Based on rider-portal-source design tokens & responsive breakpoints
   ========================================================================== */

/* Rider Container Sizing & Padding */
#rider-app.app-container,
#rider-app {
  max-width: 1440px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem) 4rem !important;
}

/* Hide duplicate legacy hero and KPI cards across all screens */
.rider-portal-hero,
.rider-kpi-grid {
  display: none !important;
}

/* 1. Overview Container & Welcome Origami Banner */
.mobile-reference-container {
  display: block !important;
  margin-bottom: 1.5rem;
  width: 100%;
}

.mobile-origami-header {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(33, 120, 211, 0.45), transparent 35%), linear-gradient(135deg, #071a3e, #0b315f);
  padding: 2.25rem 2.5rem 2.75rem 2.5rem;
  color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(7, 26, 62, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 155px;
  box-sizing: border-box;
  transition: padding 0.25s ease, min-height 0.25s ease;
}

.mobile-origami-header.subpage-mode {
  padding: 1.25rem 1.75rem 1.5rem !important;
  min-height: auto !important;
  margin-bottom: 0.75rem !important;
}

.mob-back-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.mob-back-pill:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) !important;
}

.mob-back-pill:active {
  transform: scale(0.95) !important;
  background: rgba(255, 255, 255, 0.32) !important;
}

.rider-subpage-banner {
  box-sizing: border-box !important;
  width: 100% !important;
  transition: transform 0.2s ease !important;
}

.mobile-origami-header::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 35px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.origami-facets-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
    linear-gradient(60deg, transparent 38%, rgba(255, 255, 255, 0.2) 38%, rgba(255, 255, 255, 0.2) 40%, transparent 40%),
    linear-gradient(-45deg, transparent 58%, rgba(255, 255, 255, 0.25) 58%, rgba(255, 255, 255, 0.25) 60%, transparent 60%);
}

.mob-header-top-row {
  display: none;
}

.mob-menu-btn {
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4.5px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1050 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.mob-gold-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

.mob-gold-avatar:active {
  transform: scale(0.92);
}

.mob-header-titles {
  position: relative;
  z-index: 3;
}

.mob-screen-title {
  font-family: 'Manrope', 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.mob-screen-subtitle {
  font-size: 0.92rem;
  color: #b6c6db;
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mob-header-verified-pill {
  background: rgba(17, 200, 139, 0.15) !important;
  border: 1px solid rgba(45, 220, 162, 0.3) !important;
  color: #37d7a3 !important;
  border-radius: 999px !important;
  padding: 0.3rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

/* 2. Vibrant Green Pill Banner (Active Location / Station) */
.mob-green-status-strip {
  padding: 0 2rem;
  margin-top: -24px;
  position: relative;
  z-index: 6;
  margin-bottom: 1.5rem;
}

.mob-green-pill {
  background: linear-gradient(90deg, #08ad75, #10bf66);
  border-radius: 13px;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 183, 125, 0.2);
  font-size: 0.92rem;
  font-weight: 600;
}

.mob-green-pill-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mob-green-pill-plus {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mob-green-pill-plus:hover {
  transform: scale(1.08);
}
.mob-green-pill-plus:active {
  transform: scale(0.92);
}

/* 3. Responsive Quick Action 6-Card Grid (Screen 1 & Overview) */
.mob-quick-sheet {
  padding: 0;
  margin-bottom: 2rem !important;
}

.mob-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
}

.mob-service-card {
  background: #ffffff;
  border: 1px solid #e1e7ee;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(23, 45, 76, 0.04);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 135px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.mob-service-card:hover {
  transform: translateY(-3px);
  border-color: #a9c9f5;
  box-shadow: 0 12px 25px rgba(23, 45, 76, 0.08);
}

.mob-service-card:active {
  transform: scale(0.97);
}

.mob-service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.mob-service-icon-box i,
.mob-service-icon-box svg {
  width: 22px;
  height: 22px;
}

.mob-service-icon-box.box-blue { background: #edf5ff; color: #2582ed; }
.mob-service-icon-box.box-emerald { background: #e9faf4; color: #08b77d; }
.mob-service-icon-box.box-rose { background: #fff0f2; color: #ef4d62; }
.mob-service-icon-box.box-violet { background: #f3efff; color: #8654ed; }
.mob-service-icon-box.box-amber { background: #fff7e8; color: #f4a10b; }
.mob-service-icon-box.box-cyan { background: #eafafc; color: #0db3c7; }

.mob-service-title {
  font-family: 'Manrope', 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #17253b;
  margin-bottom: 0.2rem;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-service-sub {
  font-size: 0.76rem;
  color: #718098;
  font-weight: 500;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Statement Ticket Metrics Grid (Default 4-Col Desktop) */
.statement-ticket-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}

/* Permits & Documents Grid (Default 2-Col Desktop) */
#rider-permits-cards-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

/* 4. Responsive Breakpoints from rider-portal-source */

/* TABLET / SMALL DESKTOP (<= 1180px) */
@media (max-width: 1180px) {
  .mob-quick-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
  .statement-ticket-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .mobile-origami-header {
    padding: 2rem 2.25rem 2.5rem 2.25rem;
  }
}

/* MOBILE & TABLET PORTRAIT (<= 768px) */
@media (max-width: 768px) {
  #rider-app.app-container,
  #rider-app {
    padding: 0 0 calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100vw !important;
  }

  #rider-app > nav,
  #rider-app .rider-top-navbar {
    display: none !important;
  }

  .mob-header-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.25rem !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .mobile-origami-header {
    display: block !important;
    padding: 1.25rem 1.25rem 2.25rem 1.25rem !important;
    border-radius: 0 0 24px 24px !important;
  }

  .mob-screen-title {
    font-size: clamp(1.2rem, 4vw, 1.55rem) !important;
  }

  .mob-green-status-strip {
    padding: 0 1.25rem !important;
    margin-top: -16px !important;
    margin-bottom: 1.15rem !important;
  }

  .mob-green-pill {
    padding: 0.65rem 1.15rem !important;
    border-radius: 999px !important;
    font-size: 0.86rem !important;
  }

  .mob-quick-sheet {
    padding: 0 1rem !important;
    margin-bottom: 2rem !important;
  }

  .mob-quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .mob-service-card {
    min-height: 108px !important;
    padding: 14px 8px !important;
    border-radius: 16px !important;
  }

  .statement-ticket-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  #rider-permits-cards-container {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Bottom Navigation Bar for Mobile */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid #dfe6ee !important;
    z-index: 999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0 !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
  }

  .mobile-bottom-nav-item {
    position: relative !important;
    z-index: 3 !important;
    background: transparent !important;
    border: none !important;
    color: #8a97a8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    flex: 1 !important;
    padding: 6px 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    min-width: 55px !important;
    max-width: 76px !important;
  }

  .mobile-bottom-nav-item i,
  .mobile-bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }

  .mobile-bottom-nav-item.active {
    color: #1769e8 !important;
  }

  .mobile-bottom-nav-item.active i,
  .mobile-bottom-nav-item.active svg {
    color: #1769e8 !important;
    transform: translateY(-2px) !important;
  }

  .mobile-center-fab-slot {
    position: relative;
    z-index: 5;
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }

  .mobile-center-fab-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1769e8 0%, #0d52be 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 4px 14px rgba(23, 105, 232, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-center-fab-btn:active {
    transform: scale(0.92);
  }
}

/* SMALL PHONES (<= 380px) */
@media (max-width: 380px) {
  .mob-quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .mob-service-card {
    min-height: 96px !important;
    padding: 10px 6px !important;
  }
  .mob-service-icon-box {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 4px !important;
  }
  .mob-service-title {
    font-size: 0.78rem !important;
  }
  .mob-service-sub {
    font-size: 0.68rem !important;
  }
}

/* Statement History Card Screen 2 Enhancements */
.rider-history-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
  border-radius: 20px !important;
}

.rider-history-card .rider-history-card-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

.rider-history-card .rider-history-card-header strong {
  color: #0f172a !important;
}

.rider-history-card .rider-history-actions .btn-outline {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.card-award-rosette {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}

/* ==========================================================================
   PLATFORM-LEVEL WIPE / DELETE ACTION BUTTONS
   ========================================================================== */
.btn-wipe-card-platform {
  margin-top: 0.85rem;
  padding: 0.38rem 0.7rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-wipe-card-platform:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-platform-wipe-header {
  padding: 0.38rem 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-platform-wipe-header:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}




/* ==========================================================================
   MOBILE RIDER SLIDE-IN NAVIGATION DRAWER (3 Stripes / Hamburger Menu)
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 999998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

.mobile-drawer-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
}

.mobile-rider-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(320px, 86vw) !important;
  background: #091540 !important;
  color: #ffffff !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.65) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  transform: translateX(-105%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
  pointer-events: none !important;
}

.mobile-rider-drawer.open {
  transform: translateX(0) !important;
  pointer-events: auto !important;
  display: flex !important;
}

.drawer-header {
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, #0d1e5a 0%, #153285 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}

.drawer-gold-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 2.5px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drawer-user-meta {
  overflow: hidden;
}

.drawer-user-meta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-badge-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.drawer-id-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.drawer-platform-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.drawer-body {
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 0.6rem 0.75rem 0.3rem;
  text-transform: uppercase;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.drawer-nav-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.drawer-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0.5rem;
}

.drawer-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 21, 64, 0.98);
}

.drawer-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.drawer-logout-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   MOBILE HEADER, LOGO VISIBILITY & ZERO OVERLAPPING RULES
   ========================================================================== */
@media (max-width: 768px) {
  #rider-app > nav {
    display: none !important;
  }

  .desktop-only-identity {
    display: none !important;
  }

  .mob-header-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.15rem !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .mob-header-brand-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    padding: 0 0.5rem !important;
  }

  .mob-header-brand-logo img {
    height: 38px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) !important;
  }

  .mob-header-notif-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
  }

  /* Clear High-Contrast Writeups */
  .mob-screen-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  }

  .mob-screen-subtitle {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  .mob-service-title {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
  }

  .mob-service-sub {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
  }
}

/* Clear Writeups on Cards & Modals Across Desktop, Tablet & Mobile */
.statement-metric-label {
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.statement-metric-amount {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.02em !important;
}

.rider-history-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

.rider-history-card .rider-history-card-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

.rider-history-card .rider-history-card-header strong,
.statement-ticket-header h3,
#rider-history-section h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

#rider-latest-month {
  color: #334155 !important;
  font-weight: 600 !important;
}

@media (min-width: 769px) {
  .desktop-only-identity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
  }
  #desktop-nav-rider-name {
    color: #ffffff !important;
    font-weight: 700 !important;
  }
  #desktop-nav-rider-id {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.25) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    font-weight: 800 !important;
  }
}


/* ============================================================================
   ADMIN PORTAL LEFT-SIDEBAR & EXECUTIVE REFERENCE DESIGN OVERHAUL (OCTOBER 2026)
   Exact High-Specificity Selectors for #main-app.admin-sidebar-layout
   ============================================================================ */

#main-app.app-container.admin-sidebar-layout,
#main-app.admin-sidebar-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f5f7fb !important;
  color: #0f172a !important;
  position: relative !important;
  overflow-x: hidden !important;
}

#main-app.app-container.admin-sidebar-layout.hidden,
#main-app.admin-sidebar-layout.hidden {
  display: none !important;
}

/* 1. LEFT SIDEBAR NAVIGATION (Modern Floating Sticky Executive Nav) */
#main-app .admin-left-sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  background: #ffffff !important;
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100vh !important;
  max-height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  margin: 0 !important;
  z-index: 100 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.26s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#main-app .admin-left-sidebar.sidebar-collapsed {
  margin-left: -260px !important;
}

#main-app .admin-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1.15rem 1.15rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

#main-app .admin-brand-logo-wrap {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

#main-app .admin-brand-logo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 7px !important;
}

#main-app .admin-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
  flex: 1 !important;
}

#main-app .admin-brand-title {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

#main-app .admin-brand-sub {
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

#main-app .admin-sidebar-close-mob {
  display: none !important;
  margin-left: auto !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

/* Sidebar Menu Scroll Area */
#main-app #admin-nav-tabs.admin-sidebar-scroll {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.22rem !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.85rem 0.75rem !important;
  margin: 0 !important;
  background: #ffffff !important;
}

#main-app #admin-nav-tabs.admin-sidebar-scroll::-webkit-scrollbar {
  width: 4px !important;
  display: block !important;
}

#main-app #admin-nav-tabs.admin-sidebar-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 99px !important;
}

#main-app .admin-sidebar-group-label {
  font-size: 0.69rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  padding: 0.75rem 0.65rem 0.3rem !important;
  margin: 0 !important;
}

#main-app .admin-sidebar-group-label:first-child {
  padding-top: 0.2rem !important;
}

/* Sidebar Individual Buttons (Override all .nav-btn rules!) */
#main-app #admin-nav-tabs .nav-btn.admin-side-link,
#main-app .admin-side-link {
  width: 100% !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 0.6rem 0.8rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0.6rem !important;
  background: transparent !important;
  color: #334155 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}

#main-app #admin-nav-tabs .nav-btn.admin-side-link:hover,
#main-app .admin-side-link:hover {
  background: #f1f5f9 !important;
  color: #092147 !important;
  transform: none !important;
}

#main-app #admin-nav-tabs .nav-btn.admin-side-link.active,
#main-app .admin-side-link.active {
  background: #082046 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(8, 32, 70, 0.2) !important;
}

#main-app .side-link-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.68rem !important;
  min-width: 0 !important;
  flex: 1 !important;
}

#main-app .side-link-left i,
#main-app .side-link-left svg {
  width: 17px !important;
  height: 17px !important;
  color: #475569 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#main-app .admin-side-link.active .side-link-left i,
#main-app .admin-side-link.active .side-link-left svg,
#main-app .admin-side-link.active .side-link-left span {
  color: #ffffff !important;
}

#main-app .side-link-left span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: inherit !important;
}

#main-app .side-link-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-shrink: 0 !important;
}

#main-app .side-chevron,
#main-app svg.side-chevron {
  width: 14px !important;
  height: 14px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

#main-app .admin-side-link.active .side-chevron,
#main-app .admin-side-link.active svg.side-chevron {
  color: rgba(255, 255, 255, 0.8) !important;
}

#main-app .side-count-pill {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 0.1rem 0.45rem !important;
  border-radius: 99px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  line-height: 1.3 !important;
}

#main-app .admin-side-link.active .side-count-pill {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

#main-app .side-count-pill.side-pill-emerald {
  background: #d1fae5 !important;
  color: #047857 !important;
}

#main-app .side-count-pill.side-pill-indigo {
  background: #e0e7ff !important;
  color: #4338ca !important;
}

/* Sidebar Bottom User Card (Reference Image Bottom-Left Profile) */
#main-app .admin-sidebar-footer {
  padding: 0.75rem !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

#main-app .admin-sidebar-user-card {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.5rem 0.6rem !important;
  border-radius: 0.65rem !important;
  cursor: pointer !important;
  transition: background 0.16s ease !important;
}

#main-app .admin-sidebar-user-card:hover {
  background: #f8fafc !important;
}

#main-app .admin-sidebar-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #082046 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#main-app .admin-sidebar-user-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
  line-height: 1.25 !important;
}

#main-app .admin-sidebar-user-name {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#main-app .admin-sidebar-user-email {
  font-size: 0.7rem !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 2. MAIN WORKSPACE & TOP BREADCRUMB HEADER BAR */
#main-app .admin-main-workspace {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: calc(100% - 260px) !important;
  max-width: calc(100% - 260px) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
}

#main-app .admin-left-sidebar.sidebar-collapsed + .admin-main-workspace {
  width: 100% !important;
  max-width: 100% !important;
}

#main-app .admin-top-breadcrumb-bar {
  min-height: 58px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 0.65rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

#main-app .admin-breadcrumb-left {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

#main-app .admin-sidebar-toggle-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  touch-action: manipulation !important;
}

#main-app .admin-sidebar-toggle-btn * {
  pointer-events: none !important;
}

#main-app .admin-sidebar-toggle-btn:hover {
  background: #f1f5f9 !important;
  color: #082046 !important;
}

#main-app .admin-breadcrumb-divider {
  width: 1px !important;
  height: 18px !important;
  background: #e2e8f0 !important;
  display: inline-block !important;
}

#main-app .admin-breadcrumb-trail {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-size: 0.85rem !important;
}

#main-app .breadcrumb-root {
  color: #64748b !important;
  font-weight: 500 !important;
}

#main-app .breadcrumb-current {
  color: #0f172a !important;
  font-weight: 700 !important;
}

#main-app .admin-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

#main-app .admin-role-switcher-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0.32rem 0.7rem !important;
  border-radius: 99px !important;
}

#main-app .admin-top-icon-btn {
  height: 34px !important;
  padding: 0 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.38rem !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#main-app .admin-top-icon-btn:hover {
  background: #f1f5f9 !important;
}

#main-app .admin-top-action-btn {
  height: 34px !important;
  padding: 0 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  cursor: pointer !important;
}

#main-app .admin-top-action-btn.warn {
  color: #d97706 !important;
  border-color: #fde68a !important;
  background: #fffbeb !important;
}

#main-app .admin-top-action-btn.danger {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

#main-app .admin-top-action-btn.logout {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

/* 3. EXECUTIVE DEEP NAVY HERO BANNER (Clean Professional Styling) */
#main-app .admin-ref-hero-banner {
  background: linear-gradient(180deg, #061a38 0%, #09254e 65%, #0c3166 100%) !important;
  padding: 1.75rem 2rem 1.75rem !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

#main-app .admin-ref-hero-banner.compact-hero {
  padding: 1.25rem 2rem 1.25rem !important;
}

#main-app .admin-ref-hero-banner.compact-hero .admin-ref-insight-box {
  display: none !important;
}

#main-app .admin-ref-hero-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
}

#main-app .admin-ref-hero-left {
  flex: 1 !important;
  min-width: 280px !important;
}

#main-app .admin-ref-date {
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500 !important;
  margin-bottom: 0.25rem !important;
}

#main-app .admin-ref-greeting {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 1.15rem 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

#main-app .admin-ref-hero-banner.compact-hero .admin-ref-greeting {
  margin-bottom: 0 !important;
  font-size: 1.55rem !important;
}

/* Frosted Translucent Quote / Insight Card inside Hero Banner */
#main-app .admin-ref-insight-box {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 0.85rem !important;
  padding: 1rem 1.15rem !important;
  max-width: 560px !important;
  position: relative !important;
}

#main-app .insight-quote-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #93c5fd !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#main-app .insight-quote-body {
  flex: 1 !important;
  min-width: 0 !important;
}

#main-app .insight-quote-body p {
  margin: 0 0 0.45rem 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-style: italic !important;
}

#main-app .insight-quote-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.73rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 500 !important;
}

#main-app .insight-refresh-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

#main-app .insight-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Top-Right Hero Controls (White Unit Select Pill + Translucent Date Range Pill + Sync Circle) */
#main-app .admin-ref-hero-right {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-wrap: wrap !important;
}

#main-app .admin-ref-unit-pill {
  background: #ffffff !important;
  border-radius: 99px !important;
  padding: 0.48rem 1rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
}

#main-app .admin-ref-unit-pill select {
  border: none !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  padding-right: 0.35rem !important;
}

#main-app .admin-ref-date-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 99px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

#main-app .admin-ref-sync-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#main-app .admin-ref-sync-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* 4. BALANCED EXECUTIVE KPI CARDS (Clean Grid, Zero Overlap) */
#main-app .admin-ref-kpi-section {
  margin-top: 1.25rem !important;
  padding: 0 2rem !important;
  position: relative !important;
  z-index: 10 !important;
  margin-bottom: 1.75rem !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#main-app .admin-ref-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
}

#main-app .admin-section-kpi-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#main-app .ref-kpi-card {
  position: relative !important;
  border-radius: 0.85rem !important;
  padding: 1.15rem 1.25rem !important;
  min-height: 112px !important;
  color: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#main-app .ref-kpi-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
}

/* Exact Reference Card Color Palette */
#main-app .ref-kpi-card.theme-navy {
  background: linear-gradient(135deg, #06214d 0%, #0b2e69 100%) !important;
}
#main-app .ref-kpi-card.theme-purple {
  background: linear-gradient(135deg, #6e2f78 0%, #823a8e 100%) !important;
}
#main-app .ref-kpi-card.theme-indigo {
  background: linear-gradient(135deg, #444a91 0%, #5359a8 100%) !important;
}
#main-app .ref-kpi-card.theme-teal {
  background: linear-gradient(135deg, #08695a 0%, #0e7d6c 100%) !important;
}
#main-app .ref-kpi-card.theme-navy-dark {
  background: linear-gradient(135deg, #061f47 0%, #0a2b61 100%) !important;
}
#main-app .ref-kpi-card.theme-ROYAL,
#main-app .ref-kpi-card.theme-royal {
  background: linear-gradient(135deg, #474d94 0%, #575eb0 100%) !important;
}
#main-app .ref-kpi-card.theme-emerald {
  background: linear-gradient(135deg, #096859 0%, #0f7d6c 100%) !important;
}
#main-app .ref-kpi-card.theme-plum {
  background: linear-gradient(135deg, #70317a 0%, #853c91 100%) !important;
}
#main-app .ref-kpi-card.theme-amber {
  background: linear-gradient(135deg, #cf8708 0%, #e09612 100%) !important;
}
#main-app .ref-kpi-card.theme-steel {
  background: linear-gradient(135deg, #1b5c78 0%, #236e8e 100%) !important;
}

#main-app .ref-kpi-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#main-app .ref-kpi-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

#main-app .ref-kpi-value {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin: 0.1rem 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#main-app .ref-kpi-sub {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500 !important;
  padding-right: 1.25rem !important;
  word-break: break-word !important;
  line-height: 1.35 !important;
}

/* Large Watermarked Icon on Right of KPI Card (Matches both <i> and <svg class="ref-kpi-watermark">) */
#main-app .ref-kpi-watermark,
#main-app svg.ref-kpi-watermark,
#main-app i.ref-kpi-watermark {
  position: absolute !important;
  right: -4px !important;
  bottom: -4px !important;
  width: 68px !important;
  height: 68px !important;
  stroke-width: 1.5 !important;
  color: #ffffff !important;
  opacity: 0.14 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#main-app .ref-kpi-view-link {
  position: absolute !important;
  right: 1rem !important;
  bottom: 0.75rem !important;
  z-index: 3 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 5. MAIN BODY WORKSPACE & CLEAN SECTIONS (Zero Box/Card Constraints) */
#main-app main.admin-main-body {
  padding: 1.75rem 2rem 3.5rem !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  flex: 1 !important;
}

#main-app .admin-section-clean {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#main-app .admin-clean-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1.15rem !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

#main-app .admin-group-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
  color: #0f172a !important;
}

#main-app .admin-group-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1.25rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

#main-app .admin-group-eyebrow {
  display: block !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #2563eb !important;
  margin-bottom: 0.2rem !important;
}

#main-app .admin-group-title {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

#main-app .admin-group-title i,
#main-app .admin-group-title svg {
  width: 20px !important;
  height: 20px !important;
  color: #082046 !important;
}

#main-app .admin-group-count-badge {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 99px !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
}

/* 6. ADVANCE SUB-NAVIGATION TABS (.admin-advance-subtabs) */
#main-app .admin-advance-subtabs {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  background: #ffffff !important;
  padding: 0.5rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 1.25rem !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

#main-app .adv-subtab-btn {
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 0.6rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: all 0.16s ease !important;
}

#main-app .adv-subtab-btn i,
#main-app .adv-subtab-btn svg {
  width: 15px !important;
  height: 15px !important;
}

#main-app .adv-subtab-btn:hover {
  background: #f1f5f9 !important;
  color: #082046 !important;
}

#main-app .adv-subtab-btn.active {
  background: #082046 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(8, 32, 70, 0.18) !important;
}

#main-app .adv-subtab-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 0.1rem 0.45rem !important;
  border-radius: 99px !important;
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

#main-app .adv-subtab-btn.active .adv-subtab-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* 7. VIRTUAL DEBIT CARDS FOR SALARY ADVANCE (.virtual-debit-card-unit & .virtual-debit-card) */
#main-app .admin-debit-cards-showcase-grid,
.virtual-debit-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(330px, 360px)) !important;
  gap: 1.35rem !important;
  justify-content: start !important;
  align-items: start !important;
}

.virtual-debit-card-unit {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 32px -8px rgba(2, 6, 23, 0.28) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.virtual-debit-card-unit:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 42px -8px rgba(2, 6, 23, 0.38) !important;
}

/* Authentic Physical Debit Card (Standard ISO/IEC 7810 ID-1 proportions) */
.virtual-debit-card {
  width: 100% !important;
  max-width: 360px !important;
  height: 224px !important;
  aspect-ratio: 1.586 / 1 !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #070d1d 0%, #152449 52%, #0a1329 100%) !important;
  color: #ffffff !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 1.15rem 1.35rem 1.05rem !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 2px 4px rgba(255, 255, 255, 0.1) inset !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.virtual-debit-card.settled-card {
  background: linear-gradient(135deg, #052e24 0%, #064e3b 50%, #043d2e 100%) !important;
}

.virtual-debit-card.waiting-confirm-card {
  background: linear-gradient(135deg, #18153d 0%, #312e81 50%, #1e1b4b 100%) !important;
}

.vdc-gloss-overlay {
  position: absolute !important;
  top: -50% !important;
  right: -20% !important;
  width: 120% !important;
  height: 120% !important;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%) !important;
  pointer-events: none !important;
}

.vdc-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.vdc-bank-col {
  display: flex !important;
  flex-direction: column !important;
}

.vdc-bank-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
}

.vdc-card-type-sub {
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

.vdc-top-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.vdc-contactless-wave {
  color: rgba(255, 255, 255, 0.85) !important;
  display: flex !important;
  align-items: center !important;
}

.vdc-chip-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.vdc-emv-chip {
  width: 36px !important;
  height: 26px !important;
  border-radius: 4px !important;
  background: linear-gradient(135deg, #fef08a 0%, #d97706 70%, #b45309 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.vdc-emv-chip .chip-line.h-line {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(146, 64, 14, 0.55) !important;
}

.vdc-emv-chip .chip-line.v-line {
  position: absolute !important;
  left: 45% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  background: rgba(146, 64, 14, 0.55) !important;
}

.vdc-platform-pill {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 0.12rem 0.5rem !important;
  border-radius: 99px !important;
  letter-spacing: 0.3px !important;
}

.vdc-card-balance-badge {
  margin-left: auto !important;
  font-size: 0.74rem !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  border-radius: 6px !important;
  padding: 0.15rem 0.5rem !important;
}

.vdc-status-badge {
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.vdc-status-badge.badge-settled {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.vdc-card-digits {
  font-family: 'Space Grotesk', 'Courier New', monospace !important;
  font-size: 1.05rem !important;
  letter-spacing: 3px !important;
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 2 !important;
  margin: 0.2rem 0 !important;
}

.vdc-holder-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  position: relative !important;
  z-index: 2 !important;
}

.vdc-meta-sub {
  display: block !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
}

.vdc-holder-name {
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  max-width: 170px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.vdc-expiry-val {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.vdc-network-logo {
  display: flex !important;
  align-items: center !important;
}

.vdc-network-logo .circle {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
}

.vdc-network-logo .circle-left {
  background: #ea580c !important;
  opacity: 0.9 !important;
  margin-right: -7px !important;
}

.vdc-network-logo .circle-right {
  background: #f59e0b !important;
  opacity: 0.85 !important;
}

/* Companion Action & Repayment Drawer (Directly under the card) */
.vdc-companion-drawer {
  background: #f8fafc !important;
  padding: 0.85rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  border-top: 1px solid #e2e8f0 !important;
}

.vdc-companion-drawer .vdc-metrics-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.4rem !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.45rem 0.5rem !important;
}

.vdc-companion-drawer .vdc-metric-col {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

.vdc-companion-drawer .vdc-metric-label {
  font-size: 0.6rem !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  font-weight: 700 !important;
}

.vdc-companion-drawer .vdc-metric-val {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.vdc-companion-drawer .vdc-metric-val.paid-tone { color: #059669 !important; }
.vdc-companion-drawer .vdc-metric-val.rem-tone { color: #d97706 !important; }

.vdc-companion-drawer .vdc-progress-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.vdc-companion-drawer .vdc-progress-meta {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.68rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.vdc-companion-drawer .vdc-progress-track {
  width: 100% !important;
  height: 6px !important;
  background: #e2e8f0 !important;
  border-radius: 99px !important;
  overflow: hidden !important;
}

.vdc-companion-drawer .vdc-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #10b981, #059669) !important;
  border-radius: 99px !important;
}

.vdc-companion-drawer .vdc-actions-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  margin-top: 0.15rem !important;
}

.inline-rider-debit-mini {
  margin-top: 0.45rem !important;
  background: linear-gradient(135deg, #082046 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-radius: 0.6rem !important;
  padding: 0.4rem 0.65rem !important;
  font-size: 0.72rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  flex-wrap: wrap !important;
}

/* 8. FINANCE & GM CHAT ARENA (.finance-gm-chat-layout) */
#main-app .finance-gm-chat-layout {
  display: grid !important;
  grid-template-columns: 1fr 310px !important;
  gap: 1.25rem !important;
  min-height: 460px !important;
}

#main-app .finance-gm-chat-main {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.9rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#main-app .ref-kpi-card.cursor-pointer {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#main-app .ref-kpi-card.active-filter {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22) !important;
  transform: translateY(-2px) !important;
}

#main-app .finance-gm-chat-messages {
  flex: 1 !important;
  max-height: 420px !important;
  min-height: 320px !important;
  overflow-y: auto !important;
  padding: 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  background: #dfe7ed radial-gradient(#cbd8e3 1px, transparent 1px) !important;
  background-size: 16px 16px !important;
}

/* Telegram Style Bubble Layout */
#main-app .tg-bubble-row {
  display: flex !important;
  align-items: flex-end !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

#main-app .tg-bubble-row.tg-outgoing {
  justify-content: flex-end !important;
}

#main-app .tg-bubble-row.tg-incoming {
  justify-content: flex-start !important;
}

#main-app .tg-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

#main-app .tg-avatar.avatar-akhil {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

#main-app .tg-avatar.avatar-hossein {
  background: linear-gradient(135deg, #7c3aed, #4c1d95) !important;
}

#main-app .tg-avatar.avatar-admin {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
}

#main-app .tg-bubble-card {
  max-width: 78% !important;
  padding: 0.6rem 0.85rem 0.45rem 0.85rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
  position: relative !important;
}

#main-app .tg-outgoing .tg-bubble-card {
  background: #effdde !important;
  color: #0f172a !important;
  border-radius: 14px 14px 2px 14px !important;
  border: 1px solid #d4ebb8 !important;
}

#main-app .tg-incoming .tg-bubble-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 14px 14px 14px 2px !important;
  border: 1px solid #e2e8f0 !important;
}

#main-app .tg-sender-title {
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

#main-app .tg-sender-title.title-akhil {
  color: #0369a1 !important;
}

#main-app .tg-sender-title.title-hossein {
  color: #6d28d9 !important;
}

#main-app .tg-sender-title.title-admin {
  color: #0f172a !important;
}

#main-app .tg-msg-tag-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  background: rgba(15, 23, 42, 0.06) !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 99px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 0.3rem !important;
}

#main-app .tg-msg-content {
  word-break: break-word !important;
  color: #0f172a !important;
}

#main-app .tg-meta-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.68rem !important;
  color: #64748b !important;
  margin-top: 0.25rem !important;
}

#main-app .tg-checkmarks {
  color: #2563eb !important;
  font-weight: 900 !important;
  letter-spacing: -1.5px !important;
  font-size: 0.78rem !important;
}

#main-app .finance-gm-quick-chips {
  display: flex !important;
  gap: 0.45rem !important;
  flex-wrap: wrap !important;
  padding: 0.6rem 0.9rem !important;
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
}

#main-app .chat-quick-chip {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  padding: 0.28rem 0.65rem !important;
  border-radius: 99px !important;
  cursor: pointer !important;
}

#main-app .chat-quick-chip:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}

#main-app .finance-gm-chat-composer {
  padding: 0.85rem 1rem !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
}

#main-app .chat-composer-top-row,
#main-app .chat-composer-input-row {
  display: flex !important;
  gap: 0.55rem !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

#main-app .finance-gm-chat-sidepanel {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.9rem !important;
  padding: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

#main-app .chat-sidepanel-header h4 {
  margin: 0 0 0.2rem 0 !important;
  font-size: 0.9rem !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

#main-app .chat-sidepanel-queue-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  max-height: 410px !important;
  overflow-y: auto !important;
}

.chat-bubble-row {
  display: flex !important;
  flex-direction: column !important;
  max-width: 82% !important;
}

.chat-bubble-row.role-gm {
  align-self: flex-end !important;
  align-items: flex-end !important;
}

.chat-bubble-row.role-finance {
  align-self: flex-start !important;
  align-items: flex-start !important;
}

.chat-bubble-row.role-admin {
  align-self: center !important;
  max-width: 90% !important;
}

.chat-bubble-card {
  padding: 0.7rem 0.95rem !important;
  border-radius: 0.85rem !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

.chat-bubble-row.role-gm .chat-bubble-card {
  background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
  color: #ffffff !important;
}

.chat-bubble-row.role-finance .chat-bubble-card {
  background: #082046 !important;
  color: #ffffff !important;
}

.chat-bubble-row.role-admin .chat-bubble-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.chat-bubble-meta {
  font-size: 0.69rem !important;
  color: #64748b !important;
  margin-bottom: 0.2rem !important;
  font-weight: 700 !important;
}

#main-app .admin-workspace-footer {
  padding: 1.25rem 2.25rem !important;
  text-align: center !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: auto !important;
}

@media (max-width: 1024px) {
  #main-app .admin-workspace-footer {
    padding-bottom: 5.5rem !important;
  }
}

/* 9. RESPONSIVE MEDIA QUERIES (Desktop, Tablet & Mobile) */
@media (max-width: 1400px) and (min-width: 1025px) {
  #main-app .admin-ref-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  #main-app .admin-ref-kpi-grid,
  #main-app .admin-section-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #main-app .admin-left-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    margin-left: 0 !important;
    transform: translateX(-105%) !important;
    z-index: 2600 !important;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #main-app .admin-left-sidebar.mobile-open,
  #main-app .admin-left-sidebar.open {
    transform: translateX(0) !important;
  }

  #main-app .admin-left-sidebar.sidebar-collapsed:not(.mobile-open):not(.open) {
    transform: translateX(-105%) !important;
  }

  #main-app .admin-main-workspace {
    width: 100% !important;
    max-width: 100% !important;
  }

  #main-app .admin-sidebar-close-mob {
    display: inline-flex !important;
  }

  #main-app .admin-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 2550 !important;
    transition: opacity 0.25s ease !important;
  }

  #main-app .admin-sidebar-backdrop.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #main-app .finance-gm-chat-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 0px) /* legacy mobile superseded by modern design system */ {
  #main-app .admin-top-breadcrumb-bar {
    padding: 0.6rem 0.75rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    min-height: auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  #main-app .admin-breadcrumb-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }

  #main-app .global-search-wrapper {
    max-width: 100% !important;
    margin: 0.25rem 0 !important;
    order: 3 !important;
    width: 100% !important;
  }

  /* Fully Scrollable & Accessible Top Actions on Mobile */
  #main-app .admin-top-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.35rem !important;
    width: 100% !important;
    order: 2 !important;
    padding-bottom: 4px !important;
  }

  #main-app .admin-top-actions::-webkit-scrollbar {
    display: none !important;
  }

  #main-app .admin-role-switcher-pill {
    flex-shrink: 0 !important;
    height: 32px !important;
    padding: 0.25rem 0.6rem !important;
  }

  #main-app .admin-top-action-btn,
  #main-app .admin-top-icon-btn {
    flex-shrink: 0 !important;
    height: 32px !important;
    padding: 0 0.55rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  #main-app .admin-ref-hero-banner {
    padding: 1.15rem 0.85rem 1.35rem !important;
    border-radius: 0 0 1rem 1rem !important;
  }

  #main-app .admin-ref-greeting {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.65rem !important;
  }

  #main-app .admin-ref-hero-right {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  #main-app .admin-ref-unit-pill select {
    width: 100% !important;
    padding: 0.45rem 0.65rem !important;
  }

  /* 2-Column High-Contrast Legible KPI Cards on Mobile */
  #main-app .admin-ref-kpi-section {
    padding: 0 0.75rem !important;
    margin-top: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  #main-app .admin-ref-kpi-grid,
  #main-app .admin-section-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  #main-app .ref-kpi-card {
    padding: 0.75rem 0.65rem 1.65rem !important;
    min-height: 100px !important;
    border-radius: 10px !important;
    overflow: visible !important;
    position: relative !important;
  }

  #main-app .ref-kpi-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0.15rem 0 !important;
  }

  #main-app .ref-kpi-label {
    font-size: 0.6rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.25 !important;
  }

  #main-app .ref-kpi-sub {
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.25 !important;
    padding-right: 0 !important;
  }

  #main-app .ref-kpi-view-link {
    position: absolute !important;
    bottom: 0.35rem !important;
    right: 0.5rem !important;
    background: rgba(255, 255, 255, 0.22) !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  #main-app .ref-kpi-watermark,
  #main-app svg.ref-kpi-watermark,
  #main-app i.ref-kpi-watermark {
    width: 48px !important;
    height: 48px !important;
    opacity: 0.08 !important;
  }

  /* Safe Bottom Dock Clearance */
  #main-app main.admin-main-body {
    padding: 0.75rem 0.65rem 95px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Platform Selection Cards Single Column on Mobile */
  #main-app .category-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Filter bars swipeable horizontally */
  #main-app .advance-filter-bar,
  #main-app .admin-filter-bar,
  #main-app .filter-bar,
  #main-app .admin-sub-tabs,
  #main-app .admin-ref-pills-row,
  #main-app .admin-clean-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.4rem !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  #main-app .admin-debit-cards-showcase-grid,
  #main-app .virtual-debit-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  #main-app .virtual-debit-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 0.85rem !important;
  }

  #main-app .admin-group-card {
    margin-bottom: 0.85rem !important;
    border-radius: 0.75rem !important;
  }

  #main-app .admin-group-card .card-body,
  #main-app .admin-group-card .group-card-body {
    padding: 0.75rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Tables horizontally scrollable without clipping */
  #main-app .table-wrapper,
  #main-app .table-container,
  #main-app .data-table-container,
  #main-app .table-responsive,
  #main-app table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #main-app table th,
  #main-app table td {
    white-space: nowrap !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 0px) /* legacy mobile superseded */ {
  #main-app .admin-ref-kpi-grid,
  #main-app .admin-section-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }
}

/* ========================================================================== */
/* EXACT GOOGLE CHAT EXECUTIVE WORKSPACE (PIXEL-PERFECT REFERENCE MATCH)      */
/* ========================================================================== */
#admin-chat-view.hidden,
#admin-chat-view[hidden],
#main-app #admin-chat-view.hidden {
  display: none !important;
}

#admin-chat-view:not(.hidden) {
  width: 100% !important;
  height: calc(100vh - 85px) !important;
  min-height: calc(100vh - 85px) !important;
  max-height: calc(100vh - 85px) !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* ========================================================================= */
/* FINANCE & GM FULLSCREEN EXECUTIVE CHAT ARENA                              */
/* ========================================================================= */

.fgm-chat-fullscreen-wrapper {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.fgm-chat-header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 1.5rem !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  z-index: 20 !important;
}

.fgm-chat-header-info {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.fgm-chat-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.fgm-chat-badge-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #eff6ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.fgm-chat-title {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.fgm-chat-subtitle {
  margin: 2px 0 0 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
}

.fgm-chat-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.fgm-active-persona-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.fgm-persona-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
}

.fgm-header-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fgm-header-action-btn:hover {
  background: #dbeafe !important;
}

.fgm-counter-badge {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
}

.fgm-header-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fgm-header-icon-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.fgm-chat-main-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: calc(100% - 64px) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Left Sidebar (Active Users & Groups) */
.fgm-chat-left-sidebar {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 15 !important;
}

.fgm-sidebar-header {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
}

.fgm-create-group-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fgm-create-group-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.fgm-sidebar-scroll-list {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0.5rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.fgm-sidebar-section {
  padding: 0.35rem 0 !important;
}

.fgm-sidebar-section-title {
  padding: 0.35rem 1rem !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
}

.fgm-channel-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0.6rem 1rem !important;
  cursor: pointer !important;
  border-left: 3px solid transparent !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
}

.fgm-channel-row:hover {
  background: #f8fafc !important;
}

.fgm-channel-row.active {
  background: #eff6ff !important;
  border-left-color: #2563eb !important;
}

.fgm-channel-row.active .fgm-channel-title {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

.fgm-avatar-wrap {
  position: relative !important;
  width: 34px !important;
  height: 34px !important;
  flex-shrink: 0 !important;
}

.fgm-avatar-circle {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  color: #ffffff !important;
}

.fgm-active-dot-live {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7) !important;
}

.fgm-channel-info {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.fgm-channel-title {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fgm-channel-sub {
  font-size: 0.72rem !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fgm-chat-canvas-wrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.fgm-chat-messages-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 1.5rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  background: #ffffff !important;
}

.fgm-chat-composer-bar {
  flex-shrink: 0 !important;
  padding: 0.85rem 1.5rem !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03) !important;
  z-index: 30 !important;
  position: relative !important;
}

.fgm-composer-form {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
}

.fgm-composer-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.fgm-composer-tool-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.fgm-composer-input-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.fgm-composer-input-wrap input {
  width: 100% !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  outline: none !important;
  background: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.fgm-composer-input-wrap input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.fgm-composer-send-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0.65rem 1.35rem !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}

.fgm-composer-send-btn:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
}

/* Emoji Palette */
.fgm-emoji-palette {
  position: absolute !important;
  bottom: 65px !important;
  left: 24px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex !important;
  gap: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  z-index: 100 !important;
}

.fgm-emoji-palette.hidden {
  display: none !important;
}

.fgm-emoji-btn {
  background: transparent !important;
  border: none !important;
  font-size: 1.35rem !important;
  cursor: pointer !important;
  padding: 2px !important;
  border-radius: 6px !important;
  transition: transform 0.12s ease !important;
}

.fgm-emoji-btn:hover {
  transform: scale(1.25) !important;
}

/* Advance Mentions Drawer */
.fgm-advances-drawer {
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 25 !important;
}

.fgm-advances-drawer.hidden {
  display: none !important;
}

.fgm-drawer-header {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.fgm-drawer-title {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.fgm-drawer-sub {
  margin: 2px 0 0 0 !important;
  font-size: 0.78rem !important;
  color: #64748b !important;
}

.fgm-drawer-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 1.1rem !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
}

.fgm-drawer-search-wrap {
  padding: 0.75rem 1rem !important;
  position: relative !important;
}

.fgm-drawer-search-wrap i {
  position: absolute !important;
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.fgm-drawer-search-wrap input {
  width: 100% !important;
  padding: 0.45rem 0.75rem 0.45rem 2.2rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  outline: none !important;
  background: #f8fafc !important;
}

.fgm-drawer-pills {
  display: flex !important;
  gap: 0.35rem !important;
  padding: 0 1rem 0.6rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.fgm-pill {
  padding: 0.3rem 0.65rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
}

.fgm-pill.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  font-weight: 700 !important;
}

.fgm-drawer-list {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

/* ========================================================================= */
/* GOOGLE CHAT EXECUTIVE WORKSPACE (PIXEL-PERFECT REFERENCE MATCH)           */
/* ========================================================================= */

.gchat-workspace-shell {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 1. TOP APP BAR & BRAND HEADER */
.gchat-app-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 1.25rem !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  z-index: 20 !important;
}

.gchat-brand-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 240px !important;
}

.gchat-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.gchat-logo-text {
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  color: #202124 !important;
  letter-spacing: -0.3px !important;
}

.gchat-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px !important;
  border-radius: 16px !important;
  background: #e6f4ea !important;
  border: 1px solid #ceead6 !important;
  color: #137333 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.gchat-status-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #188038 !important;
}

.gchat-active-channel-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.gchat-channel-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.gchat-channel-title {
  margin: 0 !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: #202124 !important;
  line-height: 1.25 !important;
}

.gchat-channel-chevron {
  width: 16px !important;
  height: 16px !important;
  color: #5f6368 !important;
}

.gchat-channel-members {
  margin: 1px 0 0 0 !important;
  font-size: 0.78rem !important;
  color: #5f6368 !important;
}

.gchat-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.gchat-header-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.15s ease !important;
}

.gchat-btn-tasks {
  background: #e8f0fe !important;
  color: #1967d2 !important;
  border-color: #d2e3fc !important;
}

.gchat-btn-tasks:hover {
  background: #d2e3fc !important;
}

.gchat-task-badge {
  background: #1a73e8 !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
}

.gchat-btn-video {
  background: #e6f4ea !important;
  color: #137333 !important;
  border-color: #ceead6 !important;
}

.gchat-btn-video:hover {
  background: #ceead6 !important;
}

.gchat-header-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  color: #5f6368 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.gchat-header-icon-btn:hover {
  background: #f1f3f4 !important;
  color: #202124 !important;
}

.gchat-user-profile-badge {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #5f6368 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}

.gchat-in-chat-search-bar {
  padding: 0.6rem 1.5rem !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e0e0e0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.gchat-in-chat-search-bar input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 0.9rem !important;
  color: #202124 !important;
}

.gchat-search-close-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #5f6368 !important;
  font-size: 1.15rem !important;
  font-weight: bold !important;
}

/* 2. MAIN BODY & LEFT SIDEBAR */
.gchat-main-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: calc(100% - 60px) !important;
  overflow: hidden !important;
  position: relative !important;
}

.gchat-sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-right: 1px solid #e0e0e0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 15 !important;
}

.gchat-search-box-wrap {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #f1f3f4 !important;
}

.gchat-search-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f1f3f4 !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

.gchat-search-box:focus-within {
  background: #ffffff !important;
  border-color: #dadce0 !important;
  box-shadow: 0 1px 3px rgba(60,64,67,0.15) !important;
}

.gchat-search-box input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 0.88rem !important;
  color: #202124 !important;
  width: 100% !important;
}

.gchat-sidebar-scroll {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0.5rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.gchat-section {
  margin-bottom: 0.5rem !important;
}

.gchat-section-header {
  padding: 0.4rem 1rem 0.3rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #5f6368 !important;
  letter-spacing: 0.5px !important;
}

.gchat-add-room-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 50% !important;
}

.gchat-add-room-btn:hover {
  background: #f1f3f4 !important;
}

.gchat-channel-list {
  display: flex !important;
  flex-direction: column !important;
}

.gchat-channel-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0.45rem 1rem !important;
  cursor: pointer !important;
  border-radius: 0 20px 20px 0 !important;
  margin-right: 8px !important;
  transition: background 0.12s ease !important;
}

.gchat-channel-row:hover {
  background: #f1f3f4 !important;
}

.gchat-channel-row.active {
  background: #e8f0fe !important;
}

.gchat-channel-row.active .gchat-channel-name {
  color: #1967d2 !important;
  font-weight: 700 !important;
}

.gchat-channel-avatar-wrap {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
}

.gchat-channel-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  color: #ffffff !important;
}

.gchat-active-indicator {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #188038 !important;
  border: 2px solid #ffffff !important;
}

.gchat-channel-meta {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.gchat-channel-name {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #202124 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gchat-channel-snippet {
  font-size: 0.72rem !important;
  color: #5f6368 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 3. MESSAGES CANVAS & CHAT FEED */
.gchat-canvas-wrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.gchat-messages-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 1.5rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

/* Google Chat Clean Message Row */
.gchat-msg-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  max-width: 860px !important;
}

.gchat-msg-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: #1a73e8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.gchat-msg-content {
  flex: 1 !important;
}

.gchat-msg-header {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-bottom: 3px !important;
}

.gchat-msg-sender {
  font-weight: 700 !important;
  color: #202124 !important;
  font-size: 0.92rem !important;
}

.gchat-msg-role-pill {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  background: #f1f3f4 !important;
  color: #5f6368 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

.gchat-msg-time {
  font-size: 0.75rem !important;
  color: #5f6368 !important;
}

.gchat-msg-text {
  font-size: 0.93rem !important;
  color: #202124 !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}

/* 4. GOOGLE CHAT ATTACHMENT CARD PREVIEW (Matching 2020 Sales Report in Reference) */
.gchat-card-attachment {
  margin-top: 0.6rem !important;
  max-width: 440px !important;
}

.gchat-doc-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #dadce0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(60,64,67,0.08) !important;
  transition: all 0.15s ease !important;
}

.gchat-doc-card:hover {
  background: #f8fafc !important;
  border-color: #1a73e8 !important;
  box-shadow: 0 2px 6px rgba(60,64,67,0.15) !important;
}

.gchat-doc-icon-wrap {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.gchat-doc-icon-wrap.excel {
  background: #e6f4ea !important;
  color: #137333 !important;
}

.gchat-doc-icon-wrap.pdf {
  background: #fce8e6 !important;
  color: #c5221f !important;
}

.gchat-doc-icon-wrap.doc {
  background: #e8f0fe !important;
  color: #1967d2 !important;
}

.gchat-doc-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.gchat-doc-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #202124 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gchat-doc-sub {
  font-size: 0.74rem !important;
  color: #5f6368 !important;
}

.gchat-doc-action {
  color: #5f6368 !important;
  display: flex !important;
  align-items: center !important;
}

.gchat-img-preview {
  max-width: 320px !important;
  max-height: 240px !important;
  border-radius: 8px !important;
  border: 1px solid #dadce0 !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(60,64,67,0.1) !important;
}

/* Reactions Row */
.gchat-reactions-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.gchat-reaction-btn {
  background: #f1f3f4 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 12px !important;
  padding: 2px 8px !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #202124 !important;
  transition: all 0.15s ease !important;
}

.gchat-reaction-btn:hover {
  background: #e8f0fe !important;
  border-color: #1a73e8 !important;
}

/* 5. UNIFIED PILL COMPOSER (EXACT GOOGLE CHAT PILL) */
.gchat-composer-bar {
  flex-shrink: 0 !important;
  padding: 0.75rem 1.75rem 1.25rem 1.75rem !important;
  background: #ffffff !important;
  border-top: none !important;
  position: relative !important;
}

.gchat-composer-form {
  width: 100% !important;
}

.gchat-pill-input-box {
  background: #ffffff !important;
  border: 1px solid #dadce0 !important;
  border-radius: 28px !important;
  min-height: 48px !important;
  padding: 4px 10px 4px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 3px rgba(60,64,67,0.08) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.gchat-pill-input-box:focus-within {
  border-color: #1a73e8 !important;
  box-shadow: 0 1px 6px rgba(26,115,232,0.25) !important;
}

.gchat-input-field {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 0.95rem !important;
  color: #202124 !important;
}

.gchat-input-field::placeholder {
  color: #70757a !important;
}

.gchat-pill-tools {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.gchat-pill-btn {
  background: transparent !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.gchat-pill-btn:hover {
  background: #f1f3f4 !important;
}

.gchat-pill-send-btn {
  background: #1a73e8 !important;
  color: #ffffff !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(26,115,232,0.3) !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}

.gchat-pill-send-btn:hover {
  background: #1557b0 !important;
  transform: scale(1.04) !important;
}

/* Floating Emoji Palette */
.gchat-emoji-palette {
  position: absolute !important;
  bottom: 70px !important;
  right: 60px !important;
  background: #ffffff !important;
  border: 1px solid #dadce0 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 6px !important;
  box-shadow: 0 4px 16px rgba(60,64,67,0.2) !important;
  z-index: 100 !important;
}

.gchat-emoji-palette.hidden {
  display: none !important;
}

.gchat-emoji-btn {
  background: none !important;
  border: none !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 6px !important;
  transition: transform 0.12s ease !important;
}

.gchat-emoji-btn:hover {
  transform: scale(1.25) !important;
  background: #f1f3f4 !important;
}

/* 6. TASKS & ADVANCE DECISIONS RIGHT DRAWER */
.gchat-tasks-drawer {
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-left: 1px solid #e0e0e0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 25 !important;
}

.gchat-tasks-drawer.hidden {
  display: none !important;
}

.gchat-drawer-header {
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.gchat-drawer-title {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #202124 !important;
}

.gchat-drawer-sub {
  margin: 2px 0 0 0 !important;
  font-size: 0.78rem !important;
  color: #5f6368 !important;
}

.gchat-drawer-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 1.2rem !important;
  color: #5f6368 !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
}

.gchat-drawer-search-wrap {
  padding: 0.75rem 1rem !important;
}

.gchat-drawer-search-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f1f3f4 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}

.gchat-drawer-search-box input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 0.85rem !important;
  width: 100% !important;
  color: #202124 !important;
}

.gchat-drawer-pills {
  display: flex !important;
  gap: 6px !important;
  padding: 0 1rem 0.75rem 1rem !important;
  border-bottom: 1px solid #f1f3f4 !important;
}

.gchat-pill {
  padding: 4px 10px !important;
  border-radius: 14px !important;
  background: #f1f3f4 !important;
  border: 1px solid transparent !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #5f6368 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.gchat-pill.active {
  background: #e8f0fe !important;
  color: #1967d2 !important;
  border-color: #d2e3fc !important;
}

.gchat-drawer-list {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

/* Modals */
.fgm-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
}

.fgm-modal-backdrop.hidden {
  display: none !important;
}

.fgm-modal-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  width: 90% !important;
  max-width: 480px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

.fgm-modal-header {
  padding: 1.1rem 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.fgm-modal-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 1.15rem !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 4px !important;
}

/* ==========================================================================
   TASSLIM ITALICIZED BRAND WATERMARK & ULTRA-PREMIUM PURE BLACK DARK MODE
   ========================================================================== */

/* 1. Subtle Repeating Italicized Tasslim Watermark Pattern across Dashboard */
#main-app,
.admin-ref-app-layout,
.app-container {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(11, 33, 73, 0.025) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.025) 0px, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'><text x='50%' y='50%' font-size='24' font-family='sans-serif' font-weight='900' font-style='italic' fill='%230b2149' fill-opacity='0.024' text-anchor='middle' dominant-baseline='middle' transform='rotate(-22 160 80)'>TASSLIM</text></svg>") !important;
  background-repeat: repeat !important;
}

/* 2. PURE BLACK DARK MODE (Complete Visibility & Contrast) */
body.dark-mode {
  background-color: #000000 !important;
  color: #f8fafc !important;
}

body.dark-mode #main-app,
body.dark-mode .admin-ref-app-layout,
body.dark-mode .app-container {
  background-color: #000000 !important;
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'><text x='50%' y='50%' font-size='24' font-family='sans-serif' font-weight='900' font-style='italic' fill='%23ffffff' fill-opacity='0.035' text-anchor='middle' dominant-baseline='middle' transform='rotate(-22 160 80)'>TASSLIM</text></svg>") !important;
  background-repeat: repeat !important;
}

/* Header & Top Bars in Dark Mode */
body.dark-mode .admin-ref-top-header {
  background: #000000 !important;
  border-bottom: 1px solid #1e293b !important;
}

body.dark-mode .admin-breadcrumb,
body.dark-mode .admin-breadcrumb strong,
body.dark-mode .admin-top-action-btn,
body.dark-mode .admin-role-switcher-pill {
  color: #f8fafc !important;
}

body.dark-mode .admin-top-action-btn,
body.dark-mode .admin-top-icon-btn,
body.dark-mode .admin-role-switcher-pill {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-mode .admin-role-switcher-pill select {
  color: #f8fafc !important;
  background: #0f172a !important;
}

body.dark-mode .search-box {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-mode .search-box input {
  color: #ffffff !important;
}

body.dark-mode .search-box input::placeholder {
  color: #94a3b8 !important;
}

/* Hero Banner in Dark Mode */
body.dark-mode .admin-ref-hero-banner {
  background: linear-gradient(180deg, #020617 0%, #000000 100%) !important;
  border-bottom: 1px solid #1e293b !important;
}

body.dark-mode .admin-ref-greeting {
  color: #ffffff !important;
}

body.dark-mode .admin-ref-unit-pill select {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

/* KPI Cards in Dark Mode */
body.dark-mode .ref-kpi-card {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .ref-kpi-card .ref-kpi-label,
body.dark-mode .ref-kpi-card .ref-kpi-value,
body.dark-mode .ref-kpi-card .ref-kpi-sub,
body.dark-mode .ref-kpi-card .ref-kpi-view-link {
  color: #ffffff !important;
}

/* Sections, Cards & Tables in Dark Mode */
body.dark-mode .admin-section-clean,
body.dark-mode .admin-group-card,
body.dark-mode .category-card,
body.dark-mode .statement-preview-card,
body.dark-mode .data-table-container,
body.dark-mode .ref-card-box,
body.dark-mode .admin-table-clean,
body.dark-mode .modal-card {
  background: #0b1120 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .category-card {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
}

body.dark-mode .category-card h3,
body.dark-mode .admin-group-title,
body.dark-mode .admin-group-eyebrow,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
  color: #ffffff !important;
}

body.dark-mode .category-card p {
  color: #94a3b8 !important;
}

body.dark-mode .data-table,
body.dark-mode .admin-table-clean {
  background: #0b1120 !important;
  color: #f8fafc !important;
}

body.dark-mode .data-table th,
body.dark-mode .admin-table-clean th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #1e293b !important;
}

body.dark-mode .data-table td,
body.dark-mode .admin-table-clean td {
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .data-table tr:hover,
body.dark-mode .admin-table-clean tr:hover {
  background: rgba(30, 41, 59, 0.45) !important;
}

/* Inputs, Selects & Forms in Dark Mode */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

body.dark-mode option {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Chat Layout in Dark Mode */
body.dark-mode .gchat-app-window,
body.dark-mode .gchat-sidebar,
body.dark-mode .gchat-main,
body.dark-mode .gchat-header,
body.dark-mode .gchat-composer-bar {
  background: #070a12 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .gchat-composer-pill {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-mode .gchat-input-area textarea {
  color: #ffffff !important;
}

body.dark-mode .gchat-room-title,
body.dark-mode .gchat-user-item-name {
  color: #ffffff !important;
}

/* Desktop Sidebar in Dark Mode */
body.dark-mode .admin-sidebar {
  background: #000000 !important;
  border-right: 1px solid #1e293b !important;
}




/* ==========================================================================
   TASSLIM ADMIN & RIDER PORTAL - PERFECT MOBILE RESPONSIVE SYSTEM
   Strictly active on screens <= 768px (Zero Horizontal Overflow, App-Style UX)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Global Viewport & Root Lock: Smooth 1-Finger Navigation on All Android & iOS Devices */
  html {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    touch-action: pan-x pan-y !important;
  }

  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    background: #edf1f6 !important;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #0d1b32 !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  * {
    box-sizing: border-box !important;
  }

  /* 2. Main App Container Shell */
  #main-app,
  #rider-app,
  .app-container {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #f7f9fc !important;
    position: relative !important;
    overflow-x: hidden !important;
    padding-bottom: 110px !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 3. Main Workspace Area */
  #main-app .admin-main-workspace,
  .admin-main-workspace {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 4. Left Sidebar: Pure Off-Canvas Drawer on Mobile */
  #main-app .admin-left-sidebar,
  .admin-left-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    transform: translateX(-105%) !important;
    margin-left: 0 !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.35) !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #main-app .admin-left-sidebar.mobile-open,
  #main-app .admin-left-sidebar.open,
  .admin-left-sidebar.mobile-open,
  .admin-left-sidebar.open {
    transform: translateX(0) !important;
    margin-left: 0 !important;
  }

  #main-app #admin-sidebar-backdrop,
  .admin-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99990 !important;
  }

  /* 5. Mobile App Header */
  .admin-top-breadcrumb-bar,
  #main-app nav.glass {
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 64px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e4eaf1 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 990 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(11, 35, 66, 0.04) !important;
  }

  #rider-app,
  #rider-app.app-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #rider-app > nav,
  #rider-app .rider-top-navbar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #rider-app main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .mobile-reference-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .mobile-origami-header.subpage-mode {
    padding: 14px 16px 16px !important;
    min-height: auto !important;
    border-radius: 0 0 18px 18px !important;
    margin-bottom: 0.75rem !important;
  }

  .mobile-origami-header.subpage-mode .mob-screen-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.1rem !important;
  }

  .rider-subpage-banner {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 1rem !important;
  }

  .rider-subpage-banner h2 {
    font-size: 1.05rem !important;
  }

  /* Header Brand Left Cluster */
  .admin-breadcrumb-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .admin-breadcrumb-divider {
    display: none !important;
  }

  /* Admin Hamburger Button (3 Strips Icon) - Highly Responsive Touch */
  #main-app .admin-sidebar-toggle-btn,
  .admin-sidebar-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid #dbe4ef !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f8fc !important;
    color: #082c61 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 1050 !important;
    position: relative !important;
  }

  #main-app .admin-sidebar-toggle-btn *,
  .admin-sidebar-toggle-btn * {
    pointer-events: none !important;
  }

  /* Rider Hamburger Button (3 Strips Bars) - High Contrast & Symmetrical */
  .mob-menu-btn,
  #mob-hamburger-btn {
    box-sizing: border-box !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4.5px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 1050 !important;
    position: relative !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .mob-menu-btn *,
  #mob-hamburger-btn * {
    pointer-events: none !important;
  }

  .mob-menu-bar {
    background: #ffffff !important;
    background-color: #ffffff !important;
    height: 2.5px !important;
    min-height: 2.5px !important;
    max-height: 2.5px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    border-radius: 99px !important;
    display: block !important;
    margin: 0 auto !important;
    flex: 0 0 2.5px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  }
  .mob-menu-bar.bar-1 { width: 20px !important; margin: 0 auto !important; }
  .mob-menu-bar.bar-2 { width: 20px !important; margin: 0 auto !important; }
  .mob-menu-bar.bar-3 { width: 20px !important; margin: 0 auto !important; }

  /* Avatar Icon Button */
  .mob-gold-avatar,
  .avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
    border: 1px solid #dbe4ef !important;
    display: grid !important;
    place-items: center !important;
    background: #f5f8fc !important;
    color: #082c61 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  /* Brand Typography */
  .admin-breadcrumb-trail,
  .mob-header-brand-logo,
  .brand {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .admin-breadcrumb-trail .breadcrumb-root,
  .mob-header-brand-logo strong,
  .brand strong {
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    color: #07172f !important;
    text-transform: uppercase !important;
    margin: 0 !important;
  }

  .admin-breadcrumb-trail .breadcrumb-current,
  .mob-header-brand-logo span,
  .brand span {
    color: #7d8a9c !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-breadcrumb-trail i {
    display: none !important;
  }

  /* Top Right Action Buttons */
  #main-app .admin-top-actions,
  .admin-top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    width: auto !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  /* Completely hide desktop text action buttons & role selector in mobile app header */
  #main-app .admin-top-action-btn,
  .admin-top-action-btn,
  #main-app .admin-role-switcher-pill,
  .admin-role-switcher-pill {
    display: none !important;
  }

  .admin-top-icon-btn,
  .mob-header-notif-btn,
  .settings-btn,
  .icon-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #f4f7fb !important;
    border: 1px solid #e4eaf1 !important;
    color: #253951 !important;
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  /* Full-Width Clean Search Bar on Row 2 */
  .global-search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 0 !important;
    order: 3 !important;
    flex: 1 0 100% !important;
  }

  .global-search-wrapper .search-box,
  .search-field {
    width: 100% !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #dfe6ee !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(11, 35, 66, 0.03) !important;
    box-sizing: border-box !important;
  }

  .global-search-wrapper .search-box input,
  .search-field input {
    width: 100% !important;
    border: none !important;
    outline: none !important;
    color: #172942 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: transparent !important;
  }

  /* 6. Executive Hero Banner */
  #main-app .admin-ref-hero-banner,
  .admin-ref-hero-banner,
  .mobile-origami-header,
  .welcome {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 20px 18px 24px !important;
    color: #ffffff !important;
    background: radial-gradient(circle at 90% 5%, #184981 0, transparent 36%), linear-gradient(140deg, #061d3e, #07376c) !important;
    border-radius: 0 0 24px 24px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(6, 29, 62, 0.2) !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  .admin-ref-hero-banner::after,
  .mobile-origami-header::after,
  .welcome::after {
    content: '' !important;
    position: absolute !important;
    width: 120px !important;
    height: 120px !important;
    border: 20px solid rgba(255,255,255,.03) !important;
    border-radius: 50% !important;
    right: -40px !important;
    bottom: -60px !important;
    pointer-events: none !important;
  }

  #main-app .admin-ref-hero-top,
  .admin-ref-hero-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #main-app .admin-ref-hero-left,
  .admin-ref-hero-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-ref-date,
  .mob-screen-subtitle,
  .welcome p {
    margin: 0 0 4px !important;
    font-size: 9px !important;
    letter-spacing: .1em !important;
    font-weight: 800 !important;
    color: #9fbada !important;
    text-transform: uppercase !important;
  }

  #main-app .admin-ref-greeting,
  .admin-ref-greeting,
  .mob-screen-title,
  .welcome h1 {
    margin: 0 !important;
    font-size: 19px !important;
    letter-spacing: -.03em !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    word-break: break-word !important;
  }

  /* Unit Filter Selector + Direct Sync Button */
  #main-app .admin-ref-hero-right,
  .admin-ref-hero-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 2px !important;
    box-sizing: border-box !important;
  }

  #main-app .admin-ref-unit-pill,
  .admin-ref-unit-pill {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #main-app .admin-ref-unit-pill select,
  .admin-ref-unit-pill select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    outline: none !important;
  }

  .admin-ref-sync-btn,
  .mob-sync-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  /* 7. Metric Cards Carousel: Generously Spaced & Android Touch-Friendly */
  .admin-ref-kpi-section {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 18px 0 14px !important;
  }

  .admin-ref-kpi-grid,
  .mob-stat-scroll,
  .metric-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 14px !important;
    padding: 6px 16px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
    box-sizing: border-box !important;
  }

  .admin-ref-kpi-grid::-webkit-scrollbar,
  .mob-stat-scroll::-webkit-scrollbar,
  .metric-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .ref-kpi-card,
  .mob-stat-card,
  .metric-card {
    flex: 0 0 205px !important;
    width: 205px !important;
    min-width: 205px !important;
    max-width: 72vw !important;
    min-height: 154px !important;
    border-radius: 18px !important;
    padding: 16px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
    box-shadow: 0 6px 20px rgba(9, 40, 77, 0.14) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  /* Bottom-right watermark circle on each card */
  .ref-kpi-card::after,
  .mob-stat-card::after,
  .metric-card::after {
    content: '' !important;
    position: absolute !important;
    width: 70px !important;
    height: 70px !important;
    border: 14px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
    right: -25px !important;
    bottom: -30px !important;
    pointer-events: none !important;
  }

  /* 4 Distinct Aesthetic Gradients */
  .ref-kpi-card:nth-child(1),
  .ref-kpi-card.theme-navy,
  .metric-card.navy {
    background: linear-gradient(145deg, #0b386f, #071f47) !important;
  }

  .ref-kpi-card:nth-child(2),
  .ref-kpi-card.theme-purple,
  .ref-kpi-card.theme-indigo,
  .metric-card.violet {
    background: linear-gradient(145deg, #98409b, #673184) !important;
  }

  .ref-kpi-card:nth-child(3),
  .ref-kpi-card.theme-teal,
  .metric-card.teal {
    background: linear-gradient(145deg, #05977e, #087064) !important;
  }

  .ref-kpi-card:nth-child(4),
  .ref-kpi-card.theme-amber,
  .metric-card.orange {
    background: linear-gradient(145deg, #f3ae18, #e88000) !important;
  }

  .ref-kpi-card:nth-child(5),
  .ref-kpi-card.theme-emerald {
    background: linear-gradient(145deg, #0b386f, #071f47) !important;
  }

  /* Metric Card Inner Details */
  .ref-kpi-watermark,
  .mob-stat-card i,
  .metric-icon {
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    position: static !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 15px !important;
  }

  .ref-kpi-label,
  .mob-stat-label,
  .metric-card p {
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    margin: 0 0 4px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .ref-kpi-value,
  .mob-stat-value,
  .metric-card strong {
    font-size: 22px !important;
    display: block !important;
    letter-spacing: -.03em !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin: 2px 0 !important;
  }

  .ref-kpi-sub,
  .mob-stat-sub,
  .metric-card span {
    display: block !important;
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.25 !important;
  }

  /* 8. Content Containers & Headings */
  .admin-section-clean,
  .content,
  .mob-section-wrap {
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .section-heading,
  .admin-clean-header,
  .mob-section-title-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 22px 0 14px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .section-heading p,
  .admin-group-eyebrow,
  .mob-section-pretitle {
    margin: 0 0 2px !important;
    font-size: 9px !important;
    letter-spacing: .1em !important;
    font-weight: 800 !important;
    color: #1263e8 !important;
    text-transform: uppercase !important;
  }

  .section-heading h2,
  .admin-group-title,
  .mob-section-title-wrap h2 {
    font-size: 17px !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
    margin: 0 !important;
    font-weight: 800 !important;
    color: #0d1b32 !important;
  }

  .count-pill,
  .admin-group-count-badge,
  .status-chip {
    border-radius: 30px !important;
    background: #edf3fa !important;
    color: #3c526b !important;
    padding: 5px 10px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    border: none !important;
  }

  /* 9. Platform Cards: Arranged in Landscape / Horizontally on Mobile */
  #main-app .category-grid,
  .category-grid,
  .platform-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 8px 0 16px 0 !important;
    padding: 4px 6px 14px 6px !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    box-sizing: border-box !important;
  }

  #main-app .category-grid::-webkit-scrollbar,
  .category-grid::-webkit-scrollbar,
  .platform-list::-webkit-scrollbar {
    display: none !important;
  }

  #main-app .category-card,
  .category-card,
  .platform-card {
    flex: 0 0 255px !important;
    width: 255px !important;
    min-width: 255px !important;
    max-width: 280px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 16px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 10px !important;
    color: #20334b !important;
    text-align: left !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  .category-card:active {
    transform: scale(0.99) !important;
  }

  .category-card > div:first-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .category-card .card-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .category-card .card-icon.noon {
    color: #f6b90a !important;
    background: rgba(246, 185, 10, 0.12) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }

  .category-card .card-icon.keeta {
    color: #00a783 !important;
    background: rgba(0, 167, 131, 0.12) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }

  .category-card .card-icon.talabat {
    color: #ff5b16 !important;
    background: rgba(255, 91, 22, 0.12) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }

  .category-card h3 {
    font-size: 17px !important;
    color: #10213a !important;
    font-weight: 800 !important;
    margin: 4px 0 2px 0 !important;
  }

  .category-card p {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 0 !important;
  }

  .category-card .city-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 6px !important;
  }

  .category-card .city-chip {
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
  }

  .category-card .city-chip.active {
    background: #0284c7 !important;
    color: #ffffff !important;
  }

  .category-card .btn-wipe-card-platform {
    width: 100% !important;
    height: 38px !important;
    border-radius: 11px !important;
    border: 1px solid #fee2e2 !important;
    background: #fff5f5 !important;
    color: #dc2626 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
  }

  /* 10. General Section & Group Cards: Comfortable Padding & Spacing */
  .admin-group-card,
  .activity-card,
  .rider-card {
    background: #ffffff !important;
    border: 1px solid #e4eaf1 !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .dues-summary,
  .rider-dues-summary-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  /* 11. Swipeable Filter & Navigation Bars */
  .advance-filter-bar,
  .admin-filter-bar,
  .filter-bar,
  .admin-sub-tabs,
  .admin-ref-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    width: 100% !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 12. Bottom Navigation Dock for Admin (Light Mode Executive Dock) */
  #admin-mobile-bottom-nav {
    position: fixed !important;
    z-index: 9990 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 560px !important;
    height: 74px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #dee5ed !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -4px 20px rgba(11, 35, 66, 0.08) !important;
  }

  #admin-mobile-bottom-nav button {
    background: transparent !important;
    border: 0 !important;
    color: #8490a0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    position: relative !important;
    cursor: pointer !important;
    padding: 0 !important;
    touch-action: manipulation !important;
  }

  #admin-mobile-bottom-nav button.active {
    color: #0d5fc9 !important;
  }

  #admin-mobile-bottom-nav button.active::before {
    content: '' !important;
    width: 24px !important;
    height: 3px !important;
    border-radius: 0 0 5px 5px !important;
    background: #1263e8 !important;
    position: absolute !important;
    top: 0 !important;
  }

  #admin-mobile-bottom-nav button i {
    width: 19px !important;
    height: 19px !important;
  }

  /* 12b. Bottom Navigation Dock for Rider (Deep Navy Glass Mobile App Dock) */
  #rider-mobile-bottom-nav,
  .mobile-bottom-nav:not(#admin-mobile-bottom-nav) {
    position: fixed !important;
    z-index: 9990 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #091540 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
  }

  #rider-mobile-bottom-nav .mobile-bottom-nav-item,
  .mobile-bottom-nav:not(#admin-mobile-bottom-nav) .mobile-bottom-nav-item {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    cursor: pointer !important;
    flex: 1 !important;
    padding: 6px 0 !important;
    position: relative !important;
    max-width: 72px !important;
    touch-action: manipulation !important;
  }

  #rider-mobile-bottom-nav .mobile-bottom-nav-item.active,
  .mobile-bottom-nav:not(#admin-mobile-bottom-nav) .mobile-bottom-nav-item.active {
    color: #38bdf8 !important;
    font-weight: 700 !important;
  }

  #rider-mobile-bottom-nav .mobile-bottom-nav-item.active::before,
  .mobile-bottom-nav:not(#admin-mobile-bottom-nav) .mobile-bottom-nav-item.active::before {
    display: none !important;
  }

  #rider-mobile-bottom-nav .mobile-bottom-nav-item i,
  #rider-mobile-bottom-nav .mobile-bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }

  #rider-mobile-bottom-nav .mobile-bottom-nav-item.active i,
  #rider-mobile-bottom-nav .mobile-bottom-nav-item.active svg {
    color: #38bdf8 !important;
    transform: translateY(-2px) !important;
  }

  /* 13. Dark Mode Aesthetic */
  body.dark-mode {
    background: #061325 !important;
    color: #e2e8f0 !important;
  }

  body.dark-mode #main-app,
  body.dark-mode #rider-app {
    background: #061325 !important;
  }

  body.dark-mode .admin-top-breadcrumb-bar,
  body.dark-mode .rider-top-navbar {
    background: rgba(8, 26, 52, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  body.dark-mode .platform-card,
  body.dark-mode .category-card,
  body.dark-mode .activity-card,
  body.dark-mode .rider-card,
  body.dark-mode .admin-group-card {
    background: #0b2244 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }

  body.dark-mode .category-card h3,
  body.dark-mode .section-heading h2,
  body.dark-mode .admin-group-title {
    color: #ffffff !important;
  }

  body.dark-mode #admin-mobile-bottom-nav,
  body.dark-mode .mobile-bottom-nav {
    background: rgba(6, 21, 42, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* ==========================================================================
   TASSLIM CHAT ARENA - SIMPLE, ORGANIZED & PROFESSIONAL (MATCHING REFERENCE UI)
   ========================================================================== */

#admin-chat-view:not(.hidden) {
  width: 100% !important;
  height: calc(100vh - 85px) !important;
  min-height: 580px !important;
  display: flex !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.chat-arena-container {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Left Sidebar (Matching Reference UI) */
.chat-arena-sidebar {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 340px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-right: 1px solid #eef2f6 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.arena-sidebar-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.arena-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.arena-live-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  display: inline-block !important;
}

.arena-main-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.arena-btn-add-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #10b981 !important;
  background: #ffffff !important;
  color: #059669 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.arena-btn-add-group:hover {
  background: #ecfdf5 !important;
}

/* Search Box */
.arena-search-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  margin-bottom: 12px !important;
}

.arena-search-container i {
  color: #94a3b8 !important;
  width: 15px !important;
  height: 15px !important;
}

.arena-search-container input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12px !important;
  color: #0f172a !important;
  width: 100% !important;
  font-family: inherit !important;
}

.arena-search-container input::placeholder {
  color: #94a3b8 !important;
}

/* Filter Tabs */
.arena-filter-tabs {
  display: flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  border-radius: 10px !important;
  padding: 3px !important;
  margin-bottom: 12px !important;
  gap: 2px !important;
}

.arena-filter-tab {
  flex: 1 !important;
  padding: 6px 0 !important;
  border-radius: 7px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

.arena-filter-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Conversations List */
.arena-conversations-list {
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.arena-conversation-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  background: transparent !important;
}

.arena-conversation-item:hover {
  background: #f8fafc !important;
}

.arena-conversation-item.active {
  background: #e0f2fe !important;
}

.arena-item-avatar-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}

.arena-item-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.arena-item-avatar.purple {
  background: #7c3aed !important;
}

.arena-item-avatar.navy {
  background: #0f172a !important;
}

.arena-item-status-dot {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
}

.arena-item-status-dot.online {
  background: #10b981 !important;
}

.arena-item-status-dot.offline {
  background: #94a3b8 !important;
}

.arena-item-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.arena-item-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 2px !important;
}

.arena-item-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.arena-item-time {
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.arena-item-snippet {
  font-size: 11px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 2. Main Chat Area */
.chat-arena-main {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  position: relative !important;
  min-width: 0 !important;
}

/* Header */
.arena-chat-header {
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #eef2f6 !important;
  background: #ffffff !important;
}

.arena-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.arena-header-avatar-wrap {
  position: relative !important;
}

.arena-header-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.arena-header-status-dot {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  border: 1.5px solid #ffffff !important;
  background: #94a3b8 !important;
}

.arena-header-info {
  display: flex !important;
  flex-direction: column !important;
}

.arena-header-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.arena-header-status {
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.arena-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.arena-btn-assign-task {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.arena-btn-assign-task:hover {
  background: #f8fafc !important;
}

.arena-btn-more {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

/* Messages Feed */
.arena-messages-feed {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: #ffffff !important;
}

/* Deep Navy Sent Message Bubble (Matching Screenshot) */
.arena-msg-bubble-sent {
  align-self: flex-end !important;
  max-width: 460px !important;
  background: #0f233f !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  box-shadow: 0 4px 14px rgba(15, 35, 63, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.arena-msg-text {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
}

/* White Task Card Inside Dark Bubble */
.arena-task-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.arena-task-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.arena-task-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #fef3c7 !important;
  color: #b45309 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.arena-task-status-pill {
  background: #fef08a !important;
  color: #854d0e !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.arena-task-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.arena-task-assigned {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.arena-task-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.arena-btn-task-start {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.arena-btn-task-complete {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #064e3b !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* Time & Ticks in Bubble */
.arena-msg-meta-sent {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  font-size: 10px !important;
  color: #93c5fd !important;
  font-weight: 600 !important;
}

/* 3. Composer Bar */
.arena-composer-wrap {
  padding: 12px 20px 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #eef2f6 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.arena-btn-task-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.arena-composer-input-box {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  padding: 8px 14px !important;
  gap: 8px !important;
}

.arena-composer-input-box input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12px !important;
  color: #0f172a !important;
  font-family: inherit !important;
}

.arena-composer-check-icon {
  color: #2563eb !important;
  display: grid !important;
  place-items: center !important;
}

.arena-btn-send {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #0f233f !important;
  color: #ffffff !important;
  border: none !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* Responsive Mobile Chat Arena (Google Chat / Telegram Pixel-Perfect Style) */
@media (max-width: 768px) {
  #admin-chat-view:not(.hidden) {
    position: fixed !important;
    top: 52px !important;
    bottom: 74px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 9900 !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .chat-arena-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* When NOT viewing active thread: Show Conversations List full screen */
  .chat-arena-container:not(.active-thread) .chat-arena-sidebar {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-right: none !important;
    padding: 12px !important;
    overflow-y: auto !important;
  }

  .chat-arena-container:not(.active-thread) .chat-arena-main {
    display: none !important;
  }

  /* When viewing active thread: Show Chat View full screen */
  .chat-arena-container.active-thread .chat-arena-sidebar {
    display: none !important;
  }

  .chat-arena-container.active-thread .chat-arena-main {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .arena-chat-header {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #eef2f6 !important;
  }

  .arena-mob-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    cursor: pointer !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  .arena-messages-feed {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 10px !important;
    gap: 12px !important;
    height: auto !important;
    max-height: none !important;
  }

  .arena-msg-bubble-sent {
    max-width: 92% !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  /* Always-Pinned Bottom Composer Bar */
  .arena-composer-wrap {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 8px 10px 10px 10px !important;
    gap: 6px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .arena-btn-task-trigger {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .arena-composer-input-box {
    padding: 2px 4px 2px 10px !important;
    border-radius: 99px !important;
    height: 40px !important;
  }

  .arena-composer-input-box input {
    font-size: 13px !important;
  }

  .arena-btn-send {
    width: 34px !important;
    height: 34px !important;
  }
}

/* Approved Account & Fleet Documents Card Styling */
.approved-doc-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.approved-doc-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 640px) {
  #approved-account-details-modal .modal-card {
    width: 100% !important;
    max-height: 96vh !important;
    border-radius: 1rem !important;
  }
  #approved-account-details-modal .modal-body {
    padding: 1rem !important;
  }
}

/* User Management & Role Permissions Styles */
#admin-users-view {
  animation: fadeInAdminTab 0.25s ease-out;
}

#garage-supervisor-kpi-section .ref-kpi-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.35) !important;
}

#garage-supervisor-sidebar-footer .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

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


