/* ==========================================================================
   UMANG DESIGN SYSTEM — MERA HAQ CITIZEN DISCOVERY LAYER
   Dark Theme matching official web.umang.gov.in portal
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Color Palette */
  --bg-app: #0c0f17;
  --bg-header: #121622;
  --bg-sidebar: #111520;
  --bg-surface: #161b29;
  --bg-surface-elevated: #1d2334;
  --bg-surface-hover: #222a3d;
  --bg-input: #10141f;

  /* Borders */
  --border-subtle: #1e2536;
  --border-default: #263045;
  --border-highlight: #3b82f6;
  --border-focus: #60a5fa;

  /* Text & Ink */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-inverse: #0b0f19;

  /* Brand Accents */
  --umang-orange: #f97316;
  --umang-blue: #2563eb;
  --umang-blue-light: #3b82f6;
  --umang-blue-dark: #1d4ed8;
  --umang-blue-glow: rgba(37, 99, 235, 0.25);

  /* Status Colors */
  --status-strong-bg: rgba(16, 185, 129, 0.14);
  --status-strong-border: rgba(16, 185, 129, 0.35);
  --status-strong-text: #34d399;

  --status-likely-bg: rgba(59, 130, 246, 0.14);
  --status-likely-border: rgba(59, 130, 246, 0.35);
  --status-likely-text: #60a5fa;

  --status-check-bg: rgba(245, 158, 11, 0.14);
  --status-check-border: rgba(245, 158, 11, 0.35);
  --status-check-text: #fbbf24;

  --status-future-bg: rgba(168, 85, 247, 0.14);
  --status-future-border: rgba(168, 85, 247, 0.35);
  --status-future-text: #c084fc;

  --status-not-bg: rgba(244, 63, 94, 0.14);
  --status-not-border: rgba(244, 63, 94, 0.35);
  --status-not-text: #fb7185;

  /* Typography */
  --font-main: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Constants */
  --header-height: 64px;
  --sidebar-width: 240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-popover: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 2px solid var(--umang-blue-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--umang-blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

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

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* TOP HEADER */
.umang-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

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

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background-color var(--transition-fast);
}

.hamburger-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.umang-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.umang-logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.umang-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 32px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--umang-blue-light);
  box-shadow: 0 0 0 3px var(--umang-blue-glow);
}

.search-input::placeholder {
  color: var(--text-muted);
}

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

.isl-chatbot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background-color: #1a202c;
  border: 1px solid #2d3748;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.isl-chatbot-btn:hover {
  background-color: #2d3748;
  border-color: #4a5568;
}

.isl-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #ef4444;
  border-radius: 50%;
  color: #ffffff;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1a202c;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: var(--umang-orange);
  border-radius: 50%;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  transition: background-color var(--transition-fast);
}

.user-profile-badge:hover {
  background-color: var(--bg-surface-hover);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* BODY WRAPPER (Sidebar + Main Content) */
.body-wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

/* SIDEBAR */
.umang-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  transition: transform var(--transition-normal);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background-color: #1e2638;
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--umang-blue);
}

.sidebar-nav-item.active .nav-icon {
  color: var(--umang-blue-light);
}

.sidebar-nav-item.featured-nav {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.sidebar-nav-item.featured-nav.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0.12) 100%);
  border-color: var(--umang-blue-light);
  color: #ffffff;
}

.nav-badge-new {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.sidebar-footer-info {
  margin-top: auto;
  padding: 14px 10px 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sidebar-footer-info strong {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 2px;
}

/* MAIN CONTENT AREA */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 60px;
  display: flex;
  flex-direction: column;
}

.content-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.content-container.narrow {
  max-width: 860px;
}

/* ==========================================================================
   UMANG SCHEMES (BEFORE / FAILURE CONTRAST EXPERIENCE)
   ========================================================================== */

.umang-schemes-experience {
  max-width: 820px;
  margin: 10px auto;
}

.back-link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.back-link-row:hover {
  color: #ffffff;
}

.schemes-stepper-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 36px 44px;
  box-shadow: var(--shadow-card);
}

.step-indicator-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.step-bar {
  height: 6px;
  background-color: #263147;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-normal);
}

.step-bar.active {
  background-color: var(--umang-blue-light);
  box-shadow: 0 0 10px var(--umang-blue-glow);
}

.step-bar.completed {
  background-color: #10b981;
}

.schemes-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.schemes-filter-grid .field.full {
  grid-column: 1 / -1;
}

.no-schemes-found-box {
  text-align: center;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-schemes-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.inbox-empty-icon {
  width: 140px;
  height: 100px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.schemes-contrast-notice {
  margin-top: 36px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contrast-badge {
  background: var(--umang-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.contrast-copy h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.contrast-copy p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ==========================================================================
   MERA HAQ COMPONENTS & SCREENS
   ========================================================================== */

/* HEADER BADGES & SECTION LABELS */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.eyebrow-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
}

.page-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* TRUST NOTICES & DISCLAIMERS */
.prototype-trust-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: rgba(22, 27, 41, 0.8);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prototype-trust-banner svg {
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.prototype-trust-banner strong {
  color: #ffffff;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: #3b82f6;
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #fb923c;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--text-secondary);
  padding: 10px 14px;
}

.btn-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   LANDING PAGE (HERO & COMPARISON)
   ========================================================================== */

.mera-haq-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 20px 0 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.demo-trigger-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.demo-trigger-info strong {
  display: block;
  font-size: 14px;
  color: #fed7aa;
  margin-bottom: 2px;
}

.demo-trigger-info span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.comparison-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.comparison-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.comparison-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.comparison-flow-step {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.comparison-flow-step:last-child {
  border-bottom: none;
}

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

.step-badge.legacy {
  background-color: #374151;
  color: #9ca3af;
}

.step-badge.new {
  background-color: var(--umang-blue);
  color: #ffffff;
}

.step-content strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   PROFILE FLOW (3 STEPS)
   ========================================================================== */

.profile-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  box-shadow: var(--shadow-card);
}

.profile-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.step-pills-nav {
  display: flex;
  gap: 8px;
}

.step-pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.step-pill-btn.active {
  background-color: var(--umang-blue);
  border-color: var(--umang-blue-light);
  color: #ffffff;
}

.step-pill-btn.completed {
  background-color: #064e3b;
  border-color: #10b981;
  color: #6ee7b7;
}

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

.form-grid .field.full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label, .field legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.field small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.input-control, .select-control {
  height: 44px;
  padding: 0 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14.5px;
  transition: all var(--transition-fast);
}

.input-control:focus, .select-control:focus {
  outline: none;
  border-color: var(--umang-blue-light);
  box-shadow: 0 0 0 3px var(--umang-blue-glow);
}

.select-control option {
  background-color: #161b29;
  color: #ffffff;
}

/* CHIPS & SELECTORS */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: #4b5563;
  color: #ffffff;
}

.chip-btn[aria-pressed="true"] {
  background-color: #1e3a8a;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PROFILE REVIEW
   ========================================================================== */

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.review-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.review-card-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.review-card-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.review-card-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   MATCHING ANIMATION SCREEN
   ========================================================================== */

.matching-wrapper {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
}

.matching-radar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(37, 99, 235, 0.1) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--umang-blue-light);
  box-shadow: 0 0 24px var(--umang-blue-glow);
  animation: radar-pulse 1.8s infinite ease-in-out;
}

@keyframes radar-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 12px rgba(59, 130, 246, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
  100% { transform: scale(0.96); box-shadow: 0 0 12px rgba(59, 130, 246, 0.3); }
}

.matching-progress-bar {
  height: 8px;
  background-color: var(--bg-input);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border-subtle);
}

.matching-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #34d399);
  width: 0%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
  animation: progress-advance 1.2s forwards ease-in-out;
}

@keyframes progress-advance {
  0% { width: 5%; }
  35% { width: 45%; }
  70% { width: 85%; }
  100% { width: 100%; }
}

.matching-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}

.matching-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.check-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-default);
  border-top-color: var(--umang-blue-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   OPPORTUNITY RESULTS MAP
   ========================================================================== */

.results-header-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.metric-box {
  background-color: rgba(16, 21, 33, 0.85);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-number.strong { color: #34d399; }
.metric-number.verify { color: #fbbf24; }
.metric-number.future { color: #c084fc; }
.metric-number.value { color: #60a5fa; }

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* TOOLBAR & CATEGORY FILTER ARCHITECTURE */
.discovery-toolbar-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.status-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.status-pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.status-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.status-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
  border-color: #4b5563;
}

.status-tab-btn.active {
  background: var(--umang-blue);
  border-color: var(--umang-blue-light);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.status-tab-btn.active.likely {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #34d399;
}

.status-tab-btn.active.potential {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #93c5fd;
}

.domain-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.domain-category-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-category-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  width: 100%;
}

.domain-category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-chip-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--umang-blue-light);
  color: #ffffff;
}

.category-chip-btn.active {
  background: var(--umang-blue);
  border-color: #60a5fa;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}

/* OPPORTUNITY CARDS */
.opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opportunity-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.opportunity-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.opportunity-card.featured-card {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(22, 27, 41, 0.95) 100%);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.card-authority-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.authority-pill {
  font-weight: 700;
  color: #93c5fd;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--umang-blue-light);
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.strong {
  background-color: var(--status-strong-bg);
  border: 1px solid var(--status-strong-border);
  color: var(--status-strong-text);
}

.status-pill.likely {
  background-color: var(--status-likely-bg);
  border: 1px solid var(--status-likely-border);
  color: var(--status-likely-text);
}

.status-pill.check {
  background-color: var(--status-check-bg);
  border: 1px solid var(--status-check-border);
  color: var(--status-check-text);
}

.status-pill.future {
  background-color: var(--status-future-bg);
  border: 1px solid var(--status-future-border);
  color: var(--status-future-text);
}

.status-pill.not {
  background-color: var(--status-not-bg);
  border: 1px solid var(--status-not-border);
  color: var(--status-not-text);
}

.universal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-benefit-highlight {
  font-size: 14.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* DOCUMENT READINESS STRIP */
.doc-readiness-strip {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.doc-readiness-bar-bg {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  overflow: hidden;
}

.doc-readiness-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s ease;
}

.doc-readiness-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

.doc-readiness-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.doc-readiness-text {
  color: #94a3b8;
}

.doc-readiness-text strong {
  color: #34d399;
  font-weight: 700;
}

.doc-readiness-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.doc-readiness-pending {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.card-matched-criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  background-color: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.criterion-bullet {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}

.criterion-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.criterion-icon.match { background-color: #065f46; color: #34d399; }
.criterion-icon.verify { background-color: #78350f; color: #fbbf24; }
.criterion-icon.missing { background-color: #78350f; color: #fbbf24; }
.criterion-icon.future { background-color: #581c87; color: #c084fc; }
.criterion-icon.fail { background-color: #881337; color: #fb7185; }

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ==========================================================================
   WHY DO I MATCH? (SIGNATURE MATRIX SCREEN)
   ========================================================================== */

.match-matrix-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.matrix-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.matrix-row {
  display: grid;
  grid-template-columns: 2fr 2.5fr 2.5fr 1.5fr;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.matrix-row.header {
  background-color: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 6px 18px;
}

.matrix-rule-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.matrix-rule-val {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.matrix-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-explanation-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

.ai-explanation-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-explanation-box p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   DOCUMENT READINESS CHECKLIST
   ========================================================================== */

.readiness-docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.doc-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.doc-check-item.ready {
  border-color: rgba(16, 185, 129, 0.35);
}

.doc-check-item.attention {
  border-color: rgba(245, 158, 11, 0.35);
  background-color: rgba(245, 158, 11, 0.04);
}

.doc-info strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 3px;
}

.doc-info span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-popover);
  animation: modal-enter 0.22s ease-out;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-detail-list {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   FLOATING AI ASSISTANT / SUPPORT PILL
   ========================================================================== */

.floating-help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  transition: all var(--transition-fast);
}

.floating-help-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.6);
}

/* ==========================================================================
   TEST SUITE AUDIT RUNNER
   ========================================================================== */

.test-suite-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 30px;
}

.test-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.test-item-row:last-child {
  border-bottom: none;
}

.test-status-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.test-status-badge.pass {
  background-color: #064e3b;
  color: #6ee7b7;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE DESIGN & PROGRESSIVE ENHANCEMENTS
   ========================================================================== */

/* ── Mobile Base Styles (< 640px) ─────────────────────────────────────────── */
@media (max-width: 639px) {
  :root {
    --header-height: 56px;
    --sidebar-width: 260px;
  }

  /* Compact header on mobile */
  .umang-header {
    padding: 0 12px;
  }

  .header-left {
    gap: 8px;
  }

  .umang-brand-text {
    font-size: 16px;
  }

  .header-search {
    display: none;
  }

  .isl-chatbot-btn {
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
  }

  .isl-chatbot-btn span:not(.isl-badge-icon) {
    display: none;
  }

  .user-profile-badge {
    padding: 0 4px;
    height: 34px;
    gap: 4px;
  }

  .user-profile-badge span:not(.user-avatar) {
    display: none;
  }

  .user-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  /* Main content padding on mobile */
  .main-content {
    padding: 14px 12px 48px;
  }

  /* Typography fluid adjustments */
  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  /* Mobile Drawer Sidebar */
  .umang-sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    max-width: 80vw;
  }

  .umang-sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Hero & Comparison stack */
  .mera-haq-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px 0 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .demo-trigger-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .demo-trigger-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Forms & grids */
  .form-grid,
  .schemes-filter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-form-card,
  .schemes-stepper-card,
  .match-matrix-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .profile-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .step-pills-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .step-pills-nav::-webkit-scrollbar { display: none; }

  .review-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-actions-row > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .form-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Results banner & Metrics grid */
  .results-header-banner {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .metrics-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .metric-box {
    padding: 10px 12px;
  }

  .metric-number {
    font-size: 20px;
  }

  .metric-label {
    font-size: 10.5px;
  }

  /* Card layouts on mobile */
  .opportunity-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .card-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .card-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Why Do I Match - Signature Matrix on mobile */
  .matrix-row.header {
    display: none;
  }

  .matrix-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }

  .matrix-rule-name {
    font-size: 13.5px;
    color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 4px;
  }

  .matrix-rule-val {
    font-size: 12.5px;
  }

  .matrix-status-cell {
    margin-top: 4px;
  }

  /* Document checklist on mobile */
  .doc-check-item {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .doc-check-item .btn,
  .doc-check-item button {
    align-self: flex-start;
  }

  /* Modal Mobile Bottom Sheet */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    padding: 22px 16px 32px;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating help button mobile */
  .floating-help-btn {
    bottom: 14px;
    right: 14px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ── Tablet Viewport (640px to 1023px) ────────────────────────────────────── */
@media (min-width: 640px) and (max-width: 1023px) {
  .umang-header {
    padding: 0 16px;
  }

  .header-search {
    display: block;
    max-width: 320px;
    margin: 0 16px;
  }

  .main-content {
    padding: 22px 18px 50px;
  }

  .umang-sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    width: 250px;
  }

  .umang-sidebar.mobile-open {
    transform: translateX(0);
  }

  .mera-haq-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .metrics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .matrix-row {
    grid-template-columns: 1.5fr 2fr 1.5fr 1fr;
    gap: 12px;
  }
}

/* ── Desktop Viewport (1024px+) ───────────────────────────────────────────── */
@media (min-width: 1024px) {
  .umang-sidebar {
    position: static;
    transform: none;
    box-shadow: none;
  }

  .header-search {
    display: block;
  }

  .metrics-summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .review-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Universal Interactive & Touch Utility Classes ────────────────────────── */
.clickable-metric:hover {
  border-color: var(--umang-blue);
  background-color: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.clickable-metric:focus-visible {
  outline: 2px solid var(--umang-blue-light);
  outline-offset: 2px;
}

/* Hide scrollbar on filter row while keeping scroll functionality */
.filter-scroll-row::-webkit-scrollbar { display: none; }
.filter-scroll-row { -ms-overflow-style: none; scrollbar-width: none; }

/* Category type badge on opportunity cards */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.category-badge.health { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.category-badge.food { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.category-badge.housing { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.category-badge.agriculture { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.category-badge.utilities { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.category-badge.women-child { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
.category-badge.pension { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.category-badge.disability { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.category-badge.employment { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

/* ==========================================================================
   AI SCHEME COUNSELOR & DYNAMIC OPPORTUNITY MAPPING
   ========================================================================== */

.ai-counselor-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ai-counselor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
}

.ai-counselor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-counselor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #c7d2fe;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e0e7ff;
}

.ai-score-ring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #34d399;
}

.ai-reasoning-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ai-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ai-insight-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.ai-insight-box strong {
  display: block;
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ai-insight-box span {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

.ai-copilot-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #0f172a;
  border-left: 1px solid rgba(99, 102, 241, 0.3);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-copilot-drawer.open {
  transform: translateX(0);
}

.ai-copilot-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #131d33;
}

.ai-copilot-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.ai-bubble.assistant {
  align-self: flex-start;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

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

.ai-prompt-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ai-prompt-chip {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.ai-prompt-chip:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  border-color: #818cf8;
}

.ai-copilot-input-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background: #131d33;
  display: flex;
  gap: 10px;
}

.ai-copilot-input {
  flex: 1;
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.ai-copilot-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.ai-fit-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

/* ==========================================================================
   TWO-STAGE PROGRESSIVE PROFILING & SMART QUESTION INTERACTION
   ========================================================================== */

/* 3-State Eligibility Badges */
.status-pill.LIKELY_ELIGIBLE,
.status-pill.likely-eligible {
  background-color: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.status-pill.POTENTIAL_MATCH,
.status-pill.potential-match {
  background-color: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.status-pill.NOT_ELIGIBLE,
.status-pill.not-eligible {
  background-color: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

/* Progressive Discovery & Personalization Banner */
.progressive-enrichment-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.progressive-enrichment-banner .enrichment-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 6px;
}

.progressive-enrichment-banner .enrichment-info p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.45;
  margin: 0;
}

/* Inline Smart Question Box on Opportunity Card */
.inline-smart-question-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease-in-out;
}

.inline-question-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #c7d2fe;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.inline-opt-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-default);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.inline-opt-btn:hover {
  background: var(--umang-blue);
  border-color: var(--umang-blue-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.inline-opt-btn.selected {
  background: var(--umang-blue);
  border-color: #60a5fa;
  color: #ffffff;
}

/* Modal for Progressive Personalization */
.enrichment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.enrichment-modal-card {
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  position: relative;
}

.enrichment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.enrichment-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.enrichment-modal-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.gender-select-row {
  display: flex;
  gap: 10px;
}

.gender-pill-btn {
  flex: 1;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.gender-pill-btn:hover {
  border-color: var(--umang-blue-light);
  background: rgba(37, 99, 235, 0.15);
}

.gender-pill-btn.active {
  background: var(--umang-blue);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* =============================================================================
   CITIZEN BALANCE SHEET & FISCAL BUCKET WIDGET (DPI 2.0)
   ============================================================================= */
.citizen-balance-sheet-widget {
  margin: 20px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.balance-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-sheet-title-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-sheet-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.balance-sheet-disclaimer-pill {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.balance-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.balance-bucket-col {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.balance-bucket-col:hover {
  transform: translateY(-2px);
}

.balance-bucket-col.dbt {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), rgba(52, 211, 153, 0.01));
}

.balance-bucket-col.waiver {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.06), rgba(96, 165, 250, 0.01));
}

.balance-bucket-col.credit {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), rgba(251, 191, 36, 0.01));
}

.bucket-top-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.balance-bucket-col.dbt .bucket-top-label { color: #34d399; }
.balance-bucket-col.waiver .bucket-top-label { color: #60a5fa; }
.balance-bucket-col.credit .bucket-top-label { color: #fbbf24; }

.bucket-amount-display {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.bucket-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: auto;
}

/* Progressive Profiling Nudge */
.progressive-nudge-card {
  margin: 16px 0;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.progressive-nudge-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.progressive-nudge-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.progressive-nudge-text strong {
  color: #c4b5fd;
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.progressive-nudge-text p {
  color: #cbd5e1;
  font-size: 12.5px;
  margin: 0;
}

/* RAG Inspection Modal */
.rag-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rag-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.rag-modal-header {
  padding: 18px 24px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.rag-tab-row {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.rag-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.rag-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.rag-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.rag-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.rag-code-block {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #93c5fd;
  white-space: pre-wrap;
  overflow-x: auto;
}

.rag-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rag-metric-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
}

.rag-metric-box strong {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.rag-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.rag-guardrail-banner {
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 12.5px;
  color: #e2e8f0;
}



