/* ============================================================
   ADVIKA LEAKGUARD – CORE DESIGN SYSTEM & UTILITY STYLES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #073b78;
  --primary-light: #0b5cab;
  --primary-dark: #052a56;
  --accent: #f5c400;
  --accent-hover: #ddb200;
  --green: #18a957;
  --green-light: #d1fae5;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --cyan: #06b6d4;
  --cyan-light: #cffafe;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: 0; font-family: inherit; transition: var(--transition); }
img { max-width: 100%; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Utility Classes ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: var(--transition); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #15803d; }
.btn-outline { border: 1.5px solid var(--primary); background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--blue-50); }
.btn-white, .btn-hero-admin {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 2px solid #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}
.btn-white:hover, .btn-hero-admin:hover {
  background: var(--blue-50) !important;
  color: var(--primary-light) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.btn-white:active, .btn-hero-admin:active {
  transform: translateY(0);
  background: #dbeafe !important;
  color: var(--primary-dark) !important;
}
.btn-outline-white {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid #ffffff;
  font-weight: 700;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-outline-white:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary) !important;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 12px; }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--border-light); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-icon:hover { background: var(--blue-50); color: var(--primary); border-color: var(--primary); }

/* ── Premium High-Contrast Logout Button & Actions ── */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fecaca !important;
  border: 1.5px solid rgba(248, 113, 113, 0.45) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-logout .logout-icon {
  font-size: 14px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-logout:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.btn-logout:hover .logout-icon {
  transform: translateX(2px);
}
.btn-logout:active {
  transform: translateY(0);
}

.btn-logout-light {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #f87171 !important;
}
.btn-logout-light:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}

.sidebar-logout-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}
.sidebar-logout-dark:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.sidebar-logout-light {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #b91c1c;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}
.sidebar-logout-light:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #059669; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-yellow { background: #fef3c7; color: #d97706; }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-cyan { background: #cffafe; color: #0891b2; }
.badge-orange { background: #ffedd5; color: #ea580c; }

/* ── Cards ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-clickable { cursor: pointer; }
.card-clickable:hover { border-color: var(--primary-light); transform: translateY(-2px); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: #fff; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(11,92,171,0.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); background: var(--border-light); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--blue-50); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 4px; }

/* ── Reusable Pagination Styles ── */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.pagination-size {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pagination-size select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.pagination-size select:focus {
  border-color: var(--primary-light);
}
.pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.page-btn:hover:not(:disabled) {
  background: var(--blue-50);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}
.page-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-light);
  background: var(--border-light);
  color: var(--text-muted);
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: var(--text-muted);
  font-weight: 700;
}
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .pagination-info {
    flex-direction: column;
    gap: 6px;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 700px; width: 100%; padding: 0; max-height: 90vh; overflow: hidden; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-body { padding: 24px; overflow-y: auto; max-height: calc(90vh - 140px); }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-secondary); cursor: pointer; border: none; }
.modal-close:hover { background: var(--red-light); color: var(--red); }

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

/* ── Toast ── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius-sm); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards; display: flex; align-items: center; gap: 10px; max-width: 380px; }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }
.toast-warning { background: #d97706; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

/* ── Progress Bar ── */
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: var(--transition); }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── Search & Filter Bar ── */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar input, .filter-bar select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; min-width: 160px; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--primary-light); }
.search-input { position: relative; }
.search-input input { padding-left: 36px; }
.search-input::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; }

/* ============================================================
   PUBLIC WEBSITE STYLES
   ============================================================ */

/* ── Top Bar ── */
.topbar { background: var(--primary-dark); color: #fff; font-size: 12px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }

/* ── Header ── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-md); }
.site-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--green)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.brand-text { font-weight: 800; font-size: 20px; color: var(--primary); }
.brand-text span { color: var(--primary-light); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--blue-50); }
.nav-ctas { display: flex; gap: 8px; align-items: center; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 8px; background: var(--border-light); align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }

/* ── Mobile Nav ── */
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; padding: 20px; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 14px 16px; font-size: 16px; font-weight: 500; border-radius: var(--radius-sm); color: var(--text); }
.mobile-nav a:hover { background: var(--blue-50); color: var(--primary); }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #041e42 0%, #073b78 30%, #0b5cab 70%, #1a8ccc 100%); color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,196,0,0.15) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(24,169,87,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(10px); }
.hero-card h3 { font-size: 20px; margin-bottom: 20px; }
.hero-card-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; color: rgba(255,255,255,0.9); }
.hero-card-item::before { content: '✓'; width: 24px; height: 24px; border-radius: 6px; background: rgba(24,169,87,0.3); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.hero-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 16px; text-align: center; backdrop-filter: blur(4px); }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ── Section Styles (Compact Modern) ── */
.section { padding: 42px 0; }
.section-alt { background: #f8fafc; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.section-head p { font-size: 14px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.5; }
.section-head .underline { width: 44px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 10px auto 0; }

/* ── Service Cards (Compact) ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transition: transform 0.3s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-icon { font-size: 32px; margin-bottom: 8px; }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.service-price { font-size: 12.5px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }

/* ── Before/After (Compact) ── */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.ba-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-img { height: 180px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.ba-before { background: linear-gradient(135deg, #8b6914, #c9a84c); }
.ba-after { background: linear-gradient(135deg, #0b5cab, #18a957); }
.ba-info { padding: 16px; }
.ba-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ba-info p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ── Testimonials (Compact) ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; }
.testimonial-stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.testimonial-text { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 12px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.testimonial-name { font-weight: 600; font-size: 13.5px; }
.testimonial-service { font-size: 11.5px; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-q { padding: 14px 20px; font-weight: 600; font-size: 14.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-q:hover { background: var(--blue-50); }
.faq-q .arrow { transition: transform 0.3s ease; font-size: 11px; color: var(--text-muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 14px; }

/* ── CTA Section (Compact) ── */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 38px 0; }
.cta-section .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-section h2 { font-size: 24px; font-weight: 800; }
.cta-section p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.cta-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Contact (Compact) ── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 18px; text-align: center; }
.contact-icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── Map Placeholder ── */
.map-placeholder { height: 300px; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border); margin-top: 32px; }
.map-placeholder span { font-size: 16px; color: var(--text-muted); font-weight: 500; }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer-brand h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.site-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer li a { font-size: 14px; color: rgba(255,255,255,0.6); }
.site-footer li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── Mobile Sticky Actions ── */
.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 98; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.mobile-sticky-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mobile-sticky a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.mobile-sticky a:first-child { color: var(--green); }
.mobile-sticky a:nth-child(2) { color: #25d366; }
.mobile-sticky a:last-child { background: var(--primary); color: #fff; }
.mobile-sticky .sticky-icon { font-size: 20px; }

/* ── Admin Demo Button ── */
.admin-demo-btn { position: fixed; bottom: 24px; right: 24px; z-index: 97; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 14px 24px; border-radius: 50px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 15px rgba(7,59,120,0.4); cursor: pointer; border: none; display: flex; align-items: center; gap: 8px; animation: pulse 2s infinite; }
.admin-demo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(7,59,120,0.5); }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 15px rgba(7,59,120,0.4); } 50% { box-shadow: 0 4px 25px rgba(7,59,120,0.6); } }

/* ============================================================
   CRM / ADMIN STYLES
   ============================================================ */

.admin-view { display: block; }
.admin-view.active { display: block; }
.public-view.hidden { display: none; }

/* ── Admin Header ── */
.admin-header { background: var(--primary-dark); color: #fff; height: 60px; display: flex; align-items: center; padding: 0 20px; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-md); }
.admin-header-left { display: flex; align-items: center; gap: 16px; }
.admin-brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.admin-brand .brand-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 18px; }
.admin-toggle { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 18px; border: none; }
.admin-toggle:hover { background: rgba(255,255,255,0.2); }
.admin-header-center { flex: 1; display: flex; justify-content: center; padding: 0 24px; }
.admin-search { position: relative; width: 100%; max-width: 480px; }
.admin-search input { width: 100%; padding: 9px 16px 9px 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; }
.admin-search input::placeholder { color: rgba(255,255,255,0.5); }
.admin-search input:focus { outline: none; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.admin-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); font-size: 14px; }
.admin-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 8px; margin-top: 4px; box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; display: none; z-index: 60; }
.admin-search-results.active { display: block; }
.search-result-item { padding: 12px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.search-result-item:hover { background: var(--blue-50); }
.search-result-item .result-type { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--blue-100); color: var(--primary); }
.admin-header-right { display: flex; align-items: center; gap: 12px; }
.notification-btn { position: relative; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; border: none; }
.notification-btn:hover { background: rgba(255,255,255,0.2); }
.notif-count { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.admin-user { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: 8px; }
.admin-user:hover { background: rgba(255,255,255,0.1); }
.admin-avatar { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #111; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.admin-user-info { line-height: 1.3; }
.admin-user-name { font-size: 13px; font-weight: 600; }
.admin-user-role { font-size: 11px; color: rgba(255,255,255,0.6); }

/* ── Notification Dropdown ── */
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 60; border: 1px solid var(--border); }
.notif-dropdown.active { display: block; }
.notif-dropdown-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-dropdown-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.notif-item { padding: 14px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: var(--transition); display: flex; gap: 12px; align-items: flex-start; }
.notif-item:hover { background: var(--blue-50); }
.notif-item.unread { background: #f0f7ff; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); flex-shrink: 0; margin-top: 6px; }
.notif-item.unread .notif-dot { background: var(--blue-500); }
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Sidebar ── */
.admin-layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { background: #fff; border-right: 1px solid var(--border); overflow: hidden; scrollbar-width: none; -ms-overflow-style: none; position: relative; top: 0; height: 100%; padding: 10px 8px; transition: var(--transition); }
.admin-sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 8px 12px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); margin: 2px 0; }
.sidebar-item:hover { background: var(--blue-50); color: var(--primary); }
.sidebar-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(7,59,120,0.3); }
.sidebar-item .icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-item .sidebar-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.sidebar-item.active .sidebar-badge { background: rgba(255,255,255,0.3); }

/* ── Admin Main Content ── */
.admin-main { padding: 24px; background: var(--bg); min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 24px; font-weight: 800; color: var(--text); }
.page-header p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; margin-top: 4px; color: var(--text); }
.stat-card:nth-child(1)::before { background: var(--blue-500); }
.stat-card:nth-child(2)::before { background: var(--green); }
.stat-card:nth-child(3)::before { background: var(--orange); }
.stat-card:nth-child(4)::before { background: var(--purple); }
.stat-card:nth-child(5)::before { background: var(--cyan); }
.stat-card:nth-child(6)::before { background: var(--red); }
.stat-card:nth-child(7)::before { background: var(--accent); }
.stat-card:nth-child(8)::before { background: #14b8a6; }
.stat-card:nth-child(9)::before { background: #22c55e; }
.stat-card:nth-child(10)::before { background: #f97316; }
.stat-card:nth-child(11)::before { background: #06b6d4; }
.stat-card:nth-child(12)::before { background: #ec4899; }

/* ── Dashboard Charts ── */
.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 24px; }
.chart-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.chart-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.chart-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chart-bar-label { width: 100px; font-size: 13px; color: var(--text-secondary); text-align: right; flex-shrink: 0; }
.chart-bar-track { flex: 1; height: 24px; background: var(--border-light); border-radius: 4px; overflow: hidden; position: relative; }
.chart-bar-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 11px; font-weight: 600; color: #fff; transition: width 0.5s ease; }
.chart-bar-value { font-size: 13px; font-weight: 600; width: 40px; flex-shrink: 0; }
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.mini-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height 0.5s ease; }

/* ── Panel Layout ── */
.panel-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 24px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }

/* ── Detail Page ── */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.detail-title { display: flex; align-items: center; gap: 16px; }
.detail-title h1 { font-size: 22px; font-weight: 800; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.detail-meta span { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid .detail-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.detail-item label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.detail-item span { font-size: 14px; color: var(--text); font-weight: 500; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 24px 24px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item.completed::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline-item.current::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 2px var(--accent); } 50% { box-shadow: 0 0 0 6px rgba(245,196,0,0.3); } }
.timeline-item .time-label { font-size: 12px; color: var(--text-muted); }
.timeline-item .time-title { font-size: 14px; font-weight: 600; color: var(--text); }
.timeline-item .time-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ── Permission Matrix ── */
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-table th { padding: 10px 8px; text-align: center; font-size: 11px; text-transform: uppercase; background: var(--border-light); border: 1px solid var(--border); }
.perm-table th:first-child { text-align: left; }
.perm-table td { padding: 8px; text-align: center; border: 1px solid var(--border); }
.perm-table td:first-child { text-align: left; font-weight: 600; }
.perm-check { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* ── Photo Grid ── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-item { height: 120px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ── Service Detail ── */
.service-detail-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 60px 0; }
.service-detail-hero .container { display: flex; align-items: center; gap: 24px; }
.service-detail-icon { font-size: 64px; }
.service-detail-hero h1 { font-size: 36px; font-weight: 800; }
.service-detail-hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-top: 8px; }
.service-detail-content { padding: 48px 0; }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.service-sidebar { position: sticky; top: 100px; }
.service-sidebar .card { margin-bottom: 16px; }

/* ── Enquiry Success ── */
.success-screen { text-align: center; padding: 40px; }
.success-icon { font-size: 72px; margin-bottom: 16px; }
.success-screen h2 { font-size: 28px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.success-id { font-size: 20px; font-weight: 700; color: var(--primary); background: var(--blue-50); padding: 12px 24px; border-radius: var(--radius-sm); display: inline-block; margin: 16px 0; }

/* ── Customer Login ── */
.login-container { max-width: 420px; margin: 60px auto; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.login-card p { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── Sidebar Collapse ── */
.admin-layout.collapsed { grid-template-columns: 60px 1fr; }
.admin-layout.collapsed .admin-sidebar { padding: 12px 6px; }
.admin-layout.collapsed .sidebar-section-title { display: none; }
.admin-layout.collapsed .sidebar-item span:not(.icon) { display: none; }
.admin-layout.collapsed .sidebar-item { justify-content: center; padding: 10px; }
.admin-layout.collapsed .sidebar-item .sidebar-badge { display: none; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-grid, .panel-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-ctas .btn-hide-mobile, .nav-ctas form.btn-hide-mobile { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-section .container { flex-direction: column; text-align: center; }
  .cta-section h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-sticky { display: block; }
  .admin-demo-btn { bottom: 70px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; position: fixed; left: 0; top: 60px; bottom: 0; width: var(--sidebar-width); z-index: 45; box-shadow: var(--shadow-lg); }
  .admin-sidebar.mobile-open { display: block; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 44; top: 60px; }
  .sidebar-overlay.active { display: block; }
  .admin-search { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .ba-images { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .section-head h2 { font-size: 26px; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { min-width: 100%; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REUSABLE PAGINATION DESIGN SYSTEM
   ============================================================ */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 6px;
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-info strong {
  color: var(--text);
  font-weight: 700;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-size label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pagination-size select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card, #fff);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.pagination-size select:focus {
  border-color: var(--primary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card, #fff);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  line-height: 1;
}

.page-btn:hover:not(:disabled) {
  background: var(--blue-50, #eff6ff);
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary, #073b78);
  border-color: var(--primary, #073b78);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(7, 59, 120, 0.25);
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--border-light, #f1f5f9);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 34px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pagination-info {
    width: 100%;
    justify-content: space-between;
  }
  .pagination-controls {
    width: 100%;
    justify-content: center;
  }
  .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ============================================================
   CUSTOMER PORTAL COMPLETE DESIGN SYSTEM
   ============================================================ */

/* ── Customer Portal Shell ── */
.customer-view {
  min-height: 100vh;
  background: var(--bg-light);
}

.customer-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Customer Top Navigation Bar ── */
.customer-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.customer-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.customer-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
}

.customer-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.customer-notif-btn {
  background: var(--bg-light);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.customer-notif-btn:hover {
  background: #e2e8f0;
}

.customer-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.customer-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.customer-user-chip:hover {
  border-color: var(--primary);
}

.customer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.customer-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.customer-user-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Customer Workspace & Sidebar ── */
.customer-workspace {
  display: flex;
  flex: 1;
}

.customer-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.customer-sidebar-profile {
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, var(--blue-50) 0%, #f0fdf4 100%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.1);
}

.profile-avatar-lg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 10px rgba(37,99,235,0.25);
}

.profile-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-phone {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.profile-status {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.customer-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 3px;
}

.customer-sidebar .sidebar-item:hover {
  background: var(--blue-50);
  color: var(--primary);
}

.customer-sidebar .sidebar-item.active {
  background: var(--primary);
  color: #fff;
}

.customer-sidebar .sidebar-item.active .icon {
  filter: none;
}

.customer-sidebar .sidebar-item .item-label {
  flex: 1;
}

.sidebar-footer-box {
  margin-top: auto;
  padding: 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.customer-main {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  max-width: 1280px;
}

/* ── Customer Portal Generic Cards & Layouts ── */
.portal-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-page-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portal-page-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  max-width: 700px;
}

.portal-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.portal-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.portal-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Customer Welcome Hero Banner ── */
.customer-welcome-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}

.customer-welcome-hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.customer-welcome-hero p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
  max-width: 600px;
}

.property-tag {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  text-align: right;
}

/* ── 10-Stage Current Service Status Timeline ── */
.current-status-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.current-status-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.status-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.8px;
}

.customer-timeline-wrapper {
  overflow-x: auto;
  padding: 10px 0 20px;
}

.customer-timeline {
  display: flex;
  align-items: center;
  min-width: 900px;
  justify-content: space-between;
}

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

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  transition: var(--transition);
  z-index: 2;
}

.timeline-step.completed .timeline-node {
  background: var(--green);
  color: #fff;
}

.timeline-step.active .timeline-node {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37,99,235,0.25);
  animation: pulseNode 2s infinite;
}

.timeline-step.future .timeline-node {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.timeline-connector {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin: 0 -8px 24px;
  z-index: 1;
}

.timeline-step.completed + .timeline-connector {
  background: var(--green);
}

.timeline-step-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.timeline-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.2;
}

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

@keyframes pulseNode {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* ── 8 Portal Summary Stats Grid ── */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.portal-stat-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

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

.portal-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.portal-stat-card .stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.portal-stat-card .stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Quick Action Buttons Grid ── */
.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action-btn {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.quick-action-btn:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-action-btn .qa-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.quick-action-btn strong {
  font-size: 13px;
  color: var(--text-primary);
}

.quick-action-btn span:not(.qa-icon) {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Progress Track ── */
.customer-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.customer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.project-mini-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
  background: var(--bg-light);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* ── Auth Screen (Login & Register) ── */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

.auth-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.demo-profiles-box {
  background: var(--blue-50);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
}

.demo-profiles-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.demo-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

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

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot.green { background: var(--green); }
.pill-dot.amber { background: var(--amber); }
.pill-dot.blue { background: var(--primary); }

.pill-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}

/* ── Interactive UPI QR Code Scanner ── */
.pay-now-container {
  padding: 10px;
}

.pay-secure-notice {
  background: #f0fdf4;
  border: 1px solid rgba(22,163,74,0.2);
  color: #166534;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.pay-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pay-amount-box {
  background: var(--blue-50);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.pay-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0;
}

.upi-app-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.upi-app-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

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

.upi-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #ea4335;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.qr-brand-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.qr-scanner-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: #fff;
  padding: 10px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  box-shadow: 0 0 10px #22c55e;
  animation: scanBeam 2.5s infinite;
  z-index: 10;
}

@keyframes scanBeam {
  0% { top: 5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}

.qr-upi-id {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 8px;
}

/* ── Star Rating Component ── */
.star-rating-selector {
  display: flex;
  gap: 8px;
  font-size: 32px;
  color: #cbd5e1;
  cursor: pointer;
}

.star-btn {
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* ── Photo Upload Dropzone ── */
.photo-upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
}

.photo-upload-dropzone:hover {
  border-color: var(--primary);
  background: #fff;
}

.photo-preview-grid {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.photo-preview-item {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 2px 4px;
  text-align: center;
}

/* ── Inspection & Project Cards ── */
.inspections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.inspection-card, .quotation-card, .project-card, .warranty-card {
  transition: var(--transition);
}

.inspection-card:hover, .quotation-card:hover, .project-card:hover, .warranty-card:hover {
  border-color: var(--primary);
}

.inspection-header, .quotation-header, .project-header, .warranty-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.inspection-id, .quotation-number, .project-id, .warranty-id {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.8px;
}

.inspection-findings-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 14px 0;
}

.moisture-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.moisture-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.inspection-footer, .quotation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.quotations-list, .projects-list, .warranties-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-amount-summary {
  background: var(--bg-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-amount-summary > div {
  display: flex;
  justify-content: space-between;
}

.progress-milestone-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.progress-milestone-ticks span.reached {
  color: var(--primary);
  font-weight: 700;
}

.project-photo-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.photo-placeholder {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.photo-lbl {
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.warranty-card {
  position: relative;
  overflow: hidden;
}

.warranty-card-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: #f59e0b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.outstanding-banner {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

.quick-contact-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-contact-banner h3 {
  color: #fff;
  margin: 0 0 4px;
}

.quick-contact-banner p {
  color: #bfdbfe;
  margin: 0;
  font-size: 13px;
}

.messages-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  max-width: 80%;
}

.message-bubble.incoming {
  background: var(--bg-light);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.message-bubble.outgoing {
  background: var(--blue-50);
  border: 1px solid rgba(37,99,235,0.2);
  align-self: flex-end;
}

.msg-meta {
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-xl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.demo-select-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.demo-select-card:hover {
  border-color: var(--primary);
  background: var(--blue-50);
}

.demo-select-card.selected {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary);
}

/* ── Customer Activity List ── */
.customer-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.customer-activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.customer-activity-item.unread .activity-dot {
  background: var(--accent);
}

.activity-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 0;
}

.activity-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Responsive Adaptations ── */
@media (max-width: 1024px) {
  .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-two-col { grid-template-columns: 1fr; }
  .portal-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .customer-mobile-toggle { display: block; }
  .customer-sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 45;
    box-shadow: var(--shadow-lg);
  }
  .customer-sidebar.open {
    display: flex;
  }
  .customer-main {
    padding: 16px;
  }
  .portal-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hide-mobile {
    display: none !important;
  }
  .customer-welcome-hero {
    padding: 20px;
  }
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================ */
/* RBAC & PERMISSION MANAGEMENT EXTENSIONS                     */
/* ============================================================ */

/* ── 403 Access Denied View ── */
.access-denied-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 32px 16px;
}

.access-denied-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  padding: 40px 32px;
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.access-denied-icon {
  font-size: 54px;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--red-light);
  width: 88px;
  height: 88px;
  line-height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.access-denied-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.access-denied-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.access-denied-details {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-denied-details code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--red);
  font-weight: 600;
}

.access-denied-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Super Admin User Permission Management Screen ── */
.perm-mgmt-container {
  padding: 8px 0;
}

.perm-user-header {
  background: var(--blue-50);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.perm-user-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.perm-user-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.perm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.perm-toolbar-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perm-toolbar-actions {
  display: flex;
  gap: 8px;
}

.perm-groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.perm-group-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.perm-group-card:hover {
  border-color: #cbd5e1;
}

.perm-group-card-header {
  background: #f8fafc;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
}

.perm-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.perm-group-badge {
  font-size: 11px;
  background: #e2e8f0;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.perm-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px;
}

.perm-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #fff;
  transition: var(--transition);
  cursor: pointer;
}

.perm-check-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.perm-check-item.checked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.perm-check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--green);
}

.perm-item-content {
  flex: 1;
}

.perm-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perm-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ── Role Filter Tabs ── */
.user-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.user-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.user-tab-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
}

.user-tab-btn.active .user-tab-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Role Badges ── */
.badge-role-super-admin {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-role-admin {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-role-category {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-role-normal {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.perm-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.perm-pill:hover {
  background: var(--blue-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Interactive Role Switcher Modal Cards ── */
.role-switcher-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-switcher-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.role-switcher-card:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateY(-1px);
}

.role-switcher-card.active-role {
  border-color: var(--green);
  background: #f0fdf4;
}

/* ── 1. STEPPER / WIZARD UX FOR BOOKING INSPECTION ── */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  padding: 10px 0;
  overflow-x: auto;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  flex: 1;
  min-width: 90px;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.stepper-step.active .stepper-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.2);
}

.stepper-step.completed .stepper-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.stepper-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

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

.stepper-step.completed .stepper-label {
  color: var(--text-primary);
}

.stepper-connector {
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.stepper-connector-fill {
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
}

.wizard-step-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step-pane.active {
  display: block;
}

/* ── 2. DEDICATED ADMIN / STAFF AUTHENTICATION (PAGE & MODAL POPUP) ── */
.admin-auth-view {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #0f172a 0%, #071228 50%, #030712 100%);
  display: flex;
  flex-direction: column;
}

.admin-auth-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, #0f172a 0%, #071228 50%, #030712 100%);
}

.admin-auth-topbar {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-auth-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-auth-back-btn {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-auth-back-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.admin-auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}

/* Master Login Card (Matches Reference Screenshot) */
.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 0 auto;
  animation: adminCardFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-login-header {
  background: linear-gradient(180deg, #074799 0%, #073b78 100%);
  color: #fff;
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.admin-login-header h2 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.admin-login-header p {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.admin-login-body {
  padding: 26px 26px 24px;
  background: #ffffff;
}

/* Custom Input Groups for Admin Login */
.admin-input-group {
  margin-bottom: 16px;
}

.admin-input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.admin-input-label .req {
  color: #dc2626;
  font-weight: 700;
}

.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-wrap .input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #64748b;
  pointer-events: none;
  line-height: 1;
}

.admin-input-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-input-control:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.admin-pwd-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  color: #64748b;
  line-height: 1;
}
.admin-pwd-toggle-btn:hover {
  color: #0f172a;
}

.admin-submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #074799 0%, #0284c7 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.admin-submit-btn:hover {
  background: linear-gradient(135deg, #053a7e 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}
.admin-submit-btn:active {
  transform: translateY(0);
}

/* Modal Overlay for Instant Admin Login (Zero Header Shift) */
.admin-login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.admin-login-modal-overlay.open {
  visibility: visible;
  opacity: 1;
}

.admin-login-modal-overlay .admin-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 18, 40, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-login-modal-overlay .admin-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
}

.admin-login-modal-overlay .admin-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
  z-index: 20;
}
.admin-login-modal-overlay .admin-modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .admin-login-modal-overlay .admin-modal-close {
    top: 8px;
    right: 8px;
  }
  .admin-auth-topbar {
    padding: 12px 16px;
  }
  .admin-login-body {
    padding: 20px 18px;
  }
}

/* ── 3. EMPTY STATE COMPONENTS ── */
.empty-state-box {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  margin: 16px 0;
}

.empty-state-icon {
  font-size: 44px;
  margin-bottom: 12px;
  display: inline-block;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ── 4. HOMEPAGE QUICK STATUS & PAY LOOKUP ── */
.home-quick-lookup-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  margin-top: 24px;
}

.lookup-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
}

.lookup-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.lookup-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.lookup-input-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── 5. CONFIRMATION MODAL ── */
.confirm-box {
  text-align: center;
  padding: 12px 6px;
}

.confirm-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ── 6. BREADCRUMBS & NAVIGATION HIERARCHY ── */
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.portal-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.portal-breadcrumb a:hover {
  color: var(--primary);
}

.portal-breadcrumb .bc-sep {
  color: var(--text-muted);
}

.portal-breadcrumb .bc-current {
  color: var(--primary);
  font-weight: 700;
}

/* ── 7. RESPONSIVE TABLE CARDS FOR SMALL SCREENS ── */
@media (max-width: 768px) {
  .stepper-label {
    display: none;
  }
  .stepper-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .home-quick-lookup-box {
    padding: 16px;
  }
  .lookup-input-bar {
    flex-direction: column;
  }
  .lookup-input-bar button {
    width: 100%;
  }
}

/* ============================================================
   AUTH COMPONENT STYLES
   ============================================================ */
.auth-page-wrapper {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #eff6ff 100%);
  font-family: inherit;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(7, 59, 120, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.auth-logo-badge {
  font-size: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0, 82, 204, 0.2));
  display: inline-block;
  animation: floatBadge 3s ease-in-out infinite;
}

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

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #0052cc;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.auth-tagline {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px 0;
}

.auth-divider {
  width: 48px;
  height: 3px;
  background: #0052cc;
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.auth-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.auth-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.booking-flow-banner {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.booking-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-flow-banner p {
  margin: 2px 0 0 0;
  color: #2563eb;
  font-size: 11.5px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.password-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.password-label-row .form-label {
  margin-bottom: 0;
}

.forgot-link {
  font-size: 12px;
  color: #0052cc;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #003d99;
}

.password-input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.password-toggle-btn:hover {
  background-color: #e2e8f0;
}

.form-error {
  display: block;
  color: #dc2626;
  font-size: 11.5px;
  margin-top: 4px;
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.35);
  background: linear-gradient(135deg, #003d99 0%, #002d73 100%);
}

.register-prompt {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
}

.register-link {
  font-weight: 700;
  color: #0052cc;
  text-decoration: none;
  transition: color 0.15s ease;
}

.register-link:hover {
  color: #003d99;
  text-decoration: underline;
}

.back-to-website {
  text-align: center;
  margin-top: 14px;
}

.back-link {
  font-size: 12.5px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

.back-link:hover {
  color: #1e293b;
  text-decoration: underline;
}

/* ── Global Responsive Table & Horizontal Touch Scrolling ── */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: #0284c7 #e2e8f0;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}
