/* ==========================================================================
   SLT CALCO — Smart Tender Evaluation Platform
   Premium Glassmorphism & High-Performance Design System
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.9);
  --bg-input: #1a2234;
  --bg-sidebar: #0e1320;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #0ea5e9;
  --info-bg: rgba(14, 165, 233, 0.12);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
  --header-height: 70px;
}

/* Light Theme Variable Tokens */
[data-theme="light"], body.theme-light {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-glow: rgba(79, 70, 229, 0.28);
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.18);
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.1);
  --info: #0284c7;
  --info-bg: rgba(2, 132, 199, 0.1);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.glow-1 { top: -100px; left: -100px; background: var(--primary); }
.glow-2 { bottom: -100px; right: -100px; background: var(--accent-cyan); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #818cf8;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a5568; }

/* ==========================================================================
   APP SHELL LAYOUT
   ========================================================================== */

#app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Sidebar */
#app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050 !important;
  transition: transform 0.3s ease;
}

/* Sidebar Drawer Header (Flutter App Style) */
.sidebar-profile-header {
  padding: 16px;
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.profile-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.profile-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

.profile-greeting {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.profile-email {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.sidebar-close-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-close-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
}

.menu-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.2px;
  padding: 14px 12px 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}

.menu-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}
.menu-item:hover i {
  color: #fff;
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-color: rgba(37, 99, 235, 0.4);
  font-weight: 600;
}
.menu-item.active i {
  color: #3b82f6;
}

/* Badges on Menu items */
.menu-badge-locked {
  margin-left: auto;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-badge-pro {
  margin-left: auto;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}

.menu-item-destructive {
  color: #f87171 !important;
}
.menu-item-destructive i {
  color: #f87171 !important;
}
.menu-item-destructive:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.user-plan-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.plan-badge-sm {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.plan-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
.plan-stat strong {
  color: #fff;
}

/* ==========================================================================
   APP SHELL LAYOUT (TOPBAR + WIDESCREEN)
   ========================================================================== */

/* Main Content Area */
#app-main {
  flex: 1;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header / Integrated Top Navigation Bar */
.app-topnav {
  height: 64px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.topnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  letter-spacing: 0.5px;
}

/* Horizontal Top Navigation Menu */
.topnav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.topnav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.topnav-item i {
  font-size: 13px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.topnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topnav-item:hover i {
  transform: translateY(-1px);
}

.topnav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.topnav-item.active i {
  color: #60a5fa;
}

/* Topbar Actions Right */
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.topnav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.user-pill-dropdown-wrap {
  position: relative;
}

.user-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-pill-details {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-pill-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill-role {
  font-size: 10px;
  color: #94a3b8;
}

.pill-arrow {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-dropdown-box {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: fadeUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-dropdown-box.show {
  display: flex;
}

.dropdown-user-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 8px;
}

.dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.dropdown-email {
  font-size: 11.5px;
  color: #94a3b8;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-plan-badge {
  font-size: 10px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.dropdown-hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-link i {
  font-size: 13px;
  width: 16px;
  text-align: center;
  color: #94a3b8;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-link:hover i {
  color: #60a5fa;
}

.dropdown-link-danger {
  color: #f87171 !important;
}

.dropdown-link-danger i {
  color: #f87171 !important;
}

.dropdown-link-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
}

.nav-notice-btn, .nav-notice-ticker {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  padding: 0;
}
.nav-notice-btn:hover, .nav-notice-ticker:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.nav-notice-btn i, .nav-notice-ticker i {
  color: #f59e0b;
  font-size: 15px;
}
.notice-indicator-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  display: none;
  animation: pulseDot 2s infinite;
}
.notice-indicator-dot.active {
  display: block;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 16px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.user-profile-menu:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.user-name-role {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
#header-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}

/* Payment Media Radio Cards */
.pay-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.pay-radio-card {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.2s ease;
  user-select: none;
}
.pay-radio-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}
.pay-radio-card.active,
.pay-radio-card:has(input[type="radio"]:checked) {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.pay-radio-card input[type="radio"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Page Content Viewports */
#app-content {
  padding: 24px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.screen-view {
  display: none;
  animation: fadeIn 0.3s ease;
}
.screen-view.active {
  display: block;
}

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

/* ==========================================================================
   UI COMPONENTS (Cards, Grids, Buttons, Badges, Tables, Forms)
   ========================================================================== */

/* Glass Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FLUTTER APP COMPONENT STYLES (Adapted for Modern Responsive Web)
   ========================================================================== */

/* Dashboard Header Avatar (Removed - user requested topbar avatar only) */
.dash-header-avatar {
  display: none !important;
}

/* Top Greeting Header */
.dash-greeting-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
}
.dash-greeting-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Flutter Hero Card (Calculate SLT) */
.flutter-hero-card {
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  border-radius: 26px;
  padding: 34px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35), 0 6px 18px rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.flutter-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.45), 0 8px 24px rgba(16, 185, 129, 0.35);
}
.flutter-hero-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 38px;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}
.flutter-hero-card:hover .flutter-hero-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}
.flutter-hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.flutter-hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.flutter-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #2563EB;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.flutter-hero-card:hover .flutter-hero-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Flutter QCBS Banner */
.flutter-qcbs-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(236, 72, 153, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.flutter-qcbs-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.42);
}
.qcbs-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qcbs-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.qcbs-text-box .qcbs-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.qcbs-text-box .qcbs-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}
.qcbs-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qcbs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
}
.qcbs-arrow {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* Flutter Stat Cards (Plan Card & History Card) */
.flutter-stat-card {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.flutter-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.flutter-stat-card.plan-gradient {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.flutter-stat-card.plan-gradient.limit-reached {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.35);
}
.flutter-stat-card.history-gradient {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-color: rgba(37, 99, 235, 0.3);
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.stat-card-icon.green {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
}
.stat-card-icon.red {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}
.stat-card-icon.blue {
  background: rgba(37, 99, 235, 0.18);
  color: #3b82f6;
}
.stat-card-title-box {
  flex: 1;
}
.stat-card-title-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.stat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.stat-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.card-header-styled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.card-header-styled h2, .card-header-styled h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn-primary-styled {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}
.btn-primary-styled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
}
.btn-primary-styled:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary-styled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-secondary-styled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-styled {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger-styled:hover {
  background: #dc2626;
}

.btn-success-styled {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-success-styled:hover {
  background: #059669;
}

/* Badges & Status Pills */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-winner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.badge-eligible {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-rejected, .badge-non-eligible {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control-styled {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.form-control-styled:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control-styled::placeholder {
  color: var(--text-subtle);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  scrollbar-width: thin;
}
.table-styled {
  width: 100%;
  min-width: 950px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.table-styled th {
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}
.table-styled td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
  white-space: nowrap;
}
.table-styled tbody tr {
  transition: background 0.18s ease;
}
.table-styled tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}
.table-styled tr.winner-row td {
  background: rgba(16, 185, 129, 0.08);
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 800; font-family: var(--font-heading); color: #fff; margin: 4px 0; }
.stat-sub { font-size: 12px; color: var(--text-subtle); }

/* Winner Spotlight Banner */
.winner-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}
.winner-banner h2 {
  font-size: 32px;
  color: #10b981;
  margin-bottom: 8px;
}
.winner-banner p {
  color: var(--text-muted);
  font-size: 16px;
}
.winner-price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.25s ease;
}
.modal-box.modal-large {
  max-width: 850px;
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover {
  color: #fff;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.modal-footer:empty {
  display: none !important;
  padding: 0 !important;
  border: none !important;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
}
.toast-msg.success { border-left-color: var(--success); }
.toast-msg.error { border-left-color: var(--danger); }
.toast-msg.warning { border-left-color: var(--warning); }
.toast-msg.info { border-left-color: var(--info); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stepper */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}
.stepper-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}
.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  transition: var(--transition);
}
.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}
.step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.step-item.active .step-label {
  color: #fff;
}

/* Plans Pricing Grid */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(17, 24, 39, 0.9) 100%);
  box-shadow: var(--shadow-glow);
}
.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.plan-price-large {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  margin: 16px 0 8px;
}
.plan-price-large span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.plan-features-list {
  list-style: none;
  margin: 24px 0;
  text-align: left;
  flex: 1;
}
.plan-features-list li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.plan-features-list li i.check { color: var(--success); }
.plan-features-list li i.cross { color: var(--text-subtle); }

/* File Drag & Drop Upload Box */
.dropzone-box {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}
.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}
.dropzone-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 12px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

/* Tablet Optimization (769px - 1024px) */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .card-glass { max-width: 100% !important; box-sizing: border-box !important; }
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Mobile & Tablet Drawer & Header (<= 992px) */
@media (max-width: 992px) {
  .topnav-menu {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #app-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #app-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    z-index: 1050 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #0b0f19 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  #app-sidebar.show {
    transform: translateX(0) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85) !important;
    pointer-events: auto !important;
  }
  [data-theme="light"] #app-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #cbd5e1 !important;
  }
  .sidebar-close-btn {
    display: flex !important;
  }
  #app-header {
    background: #0b0f19 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 14px !important;
  }
  [data-theme="light"] #app-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
}

/* Mobile Screen Architecture & Well-Aligned Card System (<= 768px) */
@media (max-width: 768px) {
  body, #app-container, #app-main, #app-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #app-content {
    padding: 14px 12px 90px 12px !important; /* Space for mobile floating nav */
    box-sizing: border-box !important;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .header-right .user-name-role,
  .user-pill-details {
    display: none !important;
  }

  .card-glass {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .card-header-styled {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .card-header-styled > div {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .card-header-styled .btn-primary-styled,
  .card-header-styled .btn-secondary-styled {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Crisp, Solid Mobile Bottom Bar (No Blur, High Contrast) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    height: 62px !important;
    background: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    z-index: 1000 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75) !important;
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14) !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #cbd5e1 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
  }

  [data-theme="light"] .mobile-nav-item {
    color: #475569 !important;
  }

  .mobile-nav-item i {
    font-size: 17px !important;
  }

  .mobile-nav-item.active {
    background: linear-gradient(135deg, #2563EB 0%, #10B981 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
  }

  /* Sharp, Clear Sidebar Menu on Mobile */
  #sidebar-menu-items .menu-item {
    color: #f1f5f9 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    padding: 11px 14px !important;
  }

  [data-theme="light"] #sidebar-menu-items .menu-item {
    color: #0f172a !important;
  }

  #sidebar-menu-items .menu-category {
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
  }

  [data-theme="light"] #sidebar-menu-items .menu-category {
    color: #64748b !important;
  }

  /* ==========================================================================
     WELL-ALIGNED CARD SYSTEM FOR TABULAR VIEWS ON MOBILE
     Transforms wide tabular records into individual, well-aligned stacked cards
     ========================================================================== */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }

  .table-styled {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-spacing: 0 !important;
    border: none !important;
  }

  .table-styled thead {
    display: none !important;
  }

  .table-styled tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .table-styled tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
    gap: 2px !important;
  }

  [data-theme="light"] .table-styled tbody tr {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  }

  .table-styled tbody tr.winner-row {
    border: 2px solid #fbbf24 !important;
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15) !important;
  }

  [data-theme="light"] .table-styled tbody tr.winner-row {
    border: 2px solid #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1) !important;
  }

  .table-styled tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    white-space: normal !important;
    font-size: 13px !important;
    text-align: right !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .table-styled tbody td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f172a !important;
  }

  .table-styled tbody td::before {
    content: attr(data-label) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
  }

  [data-theme="light"] .table-styled tbody td::before {
    color: #64748b !important;
  }

  .table-styled tbody td:not([data-label])::before,
  .table-styled tbody td[data-label=""]::before {
    display: none !important;
    content: none !important;
  }

  .table-styled tbody td:not([data-label]),
  .table-styled tbody td[data-label=""] {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Multi-line left-aligned primary entity cards on mobile */
  .table-styled tbody td[data-label="Tender"],
  .table-styled tbody td[data-label="Tender / Evaluation"],
  .table-styled tbody td[data-label="Tender Details"],
  .table-styled tbody td[data-label="Participating Company"],
  .table-styled tbody td[data-label="Company Name"],
  .table-styled tbody td[data-label="Bidder Company"],
  .table-styled tbody td[data-label="Consultant / Firm"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
  }

  .table-styled tbody td[data-label="Tender"] > *,
  .table-styled tbody td[data-label="Tender / Evaluation"] > *,
  .table-styled tbody td[data-label="Tender Details"] > *,
  .table-styled tbody td[data-label="Participating Company"] > *,
  .table-styled tbody td[data-label="Company Name"] > *,
  .table-styled tbody td[data-label="Bidder Company"] > *,
  .table-styled tbody td[data-label="Consultant / Firm"] > * {
    text-align: left !important;
    word-break: break-word !important;
  }

  /* Last cell / Action cell on mobile */
  .table-styled tbody td:last-child,
  .table-styled tbody td[data-label="Actions"],
  .table-styled tbody td[data-label="Action"] {
    border-bottom: none !important;
    padding-top: 10px !important;
    padding-bottom: 2px !important;
    justify-content: flex-end !important;
  }

  .table-styled tbody td[data-label="Actions"] > div,
  .table-styled tbody td[data-label="Action"] > div {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    width: auto !important;
  }

  /* Empty state or colspan */
  .table-styled tbody td[colspan] {
    display: block !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 28px 14px !important;
    border-bottom: none !important;
  }

  .table-styled tbody td[colspan]::before {
    display: none !important;
  }

  /* Auth Screens Responsive Bounds */
  .auth-card-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .auth-card {
    padding: 22px 16px !important;
    border-radius: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-brand-title {
    font-size: 26px !important;
  }

  .auth-brand-subtitle {
    font-size: 13px !important;
  }

  .auth-feature-pills-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .auth-feature-pill {
    font-size: 12px !important;
    padding: 4px 10px !important;
  }

  /* Stepper navigation responsive scroll */
  .stepper-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    gap: 8px !important;
  }

  .stepper-nav::-webkit-scrollbar {
    display: none !important;
  }

  .step-item {
    flex-shrink: 0 !important;
  }

  .step-label {
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  /* QCBS Mobile Form Responsive Alignment */
  .qcbs-add-bidder-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  /* Prevent Stat Values from Overflowing on Mobile */
  .flutter-stat-item .stat-val {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  .btn-primary-styled,
  .btn-secondary-styled,
  .form-control-styled {
    min-height: 44px !important;
  }
}

/* ==========================================================================
   FLUTTER AUTH SCREEN & FULL-SCREEN LAYOUT MODE
   ========================================================================== */
body.auth-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.auth-mode #app-sidebar,
body.auth-mode #app-header,
body.auth-mode #mobile-bottom-nav {
  display: none !important;
}

body.auth-mode #app-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.auth-mode #app-main {
  margin: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  padding: 32px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

body.auth-mode #app-content {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

body.auth-mode .screen-view.active {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body.auth-mode .auth-card-container {
  width: 100% !important;
  max-width: 500px;
  margin: 0 auto !important;
}

body.auth-mode #screen-register .auth-card-container {
  max-width: 580px !important;
}

/* ==========================================================================
   FULL WIDTH SPLIT-SCREEN AUTH SHOWCASE (Tender Evaluation & SLT Calculate)
   ========================================================================== */
.auth-fullwidth-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1040px) {
  .auth-fullwidth-wrapper {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 24px;
  }
  .auth-showcase-panel {
    display: none;
  }
}

/* Left Showcase Panel */
.auth-showcase-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.78) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.auth-showcase-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.auth-showcase-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* Top Badge Bar */
.showcase-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.showcase-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #93c5fd;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDotAnim 1.8s infinite;
}

@keyframes pulseDotAnim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.showcase-algo-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Headline & Description */
.showcase-main-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.showcase-main-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-main-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Simulated Live Tender Evaluation Card */
.showcase-sim-card {
  background: rgba(13, 19, 33, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.sim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-tender-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #38bdf8;
  text-transform: uppercase;
  display: block;
}

.sim-tender-id {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.sim-status-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Metrics Ribbon */
.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sim-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px 12px;
  text-align: left;
}

.sim-metric-highlight {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.3);
}

.sim-metric-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
}

.sim-metric-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
}

.sim-metric-sub {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Mini Table Rows */
.sim-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-row {
  display: grid;
  grid-template-columns: 42px 1.4fr 1.25fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  transition: all 0.2s ease;
}

.sim-winner-row {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.sim-rank {
  font-weight: 800;
  color: #94a3b8;
  font-family: monospace;
  font-size: 12px;
}

.sim-rank-winner {
  color: #fbbf24;
}

.sim-company {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-price {
  font-family: monospace;
  font-weight: 700;
  color: #34d399;
  text-align: right;
  white-space: nowrap;
}

.sim-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.sim-badge-winner {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sim-badge-eligible {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.sim-badge-below {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Feature Pillars Row */
.showcase-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.showcase-pillar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pillar-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #818cf8;
  font-size: 13px;
  flex-shrink: 0;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.pillar-content strong {
  font-size: 12px;
  color: #f8fafc;
}

.pillar-content span {
  font-size: 10px;
  color: #64748b;
}

/* Light Theme Overrides for Showcase Panel */
[data-theme="light"] .auth-showcase-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 0 40px rgba(99, 102, 241, 0.08) !important;
}

[data-theme="light"] .showcase-main-title {
  color: #0f172a !important;
}

[data-theme="light"] .showcase-main-desc {
  color: #475569 !important;
}

[data-theme="light"] .showcase-sim-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sim-card-header {
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .sim-tender-id {
  color: #0f172a !important;
}

[data-theme="light"] .sim-metric-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .sim-metric-highlight {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

[data-theme="light"] .sim-metric-val {
  color: #0f172a !important;
}

[data-theme="light"] .sim-row {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .sim-company {
  color: #0f172a !important;
}

[data-theme="light"] .sim-price {
  color: #059669 !important;
}

[data-theme="light"] .showcase-pillar-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .pillar-content strong {
  color: #0f172a !important;
}

/* Auth Form Column & Card Enhancements */
.auth-form-column {
  width: 100%;
  position: relative;
}

.auth-card-container {
  width: 100%;
  margin: 0 auto;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-glass-card {
  padding: 38px 32px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.12);
}

.auth-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-box {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 42px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}

.auth-logo-box:hover {
  transform: scale(1.05) rotate(2deg);
}

.auth-brand-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.auth-brand-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin: 0;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.auth-card-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.auth-card-footer a {
  color: #10B981;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.auth-card-footer a:hover {
  text-decoration: underline;
  color: #34d399;
}

/* Flutter Hotline Pill */
.auth-hotline-pill {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 30px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: 100%;
  justify-content: center;
}

.auth-hotline-pill:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.auth-hotline-pill strong {
  color: #10B981;
  font-weight: 700;
}

/* Screen Header Bar with Back Button for secondary screens */
.screen-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-back-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-back-circle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.screen-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.card-header-styled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-styled h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-styled h2 i {
  font-size: 15px;
}

/* NPPI Preset Chips Row */
.nppi-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}

.nppi-chips-row::-webkit-scrollbar {
  height: 4px;
}

.nppi-chips-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.nppi-chips-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nppi-chips-row::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.6);
}

.nppi-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  outline: none;
  box-shadow: none;
  user-select: none;
}

.nppi-chip:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
  color: #e2e8f0;
}

.nppi-chip.active {
  background: linear-gradient(135deg, #2563EB, #10B981) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

/* ==========================================================================
   GLOBAL API LOADING INDICATORS (Top Bar & Glassmorphic Overlay)
   ========================================================================== */
.global-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #10B981, #06B6D4);
  z-index: 99999;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8), 0 0 6px rgba(16, 185, 129, 0.6);
  pointer-events: none;
}

.global-progress-bar.active {
  opacity: 1;
  width: 70%;
  animation: indeterminateProgress 1.5s infinite ease-in-out;
}

.global-progress-bar.finished {
  width: 100% !important;
  opacity: 0;
}

@keyframes indeterminateProgress {
  0% { left: 0%; width: 25%; }
  50% { left: 35%; width: 55%; }
  100% { left: 100%; width: 10%; }
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-loading-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.loading-modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 36px 48px;
  text-align: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75), 0 0 50px rgba(37, 99, 235, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: 90vw;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-spinner-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.loading-spinner-ring.outer-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: #2563EB;
  border-right-color: #10B981;
  animation: spinRing 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.45);
}

.loading-spinner-ring.inner-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-bottom-color: #06B6D4;
  border-left-color: #8B5CF6;
  animation: spinRingReverse 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

.loading-logo-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseLogo 2s ease-in-out infinite;
}

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

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

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.8)); }
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin: 0;
}

.loading-subtext {
  font-size: 12px;
  color: #94a3b8;
  max-width: 240px;
  line-height: 1.4;
  margin: 0;
}

/* Animated PDF / Report Download Overlay */
.global-download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99992;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.global-download-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.download-modal-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 32, 0.95));
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 28px;
  padding: 38px 44px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(59, 130, 246, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 440px;
  width: 90%;
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.download-beacon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.download-pulse-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(16, 185, 129, 0) 70%);
  animation: downloadPulse 1.8s infinite;
}

.download-center-graphic {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.download-file-icon {
  font-size: 32px;
  color: #60a5fa;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.4));
}

.download-arrow-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 20px;
  color: #10b981;
  background: #0f172a;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: downloadArrowBounce 1.2s ease-in-out infinite;
}

@keyframes downloadPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

@keyframes downloadArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.download-modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin: 0;
}

.download-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.download-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.download-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.download-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.download-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Centered Error Modal */
#global-error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#global-error-overlay.active {
  opacity: 1;
  visibility: visible;
}

.error-modal-box {
  background: rgba(17, 24, 39, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  border-radius: 26px;
  padding: 32px 36px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.25);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.error-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
  margin-bottom: 12px;
  animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1040 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   ADMIN LAYOUT MODE — Zero Menus, Fullscreen Control Center
   ========================================================================== */
body.admin-mode #app-sidebar,
body.admin-mode #app-header,
body.admin-mode #mobile-bottom-nav {
  display: none !important;
}

body.admin-mode #app-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
}

body.admin-mode #app-main {
  margin: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
              #070b14;
}

body.admin-mode #app-content {
  padding: 24px 32px 64px !important;
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Admin Top Navbar */
.admin-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.admin-nav-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.admin-nav-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-admin-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-admin-pill.danger:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff;
}

/* Flutter Admin Dashboard Grid */
.flutter-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.flutter-admin-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.flutter-admin-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, #6366f1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--card-accent-glow, rgba(99, 102, 241, 0.2));
}

.flutter-admin-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: var(--card-accent-bg, rgba(99, 102, 241, 0.15));
  color: var(--card-accent, #6366f1);
  border: 1px solid var(--card-accent-border, rgba(99, 102, 241, 0.3));
}

.flutter-admin-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.flutter-admin-card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Glowing SLT Card (Flutter Style) */
.flutter-slt-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2b4d 50%, #0a1e3a 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.3), 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.slt-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slt-currency-tag {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.slt-main-value {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  margin-bottom: 12px;
}

.slt-threshold-badge {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 18px;
}

/* Flutter Stats Row */
.flutter-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.flutter-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.flutter-stat-item i {
  font-size: 20px;
  margin-bottom: 6px;
}

.flutter-stat-item .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.flutter-stat-item .stat-val {
  font-size: 16px;
  font-weight: 800;
}

/* Exact Bidder Status Badges from Flutter */
.badge-status-winner {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-status-eligible {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-status-below-slt {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-status-non-responsive {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* Account Profile Header Card */
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.profile-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.profile-hero-info {
  flex: 1;
}

.profile-hero-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.profile-hero-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.profile-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-feature-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-feature-badge.locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ADVANCED MOBILE & TABLET UNIVERSAL RESPONSIVENESS (320px - 1024px)
   ========================================================================== */

/* Universal Card & Element Hover Lift */
.card-glass, .flutter-hero-card, .flutter-qcbs-banner, .flutter-stat-card, .stat-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
}

.card-glass:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Tablet & iPad Responsive Rules (<= 991px) */
@media (max-width: 991px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .profile-hero-card {
    padding: 20px;
    gap: 16px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  body {
    font-size: 14px;
  }

  #app-content {
    padding: 16px 14px 96px 14px !important; /* safe spacing for floating bottom nav */
  }

  .page-title-box h1 {
    font-size: 17px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .page-title-box p {
    font-size: 11px !important;
    display: none; /* Hide subtitle on small phones for clean chrome */
  }

  .screen-header-bar {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .screen-header-title {
    font-size: 17px !important;
  }
  .btn-back-circle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .card-header-styled {
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
  }
  .card-header-styled h2 {
    font-size: 15px !important;
  }

  .card-glass {
    padding: 16px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }

  /* QCBS Screen Mobile Tuning */
  #screen-qcbs .card-glass {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }
  #qcbs-display-fin-weight, #qcbs-display-tech-weight {
    font-size: 18px !important;
  }
  #qcbs-winner-banner {
    padding: 12px 14px !important;
  }
  #qcbs-winner-name {
    font-size: 15px !important;
  }
  #qcbs-winner-score {
    font-size: 18px !important;
  }

  /* History Screen Mobile Tuning */
  #screen-history .card-glass {
    padding: 14px !important;
  }
  #history-search {
    font-size: 13px !important;
    height: 40px !important;
    padding: 8px 12px !important;
  }
  #btn-batch-export {
    font-size: 12px !important;
    padding: 6px 12px !important;
    height: 36px !important;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .flutter-hero-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  .flutter-hero-title {
    font-size: 18px !important;
  }
  .flutter-hero-sub {
    font-size: 12.5px !important;
  }

  .flutter-qcbs-banner {
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  .slt-main-value {
    font-size: clamp(28px, 7vw, 42px) !important;
  }

  .flutter-slt-card {
    padding: 20px 14px !important;
    border-radius: 18px !important;
  }

  .flutter-stats-row {
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .flutter-stat-item {
    min-width: 65px !important;
    flex: 1 1 65px;
  }
  .flutter-stat-item .stat-val {
    font-size: 13.5px !important;
  }

  .pay-radio-group {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    flex-direction: row !important;
    width: 100% !important;
  }
  .pay-radio-card {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    gap: 6px !important;
    text-align: center !important;
  }
  .pay-radio-card input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }

  .table-responsive {
    border-radius: 14px !important;
  }

  .btn-primary-styled, .btn-secondary-styled {
    min-height: 44px; /* optimal mobile tap target */
  }

  .modal-box {
    width: 94% !important;
    max-height: 88vh !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }
}

/* Small Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .auth-card-container {
    max-width: 100% !important;
    padding: 0 4px !important;
  }
  .auth-glass-card {
    padding: 28px 20px !important;
    border-radius: 22px !important;
  }
  .auth-logo-box {
    width: 72px !important;
    height: 72px !important;
    border-radius: 20px !important;
    margin-bottom: 14px !important;
  }
  .auth-brand-title {
    font-size: 26px !important;
  }

  .profile-hero-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    padding: 20px 16px !important;
  }
  .profile-hero-card .profile-hero-info > div:first-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }
  .profile-hero-avatar {
    width: 68px !important;
    height: 68px !important;
    font-size: 24px !important;
    margin: 0 auto;
  }
  .profile-hero-meta {
    justify-content: center !important;
  }

  .flutter-hero-icon-wrap {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }

  .slt-pill-label {
    font-size: 10px !important;
    padding: 4px 12px !important;
  }
}

/* ==========================================================================
   DESKTOP WIDESCREEN & TOP NAVIGATION ARCHITECTURE (>= 993px)
   Eliminates bulky left sidebar, maximizes display width, removes horizontal table scroll
   ========================================================================== */
@media (min-width: 993px) {
  #app-sidebar {
    display: none !important;
  }
  #app-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #app-content {
    max-width: 1440px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 24px 32px 64px 32px !important;
    box-sizing: border-box;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
}



/* ==========================================================================
   FADEUP ANIMATION & SCREEN TRANSITIONS (VIP Smooth Look)
   ========================================================================== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-view {
  display: none;
}

.screen-view.active {
  display: block !important;
  animation: fadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-glass {
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   PERFECT TABLE DESIGN, ALIGNMENT & SPACE DISTRIBUTION
   No scroll needed on wide screens; proportional columns & crisp SaaS alignment
   ========================================================================== */
.table-responsive {
  width: 100% !important;
  border-radius: 14px !important;
  background: rgba(13, 19, 33, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  overflow-x: auto;
}

.table-styled {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px !important;
}

.table-styled thead th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 13px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.table-styled tbody tr {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-styled tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.table-styled tbody td {
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  vertical-align: middle !important;
  font-size: 13px !important;
}

.table-styled tbody tr:last-child td {
  border-bottom: none !important;
}

/* ==========================================================================
   COMPACT 80% SAAS DENSITY & POLISHED ELEVATION
   ========================================================================== */
.card-header-styled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header-styled h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.screen-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.screen-header-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
}

.btn-primary-styled, .btn-secondary-styled {
  font-size: 12.5px !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   EVALUATION SETUP & REVIEW BIDDERS TABLE (MODERN VIP REDESIGN)
   ========================================================================== */
.eval-table-wrapper {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
}

.eval-bidders-modern-table {
  width: 100% !important;
  min-width: 650px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.eval-bidders-modern-table thead th {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(8px);
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  white-space: nowrap !important;
}

.eval-bidders-modern-table tbody tr.eval-bidder-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.eval-bidders-modern-table tbody tr.eval-bidder-row:hover td {
  background: rgba(59, 130, 246, 0.07) !important;
}

.eval-bidders-modern-table tbody tr.eval-bidder-row:last-child td {
  border-bottom: none !important;
}

.eval-bidders-modern-table tbody td {
  padding: 13px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main);
  vertical-align: middle !important;
}

/* Serial Badge (Strictly 1, 2, 3, 4...) */
.eval-serial-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(99, 102, 241, 0.28));
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
  margin: 0 auto;
}

.eval-serial-num {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1;
}

/* Company Cell */
.eval-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-company-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.eval-company-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.eval-company-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.eval-company-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Price Container */
.eval-price-container {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.eval-currency-sym {
  color: #10b981;
  font-weight: 800;
  font-size: 15px;
}

.eval-price-val {
  color: #34d399;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Perfect Red Table Delete Button */
.eval-btn-del,
.btn-table-action.delete,
.btn-table-del {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.45) !important;
  color: #ef4444 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15) !important;
  outline: none !important;
}

.eval-btn-del i,
.btn-table-action.delete i,
.btn-table-del i {
  color: #ef4444 !important;
  font-size: 14px !important;
  transition: color 0.2s ease !important;
}

.eval-btn-del:hover,
.btn-table-action.delete:hover,
.btn-table-del:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.12) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
}

.eval-btn-del:hover i,
.btn-table-action.delete:hover i,
.btn-table-del:hover i {
  color: #ffffff !important;
}

.eval-btn-del:active,
.btn-table-action.delete:active,
.btn-table-del:active {
  transform: scale(0.94) !important;
}

/* Dedicated Account Screen Logout Button */
.btn-account-logout {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 13px 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08) !important;
}

.btn-account-logout i {
  color: #ef4444 !important;
  font-size: 14px !important;
  transition: color 0.2s ease !important;
}

.btn-account-logout:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-2px) !important;
}

.btn-account-logout:hover i {
  color: #ffffff !important;
}

.btn-account-logout:active {
  transform: translateY(0) scale(0.98) !important;
}

/* QCBS Tech Rating Pill */
.qcbs-tech-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 20px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

/* Add Bidder Container Box */
.eval-add-bidder-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.eval-add-bidder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .eval-add-bidder-grid {
    grid-template-columns: 1fr;
  }
  .eval-company-name {
    max-width: 200px;
  }
}

.eval-btn-add-bidder {
  width: 100%;
  justify-content: center;
  height: 44px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.eval-btn-add-bidder:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   QCBS WEIGHT RATIO BOXES (EQUAL 3-COLUMN AREA)
   ========================================================================== */
.qcbs-weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .qcbs-weight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .qcbs-custom-box {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .qcbs-weight-grid {
    grid-template-columns: 1fr;
  }
  .qcbs-custom-box {
    grid-column: span 1;
  }
}

.qcbs-weight-box {
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 125px;
}

.qcbs-fin-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.qcbs-fin-box:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.18);
  transform: translateY(-2px);
}

.qcbs-tech-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.qcbs-tech-box:hover {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 8px 26px rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
}

.qcbs-custom-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.03) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}

.qcbs-custom-box:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.18);
  transform: translateY(-2px);
}

.qcbs-weight-header {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.qcbs-weight-val {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  line-height: 1.1;
  margin-bottom: 4px;
}

.qcbs-weight-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.qcbs-custom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 2px 0;
}

.qcbs-multiplier-input {
  width: 76px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-heading, 'Outfit', sans-serif);
}

.qcbs-multiplier-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.qcbs-preset-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.qcbs-preset-btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.qcbs-preset-btn:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: #a855f7;
  color: #fff;
  transform: translateY(-1px);
}

.qcbs-preset-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   29. THEME TOGGLE CONTROLS & COMPREHENSIVE LIGHT THEME
   ========================================================================== */

/* Topbar Theme Toggle Button */
.btn-theme-topbar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  outline: none;
  margin-right: 4px;
}

.btn-theme-topbar:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  transform: scale(1.08);
}

[data-theme="light"] .btn-theme-topbar {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #d97706;
}

[data-theme="light"] .btn-theme-topbar:hover {
  background: #fef3c7;
  border-color: #d97706;
}

/* Sidebar Theme Toggle Menu Item */
.theme-toggle-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  user-select: none !important;
}

.theme-toggle-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  letter-spacing: 0.3px;
  transition: var(--transition);
}

[data-theme="light"] .theme-toggle-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.25);
}

/* Auth Screens Theme Toggle Bar */
.auth-top-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  width: 100%;
}

.auth-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-theme-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

[data-theme="light"] .auth-theme-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .auth-theme-btn:hover {
  background: #ffffff;
  color: #4f46e5;
  border-color: #4f46e5;
}

/* Premium Login Screen Aesthetics */
.auth-pro-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.auth-feature-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.auth-feature-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

[data-theme="light"] .auth-feature-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.auth-forgot-link {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.auth-forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Comprehensive Light Mode Overrides
   ========================================================================== */
[data-theme="light"] {
  background-color: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] body {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .ambient-glow {
  opacity: 0.07 !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #0f172a;
}

[data-theme="light"] .card-glass {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .card-header-styled {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .card-header-styled h2,
[data-theme="light"] .card-header-styled h3 {
  color: #0f172a !important;
}

[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .stat-card .stat-value {
  color: #0f172a !important;
}

[data-theme="light"] .stat-card .stat-label {
  color: #64748b !important;
}

[data-theme="light"] .dash-greeting-title {
  background: linear-gradient(135deg, #0f172a 35%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0f172a !important;
}

[data-theme="light"] .dash-greeting-sub {
  color: #64748b !important;
}

[data-theme="light"] .screen-header-title {
  color: #0f172a !important;
}

[data-theme="light"] #app-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Light mode Navbar SLT CALCO Brand Logo Text - Crisp & Sharp Gradient */
[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #0f172a 35%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0f172a !important;
}

/* Flutter Hero Card: Calculate SLT & Subtitle must ALWAYS be crisp white on vibrant gradient in both dark and light modes */
.flutter-hero-card .flutter-hero-title,
[data-theme="light"] .flutter-hero-card .flutter-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.flutter-hero-card .flutter-hero-sub,
[data-theme="light"] .flutter-hero-card .flutter-hero-sub {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.flutter-hero-card .flutter-hero-icon-wrap,
[data-theme="light"] .flutter-hero-card .flutter-hero-icon-wrap {
  color: #ffffff !important;
}

/* Light Theme styles for Global Centered Download Toast Card */
[data-theme="light"] .global-download-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
}

[data-theme="light"] .download-modal-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 35px rgba(59, 130, 246, 0.12) !important;
}

[data-theme="light"] .download-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .download-modal-subtitle {
  color: #64748b !important;
}

[data-theme="light"] .download-progress-track {
  background: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .download-status-indicator {
  color: #0284c7 !important;
}

[data-theme="light"] .download-center-graphic {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.12)) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .download-arrow-icon {
  background: #ffffff !important;
  color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .topnav-item {
  color: #475569 !important;
}

[data-theme="light"] .topnav-item:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .topnav-item.active {
  background: rgba(79, 70, 229, 0.12) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .user-pill-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .user-pill-name {
  color: #0f172a !important;
}

[data-theme="light"] .user-dropdown-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .dropdown-name {
  color: #0f172a !important;
}

[data-theme="light"] .dropdown-link {
  color: #334155 !important;
}

[data-theme="light"] .dropdown-link:hover {
  background: #f1f5f9 !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .dropdown-hr {
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #app-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .menu-item {
  color: #1e293b !important;
}

[data-theme="light"] .menu-item i {
  color: #2563eb !important;
  opacity: 1 !important;
}

[data-theme="light"] .menu-item span {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .menu-item:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .menu-item:hover i {
  color: #1d4ed8 !important;
}

[data-theme="light"] .menu-item.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .menu-item.active i {
  color: #2563eb !important;
}

[data-theme="light"] .menu-item.active span {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .menu-category {
  color: #475569 !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
}

[data-theme="light"] .topnav-item {
  color: #334155 !important;
}

[data-theme="light"] .topnav-item i {
  color: #2563eb !important;
  opacity: 1 !important;
}

[data-theme="light"] .topnav-item span {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .topnav-item:hover i {
  color: #1d4ed8 !important;
}

[data-theme="light"] .topnav-item.active i {
  color: #2563eb !important;
}

[data-theme="light"] .brand-name {
  color: #0f172a !important;
}

[data-theme="light"] .sidebar-close-btn i {
  color: #0f172a !important;
}

[data-theme="light"] .sidebar-profile-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .profile-greeting {
  color: #0f172a !important;
}

[data-theme="light"] .profile-email {
  color: #64748b !important;
}

[data-theme="light"] .btn-theme-topbar,
[data-theme="light"] .btn-mobile-menu {
  color: #0f172a !important;
}

[data-theme="light"] .form-control-styled {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control-styled:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18) !important;
}

[data-theme="light"] .form-label {
  color: #334155 !important;
}

[data-theme="light"] .form-control-styled::placeholder {
  color: #94a3b8 !important;
}

/* Light Mode Table Containers & Styling */
[data-theme="light"] .table-responsive,
[data-theme="light"] .eval-table-wrapper {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .table-styled thead th,
[data-theme="light"] .eval-bidders-modern-table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

[data-theme="light"] .table-styled tbody tr,
[data-theme="light"] .eval-bidders-modern-table tbody tr {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .table-styled tbody tr:nth-child(even),
[data-theme="light"] .eval-bidders-modern-table tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

[data-theme="light"] .table-styled tbody tr:hover,
[data-theme="light"] .table-styled tbody tr:hover td,
[data-theme="light"] .eval-bidders-modern-table tbody tr.eval-bidder-row:hover,
[data-theme="light"] .eval-bidders-modern-table tbody tr.eval-bidder-row:hover td {
  background: #f1f5f9 !important;
}

[data-theme="light"] .table-styled tbody td,
[data-theme="light"] .eval-bidders-modern-table tbody td {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .eval-company-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .eval-company-sub {
  color: #64748b !important;
}

[data-theme="light"] .eval-serial-pill {
  background: rgba(79, 70, 229, 0.1) !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .eval-price-container {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .eval-price-val {
  color: #059669 !important;
}

[data-theme="light"] .btn-secondary-styled {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-secondary-styled:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

[data-theme="light"] .btn-back-circle {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-back-circle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .qcbs-weight-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .qcbs-fin-box {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

[data-theme="light"] .qcbs-tech-box {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

[data-theme="light"] .qcbs-custom-box {
  background: #faf5ff !important;
  border-color: #d8b4fe !important;
}

[data-theme="light"] .qcbs-weight-val {
  color: #0f172a !important;
}

[data-theme="light"] .qcbs-weight-sub {
  color: #64748b !important;
}

[data-theme="light"] .qcbs-multiplier-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .qcbs-multiplier-input:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="light"] .qcbs-preset-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] .qcbs-preset-btn:hover {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #6b21a8 !important;
}

[data-theme="light"] .qcbs-preset-btn.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  border-color: #6d28d9 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
}

/* ==========================================================================
   ADMIN PANEL — LIGHT THEME PERFECTION (Executive Glassmorphism & Contrast)
   ========================================================================== */

/* 1. Admin Fullscreen Layout in Light Mode */
[data-theme="light"] body.admin-mode,
body.theme-light.admin-mode {
  background: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="light"] body.admin-mode #app-container,
body.theme-light.admin-mode #app-container {
  background: #f8fafc !important;
}

[data-theme="light"] body.admin-mode #app-main,
body.theme-light.admin-mode #app-main {
  background: radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 88% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
              #f8fafc !important;
  color: #0f172a !important;
}

/* 2. Admin Top Executive Bar in Light Mode */
[data-theme="light"] .admin-navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .admin-nav-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .admin-nav-subtitle {
  color: #64748b !important;
  font-weight: 600 !important;
}

[data-theme="light"] .btn-admin-pill {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .btn-admin-pill:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .btn-admin-pill.danger {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

[data-theme="light"] .btn-admin-pill.danger:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
  color: #b91c1c !important;
}

/* 3. Dashboard Navigation Cards Grid in Light Mode */
[data-theme="light"] .flutter-admin-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

[data-theme="light"] .flutter-admin-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--card-accent, #6366f1) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 0 24px var(--card-accent-glow, rgba(99, 102, 241, 0.12)) !important;
}

[data-theme="light"] .flutter-admin-card-icon {
  background: var(--card-accent-bg, rgba(99, 102, 241, 0.1)) !important;
  border: 1px solid var(--card-accent-border, rgba(99, 102, 241, 0.25)) !important;
  color: var(--card-accent, #6366f1) !important;
  box-shadow: 0 4px 12px var(--card-accent-glow, rgba(99, 102, 241, 0.1)) !important;
}

[data-theme="light"] .flutter-admin-card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .flutter-admin-card-desc {
  color: #64748b !important;
  font-weight: 500 !important;
}

/* 4. Sub-screens Header Bar (Back button + Title) */
[data-theme="light"] .screen-header-bar {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .screen-header-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .btn-back-circle {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .btn-back-circle:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateX(-2px) !important;
}

/* 5. All Admin Screen Containers & Glass Cards */
[data-theme="light"] [id^="screen-admin-"] .card-glass {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
  color: #0f172a !important;
}

[data-theme="light"] [id^="screen-admin-"] .card-header-styled {
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] [id^="screen-admin-"] .card-header-styled h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] [id^="screen-admin-"] .card-header-styled h2 i {
  color: #4f46e5 !important;
}

[data-theme="light"] [id^="screen-admin-"] p {
  color: #64748b !important;
}

/* 6. Admin Tables (Users, Plans, Features, Notices, Orders, NPPI) */
[data-theme="light"] [id^="screen-admin-"] .table-responsive {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] [id^="screen-admin-"] .table-styled {
  background: #ffffff !important;
}

[data-theme="light"] [id^="screen-admin-"] .table-styled thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  padding: 13px 16px !important;
}

[data-theme="light"] [id^="screen-admin-"] .table-styled tbody td {
  color: #1e293b !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 13px 16px !important;
}

[data-theme="light"] [id^="screen-admin-"] .table-styled tbody tr:nth-child(even) {
  background: #fafbfc !important;
}

[data-theme="light"] [id^="screen-admin-"] .table-styled tbody tr:hover,
[data-theme="light"] [id^="screen-admin-"] .table-styled tbody tr:hover td {
  background: #f1f5f9 !important;
}

/* 7. Admin Search & Form Controls */
[data-theme="light"] [id^="screen-admin-"] .form-control-styled {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] [id^="screen-admin-"] .form-control-styled::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] [id^="screen-admin-"] .form-control-styled:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

[data-theme="light"] [id^="screen-admin-"] .form-label {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* 8. User Details Screen Specific Elements */
[data-theme="light"] #screen-admin-user-details strong {
  color: #0f172a !important;
}

[data-theme="light"] #screen-admin-user-details span[style*="text-muted"] {
  color: #64748b !important;
}

[data-theme="light"] #screen-admin-user-details div[style*="border-bottom"] {
  border-bottom-color: #f1f5f9 !important;
}

[data-theme="light"] #aud-decrypted-password {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] #screen-admin-user-details h3 {
  color: #0f172a !important;
}

/* 9. Admin Badges in Light Mode */
[data-theme="light"] [id^="screen-admin-"] .badge-status {
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

[data-theme="light"] [id^="screen-admin-"] .badge-status.badge-winner,
[data-theme="light"] [id^="screen-admin-"] .badge-status:not(.badge-warning):not(.badge-danger) {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] [id^="screen-admin-"] .badge-status.badge-warning {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

[data-theme="light"] [id^="screen-admin-"] .badge-status.badge-danger {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

[data-theme="light"] .auth-glass-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.07), 0 0 40px rgba(79, 70, 229, 0.06) !important;
}

[data-theme="light"] .auth-brand-title {
  color: #0f172a !important;
}

[data-theme="light"] .auth-brand-subtitle {
  color: #64748b !important;
}

[data-theme="light"] .auth-hotline-pill {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .auth-hotline-pill:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #0f172a !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .auth-card-footer {
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

[data-theme="light"] .modal-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-body {
  color: #334155 !important;
}

[data-theme="light"] .modal-footer {
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .step-item .step-circle {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

[data-theme="light"] .step-item .step-label {
  color: #64748b !important;
}

[data-theme="light"] .step-item.active .step-circle {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}

[data-theme="light"] .step-item.active .step-label {
  color: #4f46e5 !important;
}

[data-theme="light"] .user-plan-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .flutter-stat-card {
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

/* Toast / Snackbar in Light Mode */
[data-theme="light"] .toast-msg {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .toast-msg div {
  color: #ffffff !important;
}

/* Plan Cards in Light Mode */
[data-theme="light"] .plan-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .plan-card:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12) !important;
}

[data-theme="light"] .plan-card.featured {
  background: #ffffff !important;
  border: 2px solid #6366f1 !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12) !important;
}

[data-theme="light"] .plan-price-large {
  color: #0f172a !important;
}

[data-theme="light"] .plan-price-large span {
  color: #64748b !important;
}

[data-theme="light"] .plan-features-list li {
  color: #334155 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Universal PDF Red Icon Styling */
.fa-file-pdf,
.pdf-icon-red,
.download-file-icon {
  color: #ef4444 !important;
}

/* QCBS Add Bidder Box & Empty State */
.qcbs-add-bidder-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.qcbs-add-bidder-form {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

.qcbs-add-bidder-form .qcbs-two-col-row {
  display: contents;
}

.qcbs-btn-wrap {
  display: flex;
  align-items: flex-end;
}

.qcbs-btn-add {
  height: 44px;
  padding: 0 24px;
  font-weight: 600;
  white-space: nowrap;
  width: 100%;
}

.qcbs-empty-state-box {
  text-align: center;
  padding: 48px 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin-bottom: 12px;
}

.qcbs-empty-icon {
  font-size: 42px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.qcbs-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.qcbs-empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   COMPREHENSIVE LIGHT THEME OVERRIDES (CRYSTAL CLEAR VISIBILITY)
   ========================================================================== */

/* 1. Account / My Profile Screen in Light Mode */
[data-theme="light"] #screen-profile .profile-hero-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] #screen-profile .profile-hero-name {
  color: #0f172a !important;
}

[data-theme="light"] #screen-profile .profile-hero-email {
  color: #64748b !important;
}

[data-theme="light"] #screen-profile .profile-hero-meta,
[data-theme="light"] #screen-profile .profile-hero-meta div,
[data-theme="light"] #screen-profile .profile-hero-meta span {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] #screen-profile .card-glass {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

[data-theme="light"] #screen-profile .card-glass h2 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] #screen-profile .card-glass strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] #screen-profile .card-glass span[style*="text-muted"],
[data-theme="light"] #screen-profile .card-glass p {
  color: #64748b !important;
}

[data-theme="light"] #screen-profile .card-glass div[style*="border-bottom"] {
  border-bottom-color: #f1f5f9 !important;
}

[data-theme="light"] .profile-feature-badge.active,
[data-theme="light"] #screen-profile .profile-feature-badge.active {
  background: #ecfdf5 !important;
  border: 1.5px solid #a7f3d0 !important;
  color: #059669 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .profile-feature-badge.locked,
[data-theme="light"] #screen-profile .profile-feature-badge.locked {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

[data-theme="light"] #screen-profile .btn-secondary-styled {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}

[data-theme="light"] #screen-profile .btn-secondary-styled:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

[data-theme="light"] #screen-profile .btn-account-logout {
  background: #fef2f2 !important;
  border: 1.5px solid #fecaca !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
}

[data-theme="light"] #screen-profile .btn-account-logout:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

/* 2. Topbar, Mobile Toggle & Navigation in Light Mode */
[data-theme="light"] .mobile-toggle-btn {
  color: #0f172a !important;
}

[data-theme="light"] .stat-card-title-box h3 {
  color: #0f172a !important;
}

[data-theme="light"] .plan-stat strong {
  color: #0f172a !important;
}

[data-theme="light"] .sidebar-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .user-plan-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* 3. Evaluation Setup & Results in Light Mode */
[data-theme="light"] .eval-add-bidder-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .dropzone-box {
  background: #f8fafc !important;
  border: 2px dashed #cbd5e1 !important;
}

[data-theme="light"] .dropzone-box h4 {
  color: #0f172a !important;
}

[data-theme="light"] .dropzone-box p {
  color: #64748b !important;
}

[data-theme="light"] .flutter-stats-row {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .flutter-stat-item .stat-label {
  color: #64748b !important;
}

[data-theme="light"] .winner-price {
  color: #065f46 !important;
}

/* 4. QCBS Consultant Screen in Light Mode */
[data-theme="light"] .qcbs-add-bidder-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}

[data-theme="light"] .qcbs-empty-state-box {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

[data-theme="light"] .qcbs-empty-icon {
  color: #94a3b8 !important;
}

[data-theme="light"] .qcbs-empty-title {
  color: #0f172a !important;
}

[data-theme="light"] .qcbs-empty-desc {
  color: #64748b !important;
}

[data-theme="light"] .qcbs-tech-pill {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
}

[data-theme="light"] .qcbs-tech-pill span,
[data-theme="light"] .qcbs-tech-pill i {
  color: #d97706 !important;
}

[data-theme="light"] .eval-price-container {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .eval-price-val,
[data-theme="light"] .eval-currency-sym {
  color: #059669 !important;
}

/* 5. Additional Screen Glass Cards in Light Mode */
[data-theme="light"] #notices-container .card-glass,
[data-theme="light"] #screen-contact .card-glass,
[data-theme="light"] #screen-change-password .card-glass,
[data-theme="light"] #screen-orders .card-glass,
[data-theme="light"] #screen-payment .card-glass,
[data-theme="light"] #screen-history .card-glass,
[data-theme="light"] #screen-qcbs .card-glass,
[data-theme="light"] #screen-qcbs-result .card-glass,
[data-theme="light"] #screen-evaluation-setup .card-glass,
[data-theme="light"] #screen-evaluation-review .card-glass,
[data-theme="light"] #screen-evaluation-result .card-glass {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

/* ==========================================================================
   TABLE ACTION BUTTONS & DUAL THEME PILL CONTROLS
   ========================================================================== */
.table-actions-group {
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
}

.btn-table-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.btn-table-action .fa-eye {
  color: #38bdf8 !important;
  font-size: 11px !important;
}

.btn-table-action .fa-file-pdf,
.fa-file-pdf {
  color: #ef4444 !important;
  font-size: 11px !important;
}

[data-theme="light"] .btn-table-action {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-table-action:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-table-action .fa-eye {
  color: #0284c7 !important;
}

[data-theme="light"] .btn-table-action .fa-file-pdf {
  color: #ef4444 !important;
}

/* ==========================================================================
   FLUTTER EVALUATION & QCBS DESKTOP COMPONENTS (Base Styles)
   ========================================================================== */
.flutter-mobile-offer-sub,
.flutter-qcbs-scores-sub,
.flutter-mobile-export-wrap {
  display: none !important;
}

.flutter-rank-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin: 0 auto;
}

.flutter-rank-box.winner-rank {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.flutter-bidder-meta,
.flutter-qcbs-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flutter-company-name {
  font-weight: 700;
  color: var(--text-main);
}

.flutter-company-name.winner-name {
  color: #fbbf24 !important;
}

.flutter-qcbs-total-score {
  font-family: monospace;
  font-weight: 900;
  font-size: 15px;
  color: #10b981;
}

.flutter-qcbs-total-score.winner-score {
  color: #fbbf24 !important;
}

[data-theme="light"] .flutter-rank-box {
  background: #e0f2fe;
  color: #0284c7;
}

[data-theme="light"] .flutter-rank-box.winner-rank {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

[data-theme="light"] .flutter-company-name {
  color: #0f172a;
}

[data-theme="light"] .flutter-company-name.winner-name {
  color: #d97706 !important;
}

[data-theme="light"] .flutter-qcbs-total-score {
  color: #059669;
}

[data-theme="light"] .flutter-qcbs-total-score.winner-score {
  color: #d97706 !important;
}

/* Strictly ensure no currency signs or symbols anywhere in QCBS */
#screen-qcbs .eval-currency-sym,
#screen-qcbs .eval-currency-unit,
#screen-qcbs .currency-sign,
#screen-qcbs .currency-sym,
#screen-qcbs [class*="currency-sym"],
#screen-qcbs [class*="currency-unit"] {
  display: none !important;
}

#screen-qcbs .eval-price-container::before,
#screen-qcbs .eval-price-container::after,
#screen-qcbs .cell-price::before,
#screen-qcbs .cell-price::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE VIEWPORT OPTIMIZATIONS (<= 768px)
   Minimal size, best fitting, native-app feel across all screens
   ========================================================================== */
@media (max-width: 768px) {
  body.sidebar-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Sleek Minimal Topbar */
  #app-header.app-topnav {
    height: 54px !important;
    padding: 0 12px !important;
  }

  .topnav-inner {
    height: 54px !important;
  }

  .brand-logo-wrap {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-name {
    font-size: 14.5px !important;
    letter-spacing: -0.3px !important;
  }

  .brand-tag {
    font-size: 9px !important;
    padding: 1px 5px !important;
  }

  .topnav-actions {
    gap: 8px !important;
  }

  .btn-theme-topbar {
    width: 34px !important;
    height: 34px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
  }

  .user-pill-btn {
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .user-avatar-sm {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .user-pill-details,
  .pill-arrow {
    display: none !important;
  }

  .mobile-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  [data-theme="light"] .mobile-toggle-btn {
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
  }

  /* Content area spacing for bottom navigation */
  #app-content {
    padding: 12px 10px 84px 10px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Compact Dashboard Hero Card */
  .flutter-hero-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
  }

  .flutter-hero-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    font-size: 19px !important;
    margin: 0 auto 8px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25) !important;
  }

  .flutter-hero-title {
    font-size: 17px !important;
    margin-bottom: 3px !important;
    letter-spacing: -0.3px !important;
  }

  .flutter-hero-sub {
    font-size: 12px !important;
    margin: 0 auto 12px !important;
    line-height: 1.35 !important;
    opacity: 0.9 !important;
  }

  .flutter-hero-btn {
    padding: 6px 18px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
    border-radius: 20px !important;
  }

  /* Compact QCBS Banner */
  .flutter-qcbs-banner {
    padding: 10px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  .qcbs-icon-box {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }

  .qcbs-title {
    font-size: 13.5px !important;
  }

  .qcbs-desc {
    font-size: 11px !important;
  }

  .qcbs-badge {
    font-size: 9.5px !important;
    padding: 2px 7px !important;
  }

  /* Compact Quick Stat Cards */
  .flutter-stat-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .stat-card-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .stat-card-title-box h3 {
    font-size: 14.5px !important;
  }

  .stat-card-body {
    margin: 10px 0 !important;
    gap: 6px !important;
  }

  .stat-detail-row {
    font-size: 12px !important;
  }

  .stat-card-footer {
    padding-top: 8px !important;
    font-size: 12px !important;
  }

  /* Minimal, Sleek Table Cards */
  .table-styled tbody {
    gap: 10px !important;
  }

  .table-styled tbody tr {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    gap: 0 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  }

  [data-theme="light"] .table-styled tbody tr {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .table-styled tbody td {
    padding: 5px 0 !important;
    font-size: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    min-height: auto !important;
  }

  [data-theme="light"] .table-styled tbody td {
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .table-styled tbody td::before {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    margin-right: 8px !important;
  }

  .table-styled tbody td:last-child,
  .table-styled tbody td[data-label="Actions"],
  .table-styled tbody td[data-label="Action"] {
    border-bottom: none !important;
    padding-top: 6px !important;
    padding-bottom: 2px !important;
  }

  .table-styled tbody td .badge-status,
  .table-styled tbody td .badge-winner,
  .table-styled tbody td .badge-status-winner {
    font-size: 11px !important;
    padding: 2.5px 8px !important;
    max-width: 190px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Override 44px min-height inside tables */
  .table-styled .btn-primary-styled,
  .table-styled .btn-secondary-styled,
  .table-styled .btn-table-action,
  .table-styled button {
    min-height: 28px !important;
    height: 28px !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
  }

  /* Compact Section Headers */
  .card-header-styled {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }

  .card-header-styled h2,
  .card-header-styled h3 {
    font-size: 15px !important;
  }

  /* Compact Form Controls on Mobile */
  .form-control-styled {
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  /* Compact Result Cards */
  .flutter-slt-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
  }

  .slt-main-value {
    font-size: clamp(24px, 6vw, 36px) !important;
  }

  .winner-banner-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  /* Compact Mobile Bottom Navigation */
  .mobile-bottom-nav {
    height: 58px !important;
    padding: 0 8px !important;
  }

  .mobile-nav-item {
    font-size: 10px !important;
    gap: 3px !important;
  }

  .mobile-nav-item i {
    font-size: 17px !important;
  }

  /* ==========================================================================
     FLUTTER-INSPIRED MOBILE SCREENS: SETUP, REVIEW, RESULT & QCBS (<= 768px)
     Exact single-row layout & styling from Flutter mobile app
     ========================================================================== */

  /* 1. Reset generic table card bloat for the 4 evaluation screens */
  #screen-evaluation-setup #bidders-input-table,
  #screen-evaluation-review #rev-bidders-table,
  #screen-evaluation-result .table-styled,
  #screen-qcbs #qcbs-bidders-table,
  #screen-qcbs #qcbs-results-section .table-styled {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
  }

  #screen-evaluation-setup #bidders-input-table thead,
  #screen-evaluation-review #rev-bidders-table thead,
  #screen-evaluation-result .table-styled thead,
  #screen-qcbs #qcbs-bidders-table thead,
  #screen-qcbs #qcbs-results-section .table-styled thead {
    display: none !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody,
  #screen-evaluation-review #rev-bidders-table tbody,
  #screen-evaluation-result .table-styled tbody,
  #screen-qcbs #qcbs-bidders-table tbody,
  #screen-qcbs #qcbs-results-section .table-styled tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody tr,
  #screen-evaluation-review #rev-bidders-table tbody tr,
  #screen-evaluation-result .table-styled tbody tr,
  #screen-qcbs #qcbs-bidders-table tbody tr,
  #screen-qcbs #qcbs-results-section .table-styled tbody tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  [data-theme="light"] #screen-evaluation-setup #bidders-input-table tbody tr,
  [data-theme="light"] #screen-evaluation-review #rev-bidders-table tbody tr,
  [data-theme="light"] #screen-evaluation-result .table-styled tbody tr,
  [data-theme="light"] #screen-qcbs #qcbs-bidders-table tbody tr,
  [data-theme="light"] #screen-qcbs #qcbs-results-section .table-styled tbody tr {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody tr.winner-row,
  #screen-evaluation-result .table-styled tbody tr.winner-row,
  #screen-qcbs #qcbs-results-section .table-styled tbody tr:first-child {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  }

  [data-theme="light"] #screen-evaluation-setup #bidders-input-table tbody tr.winner-row,
  [data-theme="light"] #screen-evaluation-result .table-styled tbody tr.winner-row,
  [data-theme="light"] #screen-qcbs #qcbs-results-section .table-styled tbody tr:first-child {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody td,
  #screen-evaluation-review #rev-bidders-table tbody td,
  #screen-evaluation-result .table-styled tbody td,
  #screen-qcbs #qcbs-bidders-table tbody td,
  #screen-qcbs #qcbs-results-section .table-styled tbody td {
    display: block !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    width: auto !important;
    max-width: none !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody td::before,
  #screen-evaluation-review #rev-bidders-table tbody td::before,
  #screen-evaluation-result .table-styled tbody td::before,
  #screen-qcbs #qcbs-bidders-table tbody td::before,
  #screen-qcbs #qcbs-results-section .table-styled tbody td::before {
    display: none !important;
    content: none !important;
  }

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

  /* 2. SCREEN 9: EVALUATION RESULT SCREEN (Matches result_screen.dart) */
  #screen-evaluation-result #btn-download-pdf {
    display: none !important;
  }

  .flutter-mobile-export-wrap {
    display: block !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  .btn-export-pdf-flutter {
    width: 100% !important;
    height: 48px !important;
    border-radius: 16px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
  }

  .btn-export-pdf-flutter:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
  }

  #screen-evaluation-result .flutter-slt-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2b4d 50%, #0a1e3a 100%) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25) !important;
  }

  #screen-evaluation-result .slt-pill-label {
    font-size: 11px !important;
    letter-spacing: 2px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
  }

  #screen-evaluation-result .slt-currency-tag {
    font-size: 12px !important;
    margin-top: 6px !important;
    letter-spacing: 1px !important;
  }

  #screen-evaluation-result .slt-main-value {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.6) !important;
    line-height: 1.15 !important;
  }

  #screen-evaluation-result .flutter-stats-row {
    padding: 10px 8px !important;
    border-radius: 14px !important;
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #screen-evaluation-result .flutter-stat-item {
    min-width: 68px !important;
    padding: 2px 4px !important;
  }

  #screen-evaluation-result .flutter-stat-item .stat-label {
    font-size: 9.5px !important;
  }

  #screen-evaluation-result .flutter-stat-item .stat-val {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  #screen-evaluation-result .cell-rank {
    flex: 0 0 30px !important;
    width: 30px !important;
  }

  #screen-evaluation-result .flutter-rank-box {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  #screen-evaluation-result .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 4px !important;
  }

  #screen-evaluation-result .flutter-bidder-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  #screen-evaluation-result .flutter-company-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  #screen-evaluation-result .flutter-mobile-offer-sub {
    display: block !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  [data-theme="light"] #screen-evaluation-result .flutter-mobile-offer-sub {
    color: #64748b !important;
  }

  #screen-evaluation-result .cell-status {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #screen-evaluation-result .cell-status .badge-status,
  #screen-evaluation-result .cell-status .badge-status-winner,
  #screen-evaluation-result .cell-status .badge-status-eligible,
  #screen-evaluation-result .cell-status .badge-status-below-slt,
  #screen-evaluation-result .cell-status .badge-status-non-responsive {
    font-size: 10px !important;
    padding: 4px 9px !important;
    border-radius: 20px !important;
    max-width: 125px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0.2px !important;
    font-weight: 700 !important;
  }

  #screen-evaluation-result .eval-result-action-bar {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
  }

  #screen-evaluation-result .eval-result-action-bar button {
    flex: 1 !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  /* 3. SCREEN 8: EVALUATION REVIEW SCREEN (Matches review_screen.dart) */
  #screen-evaluation-review .grid-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  #screen-evaluation-review .grid-4 .stat-card {
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  #screen-evaluation-review .grid-4 .stat-label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  #screen-evaluation-review .grid-4 .stat-value {
    font-size: 14.5px !important;
    font-weight: 700 !important;
  }

  #screen-evaluation-review #rev-bidders-table .cell-serial {
    flex: 0 0 28px !important;
    width: 28px !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-serial-pill {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-serial-num {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  #screen-evaluation-review #rev-bidders-table .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 6px !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-company-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  [data-theme="light"] #screen-evaluation-review #rev-bidders-table .eval-company-name {
    color: #0f172a !important;
  }

  #screen-evaluation-review #rev-bidders-table .cell-price {
    flex: 0 0 auto !important;
    text-align: right !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-price-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-currency-sym {
    display: none !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-price-val {
    color: #10b981 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
  }

  [data-theme="light"] #screen-evaluation-review #rev-bidders-table .eval-price-val {
    color: #059669 !important;
  }

  #screen-evaluation-review #rev-bidders-table .eval-currency-unit {
    display: none !important;
  }

  #screen-evaluation-review .user-plan-card {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
  }

  #screen-evaluation-review .eval-review-action-bar {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  #screen-evaluation-review .eval-review-action-bar button {
    flex: 1 !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #screen-evaluation-review .eval-review-action-bar #btn-run-calculate {
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  }

  /* 4. SCREEN 7: EVALUATION SETUP SCREEN (Matches evaluation_setup_screen.dart) */
  #screen-evaluation-setup .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #screen-evaluation-setup .nppi-flex-row {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #screen-evaluation-setup #eval-nppi-custom {
    width: 90px !important;
    min-width: 80px !important;
    flex: 0 0 90px !important;
  }

  #screen-evaluation-setup #nppi-chips-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 2px 0 4px !important;
  }

  #screen-evaluation-setup .nppi-chip {
    padding: 4px 10px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  #screen-evaluation-setup .eval-add-bidder-box {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  #screen-evaluation-setup .eval-add-bidder-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  #screen-evaluation-setup .eval-add-bidder-grid .form-control-styled {
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }

  #screen-evaluation-setup .eval-btn-add-bidder {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  }

  #screen-evaluation-setup #bidders-input-table .cell-serial {
    flex: 0 0 26px !important;
    width: 26px !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-serial-pill {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-serial-num {
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  #screen-evaluation-setup #bidders-input-table .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 6px !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-company-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  [data-theme="light"] #screen-evaluation-setup #bidders-input-table .eval-company-name {
    color: #0f172a !important;
  }

  #screen-evaluation-setup #bidders-input-table .cell-price {
    flex: 0 0 auto !important;
    text-align: right !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-price-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-currency-sym {
    display: none !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-price-val {
    color: #10b981 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
  }

  [data-theme="light"] #screen-evaluation-setup #bidders-input-table .eval-price-val {
    color: #059669 !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-currency-unit {
    display: none !important;
  }

  #screen-evaluation-setup #bidders-input-table .cell-action {
    flex: 0 0 28px !important;
    width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #screen-evaluation-setup #bidders-input-table .eval-btn-del {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  #screen-evaluation-setup .eval-setup-action-bar {
    width: 100% !important;
    margin-top: 16px !important;
  }

  #screen-evaluation-setup .eval-setup-action-bar button {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  }

  /* 5. SCREEN 10: QCBS CALCULATION SCREEN (Matches qcbs_calculation_screen.dart) */
  #screen-qcbs .qcbs-weight-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  #screen-qcbs .qcbs-fin-box,
  #screen-qcbs .qcbs-tech-box {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  #screen-qcbs .qcbs-custom-box {
    grid-column: 1 / -1 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  #screen-qcbs .qcbs-weight-header {
    font-size: 11px !important;
  }

  #screen-qcbs .qcbs-weight-val {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 2px 0 !important;
  }

  #screen-qcbs .qcbs-weight-sub {
    font-size: 10.5px !important;
  }

  #screen-qcbs .qcbs-custom-controls {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  #screen-qcbs .qcbs-multiplier-input {
    width: 80px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  #screen-qcbs .qcbs-preset-btn-group {
    flex: 1 !important;
    display: flex !important;
    gap: 4px !important;
  }

  #screen-qcbs .qcbs-preset-btn {
    padding: 4px 6px !important;
    font-size: 10.5px !important;
    border-radius: 8px !important;
    flex: 1 !important;
  }

  #screen-qcbs .qcbs-add-bidder-box {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  #screen-qcbs .qcbs-add-bidder-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #screen-qcbs .qcbs-add-bidder-grid .form-control-styled {
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }

  #screen-qcbs .qcbs-add-bidder-grid button {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  }

  #screen-qcbs #qcbs-bidders-table .cell-serial {
    flex: 0 0 24px !important;
    width: 24px !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-serial-pill {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-serial-num {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  #screen-qcbs #qcbs-bidders-table .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 4px !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-company-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-bidders-table .eval-company-name {
    color: #0f172a !important;
  }

  #screen-qcbs #qcbs-bidders-table .cell-price {
    flex: 0 0 auto !important;
    text-align: right !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-price-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  #screen-qcbs .eval-currency-sym,
  #screen-qcbs .eval-currency-unit {
    display: none !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-price-val {
    color: #10b981 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-bidders-table .eval-price-val {
    color: #059669 !important;
  }

  #screen-qcbs #qcbs-bidders-table .cell-tech {
    flex: 0 0 auto !important;
  }

  #screen-qcbs #qcbs-bidders-table .qcbs-tech-pill {
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  #screen-qcbs #qcbs-bidders-table .qcbs-tech-max {
    display: none !important;
  }

  #screen-qcbs #qcbs-bidders-table .cell-action {
    flex: 0 0 24px !important;
    width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #screen-qcbs #qcbs-bidders-table .eval-btn-del {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  #screen-qcbs .qcbs-calc-action-bar {
    width: 100% !important;
    margin-top: 14px !important;
  }

  #screen-qcbs .qcbs-calc-action-bar #btn-qcbs-calc {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  }

  #screen-qcbs #qcbs-winner-banner {
    padding: 12px 14px !important;
    border-radius: 14px 14px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  #screen-qcbs #qcbs-winner-banner .fa-trophy {
    font-size: 18px !important;
  }

  #screen-qcbs #qcbs-winner-banner > div:first-child > div:first-child {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  #screen-qcbs #qcbs-winner-name {
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  #screen-qcbs #qcbs-winner-score {
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  #screen-qcbs #qcbs-results-tbody .cell-rank {
    flex: 0 0 24px !important;
    width: 24px !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-rank-box {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  #screen-qcbs #qcbs-results-tbody .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 6px !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-qcbs-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-company-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-results-tbody .flutter-company-name {
    color: #0f172a !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-qcbs-scores-sub {
    display: block !important;
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-results-tbody .flutter-qcbs-scores-sub {
    color: #64748b !important;
  }

  #screen-qcbs #qcbs-results-tbody .cell-total {
    flex: 0 0 auto !important;
    text-align: right !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-qcbs-total-score {
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: monospace !important;
    color: #10b981 !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-results-tbody .flutter-qcbs-total-score {
    color: #059669 !important;
  }

  #screen-qcbs #qcbs-results-tbody .flutter-qcbs-total-score.winner-score {
    color: #fbbf24 !important;
  }

  [data-theme="light"] #screen-qcbs #qcbs-results-tbody .flutter-qcbs-total-score.winner-score {
    color: #d97706 !important;
  }

  /* ==========================================================================
     MOBILE REFINEMENTS: EMPTY STATE CENTERING, QCBS FORM, DASHBOARD & ORDERS
     ========================================================================== */

  /* 1. Universal Empty State Centering in Tables across Mobile */
  #screen-evaluation-setup #bidders-input-table tbody tr.eval-empty-row,
  #screen-evaluation-setup #bidders-input-table tbody tr:has(.eval-empty-cell),
  #screen-evaluation-review #rev-bidders-table tbody tr.eval-empty-row,
  #screen-evaluation-review #rev-bidders-table tbody tr:has(.eval-empty-cell),
  .table-styled tbody tr.eval-empty-row,
  .table-styled tbody tr:has(td[colspan]) {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1.5px dashed rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 28px 14px !important;
    margin: 8px 0 !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  [data-theme="light"] #screen-evaluation-setup #bidders-input-table tbody tr.eval-empty-row,
  [data-theme="light"] #screen-evaluation-setup #bidders-input-table tbody tr:has(.eval-empty-cell),
  [data-theme="light"] .table-styled tbody tr.eval-empty-row,
  [data-theme="light"] .table-styled tbody tr:has(td[colspan]) {
    background: rgba(248, 250, 252, 0.8) !important;
    border-color: #cbd5e1 !important;
  }

  #screen-evaluation-setup #bidders-input-table tbody tr.eval-empty-row td,
  #screen-evaluation-setup #bidders-input-table tbody td.eval-empty-cell,
  .table-styled tbody tr.eval-empty-row td,
  .table-styled tbody td[colspan] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    text-align: center !important;
    background: transparent !important;
  }

  .eval-empty-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .eval-empty-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px dashed rgba(99, 102, 241, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #818cf8 !important;
    font-size: 20px !important;
    margin: 0 auto !important;
  }

  .eval-empty-title {
    font-size: 14px !important;
    color: var(--text-main) !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .eval-empty-desc {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    max-width: 320px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .qcbs-empty-state-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto 12px auto !important;
    width: 100% !important;
    padding: 32px 16px !important;
  }

  /* 2. QCBS Add Bidder Form: Full Row Company, 70/30 Offer+Tech, Centered Button */
  #screen-qcbs .qcbs-add-bidder-box {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #screen-qcbs .qcbs-add-bidder-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  #screen-qcbs .qcbs-field-company {
    width: 100% !important;
  }

  #screen-qcbs .qcbs-add-bidder-form .qcbs-two-col-row {
    display: grid !important;
    grid-template-columns: 6fr 4fr !important; /* 60% offer, 40% tech rating */
    gap: 8px !important;
    width: 100% !important;
  }

  #screen-qcbs .qcbs-field-offer,
  #screen-qcbs .qcbs-field-tech {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* QCBS table company word wrap after space (1 tar niche porer ta) */
  #screen-qcbs .eval-company-name,
  #screen-qcbs .flutter-company-name,
  #screen-qcbs .cell-company span {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
    display: block !important;
  }

  #screen-qcbs .qcbs-btn-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 2px !important;
  }

  #screen-qcbs .qcbs-btn-add {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563EB, #10B981) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    margin: 0 auto !important;
  }

  /* 3. Dashboard Recent Evaluations: Small Minimal 2-Row Layout */
  #screen-dashboard #dash-recent-evals-box table thead {
    display: none !important;
  }

  #screen-dashboard #dash-recent-evals-tbody,
  #screen-dashboard #evals-tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row,
  #screen-dashboard #evals-tbody tr.dash-recent-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "tender winner"
      "offer actions" !important;
    align-items: center !important;
    gap: 6px 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row,
  [data-theme="light"] #screen-dashboard #evals-tbody tr.dash-recent-row {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row td,
  #screen-dashboard #evals-tbody tr.dash-recent-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    min-height: auto !important;
    width: auto !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row td::before,
  #screen-dashboard #evals-tbody tr.dash-recent-row td::before {
    display: none !important;
    content: none !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-tender,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-tender {
    grid-area: tender;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-tender strong,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-tender strong {
    font-size: 13px !important;
    color: #93c5fd !important;
  }

  [data-theme="light"] #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-tender strong,
  [data-theme="light"] #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-tender strong {
    color: #2563eb !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-winner,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-winner {
    grid-area: winner;
    text-align: right;
    display: flex;
    justify-content: flex-end;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-winner .badge-winner,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-winner .badge-winner {
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    max-width: 155px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-offer,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-offer {
    grid-area: offer;
    font-size: 12.5px !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    color: #10b981 !important;
  }

  [data-theme="light"] #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-offer,
  [data-theme="light"] #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-offer {
    color: #059669 !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-date,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-date {
    display: none !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .dash-cell-actions,
  #screen-dashboard #evals-tbody tr.dash-recent-row .dash-cell-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .table-actions-group,
  #screen-dashboard #evals-tbody tr.dash-recent-row .table-actions-group {
    display: flex !important;
    gap: 5px !important;
  }

  #screen-dashboard #dash-recent-evals-tbody tr.dash-recent-row .btn-table-action,
  #screen-dashboard #evals-tbody tr.dash-recent-row .btn-table-action {
    padding: 3px 8px !important;
    font-size: 11px !important;
    height: 26px !important;
    border-radius: 6px !important;
  }

  /* 4. User Payment Orders: Small Minimal 2-Row Card + Modal Popup */
  #screen-orders .table-styled thead {
    display: none !important;
  }

  #screen-orders .table-styled tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #screen-orders .table-styled tbody tr.order-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "id plan status"
      "amount amount action" !important;
    align-items: center !important;
    gap: 6px 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] #screen-orders .table-styled tbody tr.order-row {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  #screen-orders .table-styled tbody tr.order-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    min-height: auto !important;
    width: auto !important;
  }

  #screen-orders .table-styled tbody tr.order-row td::before {
    display: none !important;
    content: none !important;
  }

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

  .order-cell-id {
    grid-area: id;
    font-family: monospace;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #93c5fd !important;
    white-space: nowrap;
  }

  [data-theme="light"] .order-cell-id {
    color: #2563eb !important;
  }

  .order-cell-plan {
    grid-area: plan;
    display: flex !important;
    align-items: center !important;
  }

  .order-cell-plan span {
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
  }

  .order-cell-status {
    grid-area: status;
    text-align: right;
    display: flex;
    justify-content: flex-end;
  }

  .order-cell-status .badge-status {
    font-size: 10.5px !important;
    padding: 3px 8px !important;
  }

  .order-cell-amount {
    grid-area: amount;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    font-family: monospace;
  }

  [data-theme="light"] .order-cell-amount {
    color: #059669 !important;
  }

  .order-cell-action {
    grid-area: action;
    text-align: right;
    display: flex;
    justify-content: flex-end;
  }

  .order-cell-action .btn-table-action {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  /* 5. Result View Screen: Clean Single-Amount Mobile Layout with White PDF Icon */
  #screen-evaluation-result .table-responsive thead {
    display: none !important;
  }

  #screen-evaluation-result .cell-price {
    display: none !important;
  }

  #screen-evaluation-result td::before {
    display: none !important;
    content: none !important;
  }

  #screen-evaluation-result #res-bidders-tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #screen-evaluation-result #res-bidders-tbody tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] #screen-evaluation-result #res-bidders-tbody tr {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }

  #screen-evaluation-result #res-bidders-tbody .cell-rank {
    flex: 0 0 28px !important;
    padding: 0 !important;
    border: none !important;
  }

  #screen-evaluation-result #res-bidders-tbody .cell-company {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    border: none !important;
    text-align: left !important;
  }

  #screen-evaluation-result #res-bidders-tbody .flutter-company-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin-bottom: 2px !important;
  }

  #screen-evaluation-result #res-bidders-tbody .flutter-mobile-offer-sub {
    font-size: 11.5px !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    display: block !important;
  }

  [data-theme="light"] #screen-evaluation-result #res-bidders-tbody .flutter-mobile-offer-sub {
    color: #059669 !important;
  }

  #screen-evaluation-result #res-bidders-tbody .cell-status {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    border: none !important;
  }

  #screen-evaluation-result .btn-export-pdf-flutter i,
  #screen-evaluation-result #btn-download-pdf i {
    color: #ffffff !important;
  }

  /* 6. Admin Mobile View: 3 Modules Per Row in Dashboard & Compact Sub-Screens */
  .flutter-admin-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .flutter-admin-card {
    padding: 12px 4px !important;
    border-radius: 14px !important;
    min-height: 86px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  .flutter-admin-card-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    margin-bottom: 5px !important;
    border-radius: 10px !important;
  }

  .flutter-admin-card-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
  }

  .flutter-admin-card-desc {
    display: none !important;
  }

  /* Admin Sub-screens on Mobile */
  .admin-navbar {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }

  .admin-nav-title {
    font-size: 16px !important;
  }

  .admin-nav-subtitle {
    font-size: 11px !important;
  }

  .btn-admin-pill {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }

  #screen-admin-users .table-styled,
  #screen-admin-plans .table-styled,
  #screen-admin-plan-features .table-styled,
  #screen-admin-notices .table-styled,
  #screen-admin-payment-orders .table-styled,
  #screen-admin-nppi-rates .table-styled {
    font-size: 12px !important;
  }

  #screen-admin-payment-orders .btn-success-styled,
  #screen-admin-payment-orders .btn-danger-styled {
    padding: 4px 8px !important;
    font-size: 11px !important;
    height: 28px !important;
    border-radius: 6px !important;
  }
}