/* NyayaSetu Design System */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Color Palette */
  --bg-primary: #0b1120;
  --bg-surface: #111c33;
  --bg-surface-elevated: #182747;
  --bg-card: #0f1a30;
  --border-subtle: #1e3156;
  --border-highlight: #334d7d;
  
  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  /* Accents */
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-bg: rgba(217, 119, 6, 0.12);
  
  --accent-blue: #2563eb;
  --accent-blue-light: #3b82f6;
  --accent-blue-bg: rgba(37, 99, 235, 0.12);
  
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  
  --accent-purple: #8b5cf6;
  --accent-purple-bg: rgba(139, 92, 246, 0.12);
  
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  
  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: rgba(15, 26, 48, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  cursor: pointer;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 11px;
  color: var(--accent-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.lang-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Button UI */
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-blue-light);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* ========================================================================= */
/* LANDING PAGE STYLES                                                       */
/* ========================================================================= */
.landing-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold-bg);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.landing-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  max-width: 960px;
  margin: 0 auto 18px;
  background: linear-gradient(to bottom right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.landing-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.landing-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0 60px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
}

.stat-box-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stat-box-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pillar Feature Grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================================= */
/* DEDICATED AUTH VIEWS (ROLE SELECT, CITIZEN SIGNUP, ADVOCATE SIGNUP, LOGIN)*/
/* ========================================================================= */
.auth-page-container {
  max-width: 600px;
  margin: 40px auto 80px;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-back-btn:hover {
  color: var(--accent-gold-light);
}

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

.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.auth-form-group input, .auth-form-group select {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease;
}

.auth-form-group input:focus, .auth-form-group select:focus {
  outline: none;
  border-color: var(--accent-blue-light);
}

.otp-send-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-send-otp {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--accent-gold-light);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-send-otp:hover {
  background-color: var(--accent-gold-bg);
  border-color: var(--accent-gold);
}

/* Role Selection Cards */
.role-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 28px;
}

.role-choice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.role-choice-card:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.role-choice-icon {
  font-size: 32px;
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

/* ========================================================================= */
/* DASHBOARD STYLES (CITIZEN & ADVOCATE DASHBOARDS)                          */
/* ========================================================================= */
.dashboard-header-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 20px;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========================================================================= */
/* CITIZEN WORKSPACE TABBED WORKSPACE & HYBRID THEME (OPTION A)              */
/* ========================================================================= */
.citizen-tabs-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-surface);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.citizen-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.citizen-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.citizen-tab-btn:focus-visible {
  outline: 2px solid var(--accent-blue-light);
  outline-offset: 2px;
}

.citizen-tab-btn.active {
  color: #fff;
  font-weight: 700;
}

.citizen-tab-btn#tabBtnCitizenAI.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(99, 102, 241, 0.16) 100%);
  color: #f3e8ff;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.citizen-tab-btn#tabBtnCitizenMarketplace.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.16) 100%);
  color: #e0f2fe;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.citizen-tab-btn#tabBtnCitizenRequests.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.22) 0%, rgba(245, 158, 11, 0.16) 100%);
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.citizen-tab-icon {
  font-size: 17px;
  line-height: 1;
}

.citizen-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: all 0.2s ease;
}

.citizen-tab-badge.has-requests {
  background: #f59e0b;
  color: #0b1120;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  font-weight: 900;
}

.citizen-tab-pane {
  display: none;
}

.citizen-tab-pane.active {
  display: block;
  animation: fadeInCitizenPane 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 600px) {
  .citizen-tabs-bar {
    gap: 6px;
    padding: 5px 6px;
  }
  .citizen-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .citizen-tab-icon {
    font-size: 14px;
  }
  .citizen-tab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }
}


/* ========================================================================= */
/* FULL-SCREEN WINDOW UTILIZATION FOR DASHBOARD WORKSPACES                   */
/* ========================================================================= */

body.fullscreen-workspace .container,
body.fullscreen-workspace header .container,
body:has(#citizenDashboardView:not([style*="display: none"])) .container,
body:has(#citizenDashboardView:not([style*="display: none"])) header .container,
body:has(#advocateDashboardView:not([style*="display: none"])) .container,
body:has(#advocateDashboardView:not([style*="display: none"])) header .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

#citizenDashboardView {
  width: 100% !important;
}

/* ========================================================================= */
/* CITIZEN DASHBOARD HYBRID THEME: DARK SIDE PANEL + LIGHT MAIN SCREEN        */
/* ========================================================================= */

.citizen-workspace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  margin: 16px 0 36px;
  width: 100%;
}

/* ------------------------------------------------------------------------- */
/* 1. DARK SIDE PANEL (STREAMLINED: BRAND, USERNAME & NAV TABS)               */
/* ------------------------------------------------------------------------- */
.citizen-side-panel {
  background: linear-gradient(180deg, #0e172a 0%, #090e1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
  z-index: 10;
}

#bplToggle.active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #059669 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.citizen-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}

.citizen-side-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.citizen-side-meta {
  display: flex;
  flex-direction: column;
}

.citizen-side-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.citizen-side-sub {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* User Profile Card in Sidebar (Matching Reference Image) */
.citizen-side-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
}

.citizen-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #c7d2fe;
}

.citizen-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.citizen-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.citizen-role-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 1px 7px;
  border-radius: 9999px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.citizen-side-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.citizen-side-nav-heading {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tabs Bar inside Dark Sidebar */
.citizen-side-panel .citizen-tabs-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.citizen-side-panel .citizen-tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3.5px solid transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.citizen-side-panel .citizen-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.3);
  transform: translateX(3px);
}

.citizen-side-panel .citizen-tab-btn:active {
  transform: translateX(1px) scale(0.99);
}

.citizen-side-panel .citizen-tab-btn:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenAI.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.14) 100%);
  color: #f5f3ff;
  font-weight: 700;
  border-color: rgba(168, 85, 247, 0.45);
  border-left: 3.5px solid #a855f7;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.2), inset 0 0 14px rgba(168, 85, 247, 0.08);
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenAI.active:hover {
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.32), inset 0 0 16px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.65);
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenMarketplace.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(14, 165, 233, 0.14) 100%);
  color: #eff6ff;
  font-weight: 700;
  border-color: rgba(59, 130, 246, 0.45);
  border-left: 3.5px solid #3b82f6;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.2), inset 0 0 14px rgba(37, 99, 235, 0.08);
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenMarketplace.active:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.32), inset 0 0 16px rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.65);
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenRequests.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(245, 158, 11, 0.14) 100%);
  color: #fffbeb;
  font-weight: 700;
  border-color: rgba(245, 158, 11, 0.45);
  border-left: 3.5px solid #f59e0b;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2), inset 0 0 14px rgba(245, 158, 11, 0.08);
}

.citizen-side-panel .citizen-tab-btn#tabBtnCitizenRequests.active:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.32), inset 0 0 16px rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.65);
}

.citizen-side-panel .citizen-tab-btn .citizen-tab-icon {
  font-size: 17px;
  flex-shrink: 0;
}

.citizen-side-panel .citizen-tab-btn .citizen-tab-text {
  flex-grow: 1;
}

.citizen-side-panel .citizen-tab-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.citizen-side-panel .citizen-tab-badge.has-requests {
  background: #f59e0b;
  color: #0b1120;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  font-weight: 900;
}

/* Court & Controls in Sidebar */
.citizen-side-control-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citizen-side-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.citizen-side-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.citizen-side-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.citizen-side-bpl-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.citizen-side-bpl-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #475569;
  transform: translateY(-1px);
}

.citizen-side-bpl-toggle.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25) !important;
}

/* Status Card in Sidebar */
.citizen-side-status-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.citizen-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.citizen-status-note {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.citizen-status-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.citizen-metric-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px;
  text-align: center;
}

.metric-num {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 9.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1px;
}

/* Quick Actions in Sidebar */
.citizen-side-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.citizen-side-quick-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.citizen-side-quick-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateX(3px);
}

.citizen-side-quick-btn:active {
  transform: translateX(1px) scale(0.99);
}

/* ------------------------------------------------------------------------- */
/* 2. MODERN CITIZEN WORKSPACE CANVAS (CRISP SAAS LIGHT THEME)                */
/* ------------------------------------------------------------------------- */
.citizen-main-canvas {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 30px;
  min-height: 840px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  color: #1e293b;

  /* Scoped CSS Variables for light canvas */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-highlight: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

.citizen-main-canvas button,
.citizen-main-canvas input,
.citizen-main-canvas select,
.citizen-main-canvas textarea {
  font-family: var(--font-sans);
}

.citizen-main-canvas code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

/* ========================================================================= */
/* TOP 4 METRIC KPI CARDS (MATCHING REFERENCE SCREENSHOT)                    */
/* ========================================================================= */
.citizen-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.citizen-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.citizen-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.citizen-kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-icon-purple {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #9333ea;
}

.kpi-icon-green {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.kpi-icon-amber {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #d97706;
}

.kpi-icon-blue {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.citizen-kpi-info {
  display: flex;
  flex-direction: column;
}

.citizen-kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.citizen-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.kpi-val-blue {
  color: #2563eb;
}

/* ========================================================================= */
/* HORIZONTAL LEGAL ADVISORY STRIP (MATCHING REFERENCE PROGRESS STRIP)       */
/* ========================================================================= */
.citizen-advisory-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 12px;
}

.citizen-advisory-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.citizen-advisory-icon {
  font-size: 16px;
}

.citizen-advisory-title {
  font-weight: 700;
  color: #0f172a;
}

.citizen-advisory-sub {
  color: #64748b;
  font-size: 12px;
}

.citizen-advisory-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.citizen-advisory-pill {
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

/* ========================================================================= */
/* WORKSPACE HEADER (MATCHING REFERENCE SECTION HEADER)                      */
/* ========================================================================= */
.citizen-workspace-header {
  margin-bottom: 22px;
}

.citizen-workspace-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.citizen-workspace-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.engine-badge-sub {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* Legacy Canvas Header Fallback */
.citizen-canvas-header {
  display: none !important;
}

/* ========================================================================= */
/* TAB 1: AI COMMAND STUDIO (LIGHT THEME)                                    */
/* ========================================================================= */
.citizen-studio-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 24px 26px !important;
}

.citizen-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.citizen-studio-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.citizen-studio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.citizen-studio-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.citizen-studio-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0;
}

.citizen-engine-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.citizen-studio-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.5;
}

.citizen-studio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.citizen-studio-select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
  outline: none !important;
}

.citizen-studio-select:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.citizen-studio-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

.citizen-tool-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.citizen-tool-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.citizen-tool-btn:active {
  transform: translateY(0) scale(0.98);
}

.citizen-ai-chat-thread {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  max-height: 420px;
  min-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.citizen-ai-chat-thread .ai-role-title {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}

.citizen-ai-chat-thread .ai-bubble-assistant {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.citizen-ai-chat-thread .ai-bold {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.citizen-ai-chat-thread .ai-heading-4 {
  color: #1e40af !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  margin: 10px 0 6px 0 !important;
}

.citizen-ai-chat-thread .ai-heading-3 {
  color: #1e3a8a !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  margin: 12px 0 8px 0 !important;
}

.citizen-ai-chat-thread .ai-bullet-item {
  color: #334155 !important;
}

.citizen-ai-chat-thread .ai-bullet-dot {
  color: #2563eb !important;
  font-weight: 800 !important;
}

.citizen-ai-chat-thread .ai-number-dot {
  color: #059669 !important;
  font-weight: 700 !important;
}

.citizen-ai-chat-thread .ai-citations-box {
  margin-top: 12px !important;
  border-top: 1px dashed #cbd5e1 !important;
  padding-top: 10px !important;
}

.citizen-ai-chat-thread .ai-citations-heading {
  font-size: 11.5px !important;
  color: #1e40af !important;
  font-weight: 800 !important;
}

.citizen-ai-chat-thread .ai-citation-pill {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  margin: 3px 2px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.citizen-ai-chat-thread .ai-matched-advocates-box {
  margin-top: 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px !important;
}

.citizen-ai-chat-thread .ai-matched-adv-title {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #1e40af !important;
}

.citizen-ai-chat-thread .ai-matched-adv-badge {
  font-size: 10px !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

.citizen-ai-chat-thread .ai-matched-adv-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.citizen-ai-chat-thread .ai-matched-adv-name {
  font-weight: 800 !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
}

.citizen-ai-chat-thread .ai-matched-adv-meta {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.citizen-ai-chat-thread .ai-tag-trust {
  font-size: 10px !important;
  background: #fefce8 !important;
  color: #a16207 !important;
  border: 1px solid #fef08a !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

.citizen-ai-chat-thread .ai-tag-terms {
  font-size: 10px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.citizen-ai-chat-thread .ai-tag-probono {
  font-size: 10px !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

.citizen-ai-chat-thread .ai-bubble-assistant .btn-outline {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.citizen-ai-chat-thread .ai-bubble-assistant .btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.citizen-typing-indicator {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 7px 16px !important;
  margin-bottom: 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
}

.citizen-btn-chat-primary {
  border-radius: 24px !important;
  padding: 11px 22px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.citizen-btn-chat-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

.citizen-btn-chat-primary:active {
  transform: translateY(0) scale(0.98);
}

.citizen-chat-launch-btn {
  border-radius: 20px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 12.5px !important;
  padding: 7px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.citizen-chat-launch-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.citizen-chat-launch-btn:active {
  transform: translateY(1px) scale(0.98);
}

.citizen-light-textarea {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  border-radius: 12px !important;
  padding: 14px 16px 50px 16px !important;
  min-height: 115px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.citizen-light-textarea:focus {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
}

.citizen-light-textarea::placeholder {
  color: #94a3b8 !important;
  font-weight: 400;
}

.citizen-voice-mic {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.citizen-voice-mic:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.citizen-voice-mic:active {
  transform: scale(0.96);
}

#voiceInputStatus {
  animation: fadeInVoiceStatus 0.2s ease-out;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

@keyframes fadeInVoiceStatus {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.citizen-triage-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.citizen-btn-submit {
  border-radius: 24px !important;
  padding: 11px 24px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

.citizen-btn-submit:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}

.citizen-btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.citizen-btn-chat {
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  padding: 11px 18px !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.citizen-btn-chat:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.citizen-btn-chat:active {
  transform: translateY(1px) scale(0.98);
}

.citizen-btn-draft {
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  padding: 11px 18px !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.citizen-btn-draft:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.citizen-btn-draft:active {
  transform: translateY(1px) scale(0.98);
}

.citizen-quick-prompts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.citizen-quick-prompts .prompt-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.citizen-prompt-chip {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer;
  transition: all 0.18s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.citizen-prompt-chip::before {
  content: '💡';
  font-size: 11.5px;
  line-height: 1;
}

.citizen-prompt-chip:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.citizen-prompt-chip:active {
  transform: scale(0.96) !important;
}

/* AI Diagnosis Card (Dynamic container) in Light Canvas */
.citizen-main-canvas #triageAnalysisContainer > div,
.citizen-main-canvas #marketplaceTriageBanner > div {
  background: #eff6ff !important;
  border: 1.5px solid #93c5fd !important;
  border-radius: 14px !important;
  color: #1e3a8a !important;
  padding: 18px 22px !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1) !important;
}

.citizen-main-canvas #triageAnalysisContainer strong,
.citizen-main-canvas #marketplaceTriageBanner strong {
  color: #0f172a !important;
}

.citizen-main-canvas #triageAnalysisContainer span[style*="color:#c084fc"],
.citizen-main-canvas #marketplaceTriageBanner span[style*="color:#c084fc"] {
  color: #2563eb !important;
  font-weight: 800;
}

.citizen-main-canvas #triageAnalysisContainer .btn-outline,
.citizen-main-canvas #marketplaceTriageBanner .btn-outline {
  font-weight: 700 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.citizen-main-canvas #triageAnalysisContainer .btn-outline:hover,
.citizen-main-canvas #marketplaceTriageBanner .btn-outline:hover {
  background: #dbeafe !important;
  transform: translateY(-1px);
}

/* ========================================================================= */
/* TAB 2: MARKETPLACE & ADVOCATE DIRECTORY (LIGHT THEME)                     */
/* ========================================================================= */
.citizen-policy-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.citizen-policy-banner .policy-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.citizen-policy-banner .policy-icon {
  font-size: 26px;
}

.citizen-policy-banner .policy-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #166534;
}

.citizen-policy-banner .policy-desc {
  font-size: 12px;
  color: #15803d;
  margin-top: 3px;
  line-height: 1.45;
}

.citizen-policy-banner .policy-badge {
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.citizen-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 16px;
  flex-wrap: wrap;
  gap: 14px;
}

.citizen-results-header .results-count {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.citizen-results-header .results-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.citizen-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.citizen-sort-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.citizen-sort-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.citizen-sort-select {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.citizen-filter-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.citizen-filter-tabs .filter-tab {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.citizen-filter-tabs .filter-tab:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.citizen-filter-tabs .filter-tab:active {
  transform: scale(0.96);
}

.citizen-filter-tabs .filter-tab:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.citizen-filter-tabs .filter-tab.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.citizen-filter-tabs .dlsa-filter-btn {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}

.citizen-filter-tabs .dlsa-filter-btn.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

/* Light SaaS Advocate Cards */
.citizen-main-canvas .advocate-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  color: #1e293b !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.citizen-main-canvas .advocate-card:hover {
  transform: translateY(-2px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.citizen-main-canvas .advocate-card h3,
.citizen-main-canvas .advocate-card .advocate-name {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.citizen-main-canvas .advocate-card .bar-badge {
  color: #059669 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}

.citizen-main-canvas .advocate-card .court-line {
  color: #64748b !important;
  font-size: 12px !important;
}

.citizen-main-canvas .advocate-card .trust-score-pill {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

.citizen-main-canvas .advocate-card .trust-score-pill div[style*="font-size:10px"] {
  color: #64748b !important;
  font-weight: 700 !important;
}

.citizen-main-canvas .advocate-card .trust-score-value {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.citizen-main-canvas .advocate-card .trust-score-pill div[style*="color:#60a5fa"],
.citizen-main-canvas .advocate-card .trust-score-pill div[style*="color:#2563eb"] {
  color: #2563eb !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}

.citizen-main-canvas .advocate-card .trust-grade {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
}

.citizen-main-canvas .advocate-card .stat-item {
  background-color: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}

.citizen-main-canvas .advocate-card .stat-lbl {
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 10px !important;
}

.citizen-main-canvas .advocate-card .stat-num {
  font-size: 16px !important;
  font-weight: 800 !important;
}

.citizen-main-canvas .advocate-card .stat-num[style*="color:#60a5fa"] {
  color: #2563eb !important;
}

.citizen-main-canvas .advocate-card .stat-num[style*="color:#34d399"],
.citizen-main-canvas .advocate-card .stat-num[style*="color:#059669"] {
  color: #059669 !important;
}

.citizen-main-canvas .advocate-card .stat-num[style*="color:#fbbf24"],
.citizen-main-canvas .advocate-card .stat-num[style*="color:#b45309"],
.citizen-main-canvas .advocate-card .stat-num[style*="color:#d97706"] {
  color: #d97706 !important;
}

.citizen-main-canvas .advocate-card .spec-tag {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.citizen-main-canvas .advocate-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.citizen-main-canvas .blank-avatar {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-size: 22px !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 8px 6px !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
}

.citizen-main-canvas .advocate-card .card-footer .btn-primary:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45) !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-primary:active {
  transform: translateY(1px) scale(0.98) !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-outline {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 8px 6px !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
}

.citizen-main-canvas .advocate-card .card-footer .btn-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-outline:active {
  transform: translateY(1px) scale(0.98) !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#fbbf24"],
.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#b45309"],
.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#d97706"] {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#fbbf24"]:hover,
.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#b45309"]:hover,
.citizen-main-canvas .advocate-card .card-footer .btn-outline[style*="color:#d97706"]:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}

.citizen-main-canvas .cards-grid > div[style*="dashed"] {
  background: #ffffff !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 38px 24px !important;
  color: #64748b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ========================================================================= */
/* TAB 3: MY REQUESTS & CONSULTATIONS (LIGHT THEME)                          */
/* ========================================================================= */
.citizen-inquiries-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px 26px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  color: #1e293b !important;
}

.citizen-inquiries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.citizen-inquiries-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.citizen-inquiries-title-row .inq-icon {
  font-size: 22px;
}

.citizen-inquiries-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0;
}

.citizen-inquiries-badge {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
}

.citizen-inquiries-sub {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0 0;
  line-height: 1.5;
}

.citizen-refresh-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.citizen-refresh-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.citizen-refresh-btn:active {
  transform: translateY(1px) scale(0.98);
}

.citizen-main-canvas #citizenInquiriesContainer > div {
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 20px !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}

.citizen-main-canvas #citizenInquiriesContainer > div:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Responsive Layout */
@media (max-width: 960px) {
  .citizen-workspace-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 12px 0 28px;
  }
  .citizen-side-panel {
    position: static;
    padding: 18px;
    gap: 16px;
  }
  .citizen-side-panel .citizen-tabs-bar {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .citizen-side-panel .citizen-tab-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
    padding: 10px 14px;
    font-size: 13px;
    justify-content: center;
  }
  .citizen-main-canvas {
    padding: 22px 18px;
  }
}

@media (max-width: 600px) {
  .citizen-side-panel .citizen-tab-btn {
    min-width: 110px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }
  .citizen-canvas-header {
    padding: 16px !important;
  }
  .citizen-canvas-title {
    font-size: 20px;
  }
  .citizen-studio-card {
    padding: 18px 16px !important;
  }
  .citizen-filter-tabs .filter-tab {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}


.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-bottom: 50px;
}

.sidebar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.tier-display {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.tier-emblem {
  font-size: 48px;
  margin-bottom: 8px;
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.karma-counter {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.triage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.triage-textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.2s ease;
}

.triage-textarea:focus {
  outline: none;
  border-color: var(--accent-blue-light);
}

.triage-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-select, .pill-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover, .pill-select:hover {
  border-color: var(--border-highlight);
  background-color: var(--bg-surface-elevated);
}

.quick-prompts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.prompt-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-chip:hover {
  color: var(--text-main);
  border-color: var(--accent-gold-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.advocate-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.advocate-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.advocate-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-highlight);
}

.blank-avatar {
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-gold-light);
  border: 2px dashed var(--border-highlight);
}

.trust-score-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.stat-num {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.specializations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tag {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.court-diary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.court-diary-table th {
  background-color: var(--bg-card);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.court-diary-table td {
  padding: 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .landing-title {
    font-size: 32px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
}

/* ========================================================================= */
/* TOAST NOTIFICATION SYSTEM                                                 */
/* ========================================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(10px);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  border: 1px solid #34d399;
}

.toast-error {
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  border: 1px solid #f87171;
}

.toast-info {
  background: rgba(30, 58, 138, 0.95);
  color: #ffffff;
  border: 1px solid #60a5fa;
}

.toast-warning {
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff;
  border: 1px solid #fbbf24;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.8;
  padding: 0 4px;
}
.toast-close:hover {
  opacity: 1;
}

/* ========================================================================= */
/* MILESTONE ESCROW & STEPPER STYLES                                         */
/* ========================================================================= */
.escrow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s;
}
.escrow-card:hover {
  border-color: var(--border-highlight);
}

.milestone-stepper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
}

.milestone-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.milestone-num.status-released {
  background: var(--accent-green);
  color: #fff;
}
.milestone-num.status-funded {
  background: var(--accent-blue);
  color: #fff;
}
.milestone-num.status-submitted {
  background: var(--accent-gold);
  color: #fff;
}
.milestone-num.status-pending {
  background: var(--bg-surface-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}
.milestone-num.status-disputed {
  background: var(--accent-red);
  color: #fff;
}

/* ========================================================================= */
/* JUDICIAL ANALYTICS MODAL DASHBOARD                                        */
/* ========================================================================= */
.analytics-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.analytics-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.analytics-stat-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.analytics-stat-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================= */
/* SPEECH-TO-TEXT VOICE INPUT                                                */
/* ========================================================================= */
.btn-voice-mic {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.btn-voice-mic:hover {
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}

.btn-voice-mic.listening {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  animation: pulse-recording 1.2s infinite ease-in-out;
}

@keyframes pulse-recording {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ========================================================================= */
/* HIGH-CONTRAST ACCESSIBILITY MODE (WCAG AAA ALIGNED)                       */
/* ========================================================================= */
body.high-contrast {
  --bg-primary: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --bg-surface-elevated: #141414 !important;
  --bg-card: #050505 !important;
  --border-subtle: #ffffff !important;
  --border-highlight: #facc15 !important;
  --text-main: #ffffff !important;
  --text-muted: #f8fafc !important;
  --text-dim: #e2e8f0 !important;
  --accent-gold: #facc15 !important;
  --accent-gold-light: #fef08a !important;
  --accent-gold-bg: rgba(250, 204, 21, 0.2) !important;
  --accent-blue: #38bdf8 !important;
  --accent-blue-light: #7dd3fc !important;
  --accent-blue-bg: rgba(56, 189, 248, 0.2) !important;
  --accent-green: #4ade80 !important;
  --accent-green-bg: rgba(74, 222, 128, 0.2) !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast button,
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  border-width: 2px !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

body.high-contrast .btn-primary {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border-color: #ffffff !important;
}

body.high-contrast .btn-outline {
  border-color: #facc15 !important;
  color: #facc15 !important;
}

body.high-contrast .advocate-card,
body.high-contrast .pillar-card,
body.high-contrast .dashboard-card,
body.high-contrast .auth-card {
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

/* ========================================================================= */
/* CERTIFICATE OF COMMENDATION (OFFICIAL BAR COUNCIL & NALSA FORMAT)         */
/* ========================================================================= */
.bar-cert-frame {
  background: #fffdf5;
  color: #0f172a;
  border: 12px double #b45309;
  border-radius: 8px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  font-family: 'Times New Roman', Times, serif;
}

.bar-cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 80px;
  color: rgba(180, 83, 9, 0.05);
  font-weight: 900;
  pointer-events: none;
  text-transform: uppercase;
  user-select: none;
}

.bar-cert-seal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px dashed #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #fef3c7;
  color: #b45309;
  box-shadow: inset 0 0 10px rgba(180, 83, 9, 0.2);
}

@media print {
  body * {
    visibility: hidden;
  }
  .bar-cert-frame, .bar-cert-frame * {
    visibility: visible;
  }
  .bar-cert-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 8px double #000;
    box-shadow: none;
  }
  .modal-close, .modal-footer, .no-print {
    display: none !important;
  }
}

/* ========================================================================= */
/* INTERACTIVE WIREFRAME BLUEPRINT & DEMO TOUR SHOWCASE                     */
/* ========================================================================= */
.wf-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.wf-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wf-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.wf-tab-btn.active {
  background: var(--accent-blue-bg);
  color: #93c5fd;
  border-color: #3b82f6;
}

.wf-canvas {
  background: #090e1a;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================================= */
/* STAR RATING WIDGET                                                        */
/* ========================================================================= */
.star-rating-input {
  display: inline-flex;
  gap: 4px;
  font-size: 24px;
  cursor: pointer;
}

.star-rating-input .star {
  color: #475569;
  transition: color 0.15s ease;
}

.star-rating-input .star.active {
  color: #fbbf24;
}

/* ========================================================================= */
/* NYAYAMITRA AI CHAT & FLOATING ASSISTANT WIDGET                            */
/* ========================================================================= */
.floating-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
  filter: drop-shadow(0 8px 24px rgba(168, 85, 247, 0.4));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-ai-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-ai-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
  animation: aiPulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes aiPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 0.2; }
  100% { transform: scale(1.6); opacity: 0; }
}

.floating-ai-inner {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #31104b 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.6);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.floating-ai-icon {
  font-size: 20px;
  animation: aiWobble 4s infinite ease-in-out;
}

@keyframes aiWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.floating-ai-badge {
  background: #10b981;
  color: #022c22;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* AI Chat Modal Body Layout */
.ai-modal-layout {
  display: flex;
  flex-direction: column;
  max-width: 920px;
  margin: 0 auto;
  height: 80vh;
  min-height: 560px;
}

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

.ai-chat-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-bubble {
  max-width: 86%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
  word-break: break-word;
}

.ai-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.ai-bubble-assistant {
  align-self: flex-start;
  background: #111e38;
  color: #f1f5f9;
  border: 1px solid var(--border-highlight);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ai-bubble-guardrail {
  align-self: flex-start;
  background: #1e131d;
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.2);
}

.ai-bubble-assistant h3, .ai-bubble-assistant h4,
.ai-chat-messages-box .ai-heading-4, .ai-chat-messages-box .ai-heading-3 {
  color: #c084fc;
  margin-bottom: 6px;
  font-size: 14.5px;
}

.ai-chat-messages-box .ai-bold {
  color: #f8fafc;
  font-weight: 700;
}

.ai-chat-messages-box .ai-bullet-dot {
  color: #a855f7;
  font-weight: 800;
}

.ai-chat-messages-box .ai-number-dot {
  color: #34d399;
  font-weight: 700;
}

.ai-chat-messages-box .ai-citations-box {
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 8px;
}

.ai-chat-messages-box .ai-citations-heading {
  font-size: 11px;
  color: #d8b4fe;
  font-weight: 700;
}

.ai-chat-messages-box .ai-matched-advocates-box {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 12px;
}

.ai-chat-messages-box .ai-matched-adv-title {
  font-size: 12px;
  font-weight: 800;
  color: #c084fc;
}

.ai-chat-messages-box .ai-matched-adv-badge {
  font-size: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.ai-chat-messages-box .ai-matched-adv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat-messages-box .ai-matched-adv-name {
  font-weight: 700;
  font-size: 13px;
  color: #f8fafc;
}

.ai-chat-messages-box .ai-matched-adv-meta {
  font-size: 11px;
  color: #94a3b8;
}

.ai-chat-messages-box .ai-tag-trust {
  font-size: 10px;
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.ai-chat-messages-box .ai-tag-terms {
  font-size: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
}

.ai-chat-messages-box .ai-tag-probono {
  font-size: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  padding: 1px 6px;
  border-radius: 4px;
}

.ai-citation-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 3px 2px;
}

.ai-quick-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px 0;
  white-space: nowrap;
}

.ai-chip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ai-chip:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #f8fafc;
  transform: translateY(-1px);
}

.ai-input-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #0d1527;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  margin-top: 8px;
}

.ai-input-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 13.5px;
  resize: none;
  max-height: 120px;
  min-height: 40px;
  line-height: 1.4;
  font-family: inherit;
}

.ai-voice-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  transition: all 0.2s;
}

.ai-voice-btn.recording {
  background: #ef4444;
  color: white;
  animation: voiceRecording 1s infinite alternate;
}

@keyframes voiceRecording {
  from { opacity: 0.8; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.ai-send-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s ease;
}

.ai-send-btn:hover {
  filter: brightness(1.15);
}

.ai-typing-indicator {
  display: flex;
  gap: 5px;
  padding: 8px 14px;
  align-items: center;
  color: #a78bfa;
  font-size: 12px;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ========================================================================= */
/* UPGRADED LANDING PAGE STYLES (6 MAJOR UPGRADES)                           */
/* ========================================================================= */

/* 1. Interactive Hero Legal Search & Quick Chips */
.hero-live-search-container {
  max-width: 840px;
  margin: 28px auto 32px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
  transition: all 0.25s ease;
  text-align: left;
}

.hero-live-search-container:focus-within {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

.hero-live-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search-icon {
  font-size: 20px;
  color: #c084fc;
}

.hero-search-input {
  flex: 1;
  min-width: 260px;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 15px;
  font-family: var(--font-sans);
}

.hero-search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.hero-search-btn {
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  cursor: pointer;
  border: none;
  color: white;
  transition: filter 0.15s ease;
}

.hero-search-btn:hover {
  filter: brightness(1.15);
}

.hero-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.chips-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.hero-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-chip:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-chip-highlight {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.hero-chip-highlight:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #a7f3d0;
}

/* Section Header Styles */
.landing-section {
  margin: 64px 0;
}

.landing-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.landing-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.landing-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.landing-section-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 2. LSP Spectrum Grid */
.lsp-spectrum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.lsp-spectrum-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.lsp-spectrum-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.lsp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.lsp-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
}

.lsp-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.lsp-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* 3. Provider Incentives 4-Pillar Grid */
.incentives-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.incentive-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.incentive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.incentive-metric-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.incentive-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
}

.incentive-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4. Workflow 3 Steps */
.workflow-steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  position: relative;
}

.workflow-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  transition: all 0.2s ease;
}

.workflow-step-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.workflow-step-num {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 14px;
  right: 18px;
}

.workflow-step-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
}

.workflow-step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 5. Live Provider Spotlight */
.provider-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* 6. Constitutional NALSA Banner */
.nalsa-constitutional-banner {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 60px 0 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}



