/* ===================================================================
   PROJECT UPLIFT - Comprehensive Modern Design System & Stylesheet
   Modern Glassmorphism, Neon Glow Accents, Micro-interactions
   Fonts: Outfit (Headings), Inter (Body), JetBrains Mono (Readouts)
=================================================================== */

:root {
  /* Color Palette - Cyber & Deep Space Theme */
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1626;
  --bg-card: rgba(18, 26, 43, 0.72);
  --bg-card-hover: rgba(26, 36, 58, 0.85);
  --bg-card-active: rgba(30, 42, 68, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #020617;

  /* Vibrant Accents */
  --cyan-400: #38bdf8;
  --cyan-500: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);

  --purple-400: #c084fc;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-glow: rgba(139, 92, 246, 0.35);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.3);

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.3);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-cyan-purple: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(6, 182, 212, 0.12);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --navbar-height: 72px;
  --max-content-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ===================================================================
   Reset & Global Styles
=================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Radial Glow Accents */
.bg-glow-purple {
  position: fixed;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 12s ease-in-out infinite alternate;
}

.bg-glow-cyan {
  position: fixed;
  bottom: 5%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(6, 182, 212, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatPulse {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(30px, 20px) scale(1.08); opacity: 0.9; }
  100% { transform: translate(-20px, 40px) scale(0.95); opacity: 0.7; }
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-medium);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--cyan-400); }
.text-purple { color: var(--purple-400); }
.text-emerald, .text-green { color: var(--emerald-400); }
.text-red { color: var(--rose-400); }
.text-orange { color: var(--amber-400); }

.hidden {
  display: none !important;
}

/* ===================================================================
   Navigation Bar
=================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: var(--max-content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--grad-cyan-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
  transition: transform var(--transition-bounce);
}

.nav-brand:hover .brand-icon-wrapper {
  transform: scale(1.08) rotate(-4deg);
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Menu Tabs */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: transform var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: var(--grad-cyan-purple);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.nav-tab.active .tab-icon {
  opacity: 1;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px var(--cyan-400);
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* ===================================================================
   Buttons & Interactive Elements
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--grad-cyan-purple);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--cyan-400);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-preset {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
}

.btn-preset:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: var(--rose-400);
  color: #ffffff;
}

.btn-preset-safe {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.btn-preset-safe:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald-400);
  color: #ffffff;
}

/* ===================================================================
   Guided Demo Banner
=================================================================== */
.demo-guide-banner {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.18) 100%);
  border-bottom: 1px solid var(--border-highlight);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: var(--navbar-height);
  z-index: 95;
  backdrop-filter: blur(12px);
  animation: slideDown 0.3s ease-out;
}

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

.demo-guide-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.demo-step-badge {
  background: var(--grad-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.demo-step-info {
  flex-grow: 1;
}

.demo-step-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  color: var(--text-primary);
}

.demo-step-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ===================================================================
   Toast Notifications
=================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 290px;
  max-width: 420px;
  padding: 0.9rem 1.2rem;
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@keyframes toastIn {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast.toast-exit {
  transform: translateX(100%) scale(0.85);
  opacity: 0;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-message {
  flex-grow: 1;
  line-height: 1.35;
}

.toast-success { border-left: 4px solid var(--emerald-400); }
.toast-info { border-left: 4px solid var(--cyan-400); }
.toast-warning { border-left: 4px solid var(--amber-400); }
.toast-danger { border-left: 4px solid var(--rose-400); }

/* ===================================================================
   Main Content Layout & View Panels
=================================================================== */
.main-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - var(--navbar-height) - 140px);
  padding: 2rem 1.5rem 4rem;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.view-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-container {
  margin-top: 2rem;
}

.view-header {
  margin-bottom: 2rem;
  max-width: 840px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0.5rem;
}

.page-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan-400);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* ===================================================================
   1. Dashboard View Styles
=================================================================== */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1rem 0;
  line-height: 1.15;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.profile-selector-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.custom-select, .compact-select {
  width: 100%;
  background: #0d1322;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.custom-select:focus, .compact-select:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.selector-tip {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Widget Card */
.hero-widget-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.widget-icon {
  font-size: 1.25rem;
}

.widget-header h3 {
  font-size: 1.2rem;
}

.live-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.focus-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.current-task-preview {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  padding: 1rem;
}

.task-preview-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.task-preview-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0.35rem 0 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.safety-advisory-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Pillar Shortcuts */
.dashboard-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow-cyan);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.bg-purple-glow {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-400);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bg-cyan-glow {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.bg-red-glow {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.bg-green-glow {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pillar-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.pillar-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pillar-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pillar-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-400);
  margin-top: auto;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.pillar-card:hover .pillar-link {
  transform: translateX(4px);
}

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

.section-title {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===================================================================
   2. Opportunity Finder (Discover View)
=================================================================== */
.filter-controls-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: #090e1a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.pill-btn.active {
  background: var(--grad-cyan-purple);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.filter-dropdowns {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-wrap label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.compact-select {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  width: auto;
}

.transparency-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-simulation {
  background: rgba(139, 92, 246, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-category {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: capitalize;
}

.results-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Opportunities Grid */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.opportunity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.opportunity-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.opportunity-card.featured {
  border-color: rgba(56, 189, 248, 0.4);
}

.opp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.opp-badges-wrap {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-bookmark {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 0.2rem;
}

.btn-bookmark:hover {
  transform: scale(1.15);
}

.btn-bookmark.saved {
  color: var(--amber-400);
}

.opp-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.opp-org {
  font-size: 0.85rem;
  color: var(--cyan-400);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.opp-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.opp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.opp-detail-row {
  display: flex;
  flex-direction: column;
}

.opp-detail-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.opp-detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.opp-skills-list {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.opp-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ===================================================================
   3. Opportunity Gap Finder View
=================================================================== */
.gap-finder-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.gap-input-card {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skills-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.skill-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.skill-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.skill-checkbox-label input[type="checkbox"] {
  accent-color: var(--cyan-500);
  width: 15px;
  height: 15px;
}

/* Gap Results Card */
.gap-results-card {
  padding: 2rem;
  min-height: 480px;
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  font-size: 0.92rem;
  max-width: 420px;
  line-height: 1.5;
}

/* Dynamic Gap Results Content */
.gap-analysis-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.gap-match-overview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.match-gauge-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan-400) calc(var(--match-score, 70) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--cyan-glow);
  position: relative;
  flex-shrink: 0;
}

.match-gauge-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f1626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.match-gauge-percent {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan-400);
}

.match-gauge-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.match-summary-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.match-summary-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.skills-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.skill-category-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.skill-category-box h5 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin: 0.2rem;
}

.skill-badge-matched {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.skill-badge-missing {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.roadmap-timeline-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-milestone {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--transition-fast);
}

.roadmap-milestone:hover {
  border-color: var(--cyan-400);
}

.milestone-step {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.15);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  height: fit-content;
  flex-shrink: 0;
}

.milestone-body h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.milestone-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gap-cta-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===================================================================
   4. Scam Warning Engine View
=================================================================== */
.ethical-alert-banner {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.alert-icon-box {
  color: var(--cyan-400);
  flex-shrink: 0;
}

.alert-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.scam-engine-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.scam-input-panel, .scam-results-panel {
  padding: 2rem;
}

.panel-header-with-presets {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sample-preset-buttons {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.custom-textarea {
  width: 100%;
  background: #090e1a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

.custom-textarea:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.engine-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Scam Results Active Presentation */
.scam-score-badge-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.scam-score-high {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.scam-score-med {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.scam-score-safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.risk-level-display {
  display: flex;
  flex-direction: column;
}

.risk-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.flags-detected-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.flag-alert-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
}

.flag-severity-high { border-left-color: var(--rose-400); }
.flag-severity-med { border-left-color: var(--amber-400); }
.flag-severity-safe { border-left-color: var(--emerald-400); }

.flag-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.flag-explanation {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.scam-advice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.scam-advice-card h5 {
  font-size: 0.9rem;
  color: var(--cyan-400);
  margin-bottom: 0.4rem;
}

.scam-advice-card ul {
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Reference Grid */
.educational-reference-card {
  padding: 2rem;
}

.scam-rules-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.rule-ref-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.ref-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rule-ref-item h4 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.rule-ref-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ===================================================================
   5. Focus System View
=================================================================== */
.focus-system-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.timer-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-task-selector {
  width: 100%;
  max-width: 460px;
  margin-bottom: 2rem;
}

.focus-task-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.focus-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.current-task-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--cyan-400);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px var(--cyan-400);
  flex-shrink: 0;
}

/* SVG Circular Ring */
.timer-display-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 1rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.35s ease;
  stroke-dasharray: 753.98; /* 2 * PI * 120 */
  stroke-dashoffset: 0;
}

.timer-digits-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(6, 182, 212, 0.5);
}

.timer-phase-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: -0.25rem;
}

.timer-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 440px;
  justify-content: center;
  flex-wrap: wrap;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.preset-pill.active {
  background: var(--grad-cyan-purple);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

/* Focus Log Card */
.focus-log-card {
  padding: 2rem;
}

.focus-metrics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.session-history-container {
  margin-bottom: 1.25rem;
}

.history-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.session-history-list {
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.history-item-task {
  font-weight: 500;
  color: var(--text-primary);
}

.history-item-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.history-card-actions {
  display: flex;
  justify-content: flex-end;
}

/* ===================================================================
   Modal Backdrop & Modal Card
=================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  background: #0f1626;
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.2);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-title {
  font-size: 1.65rem;
  line-height: 1.25;
  padding-right: 2rem;
}

.modal-org {
  font-size: 0.95rem;
  color: var(--cyan-400);
  font-weight: 600;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.modal-info-item {
  display: flex;
  flex-direction: column;
}

.modal-info-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-info-val {
  font-weight: 600;
  font-size: 0.92rem;
}

.modal-section-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-body-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-checklist li::before {
  content: "✔";
  color: var(--cyan-400);
  font-weight: bold;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ===================================================================
   Footer Styles
=================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 13, 20, 0.9);
  padding: 2.5rem 1.5rem 1.75rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  max-width: 600px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-link-item:hover {
  color: var(--cyan-400);
}

.footer-disclaimer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   Region Badges & Safe Portals Directory Styles
=================================================================== */
.badge-india {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-weight: 700;
}

.badge-global {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-gov {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.portals-controls-bar {
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portals-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.security-rules-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.sec-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  line-height: 1.45;
}

.sec-rule-item code {
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.sec-rule-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Portals Grid & Cards */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(6, 182, 212, 0.15);
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.portal-badges-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.portal-domain-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--cyan-400);
}

.portal-title {
  font-size: 1.28rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.portal-agency {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.portal-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portal-offerings-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.portal-offerings-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.portal-offerings-list {
  list-style: none;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.portal-offerings-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.portal-offerings-list li::before {
  content: "•";
  color: var(--cyan-400);
}

.portal-safety-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
}

.btn-visit-portal {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ===================================================================
   Responsive Media Queries
=================================================================== */
@media (max-width: 1080px) {
  .security-rules-strip {
    grid-template-columns: 1fr;
  }

  .portals-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dashboard-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .gap-finder-layout,
  .scam-engine-layout,
  .focus-system-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .dashboard-pillars {
    grid-template-columns: 1fr;
  }

  .opportunities-grid {
    grid-template-columns: 1fr;
  }

  .filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-dropdowns {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .scam-rules-summary-grid {
    grid-template-columns: 1fr;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }
}
