/* Watchdog Modern Light Theme Design System - Clean, Vibrant, User-Friendly */

:root {
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-active: #eef2ff;
  --border-color: #e2e8f0;
  --border-accent: #c7d2fe;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-primary: #4f46e5; /* Indigo */
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0284c7; /* Sky Blue */
  --accent-gold: #d97706; /* Amber */
  --accent-success: #10b981; /* Emerald */
  --accent-danger: #ef4444; /* Rose */
  --accent-purple: #7c3aed;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
}

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

body {
  background-color: var(--bg-light);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
}

.sub-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: block;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-public-data {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.autonomous-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

.badge-audit {
  background: #eef2ff;
  color: var(--accent-primary);
  border-color: #c7d2fe;
}

.badge-privacy {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Header Banner with Agent Picasso Artwork Picture */
.header-banner-artwork {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 100%), 
              url('/agent_picasso_daily_artwork.jpg') center/cover no-repeat;
  border-bottom: 3px solid #dc2626;
  padding: 1.75rem 2rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.header-banner-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-banner-left {
  max-width: 780px;
}

.header-banner-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e9d5ff;
  background: rgba(147, 51, 234, 0.35);
  border: 1px solid rgba(216, 180, 254, 0.5);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.header-banner-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-banner-subtitle {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Hero & Search Section */
.hero-section {
  padding: 2rem 1.5rem 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.hero-text-side {
  flex: 1;
  text-align: left;
}

@media (max-width: 900px) {
  .hero-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text-side {
    text-align: center;
  }
}

.hero-text-side h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.hero-text-side p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Agent Picasso (GPT-5) Compact Top-Corner Card */
.picasso-top-corner-card {
  width: 320px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px solid #c084fc;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.1);
  transition: all 0.2s ease;

.picasso-top-corner-card:hover {
  border-color: #9333ea;
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.18);
  transform: translateY(-2px);
}
}

.picasso-corner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e9d5ff;
}

.picasso-corner-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #7e22ce;
  letter-spacing: 0.03em;
}

.picasso-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9333ea;
  box-shadow: 0 0 8px rgba(147, 51, 234, 0.8);
  animation: live-pulse 1.5s infinite;
}

.picasso-corner-body {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.picasso-thumb-img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #d8b4fe;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.picasso-corner-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.picasso-corner-title {
  font-weight: 800;
  font-size: 0.84rem;
  color: #581c87;
}

.picasso-corner-caption {
  font-size: 0.76rem;
  color: #6b21a8;
  line-height: 1.25;
}

.btn-picasso-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7e22ce;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.35rem;
  transition: all 0.15s ease;

.btn-picasso-modal:hover {
  color: #ffffff;
  background: #9333ea;
  border-color: #7e22ce;
}
}

/* Predictive Autocomplete Search Dropdown */
.predictive-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  padding: 0.4rem 0;
}

.predictive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;

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

.predictive-item:hover, .predictive-item.active {
  background: #f0f9ff;
}
}

.predictive-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.predictive-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.predictive-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

/* ChatGPT Inquiry Research Action Button */
.btn-chatgpt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #10a37f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 163, 127, 0.2);

.btn-chatgpt:hover {
  background: #0e8e6d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}
}
.feed-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .feed-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }
}

.feed-filter-bar {
  display: flex;
  gap: 0.35rem;
}

.feed-filter-btn {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feed-filter-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.feed-filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.search-bar-wrapper {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.4rem;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.search-bar-wrapper input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.clear-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Main Container */
.main-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  flex: 1;
  width: 100%;
}

/* KPI Summary Bar */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* Agent Susan's High-Pizzazz Top 3 MPs In Question Spotlight Section */
.featured-inquiry-section {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 50%, #fef2f2 100%);
  border: 2px solid #dc2626;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 14px 35px -5px rgba(220, 38, 38, 0.16);
  position: relative;
  overflow: hidden;
}

.featured-inquiry-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626 0%, #f87171 50%, #b91c1c 100%);
}

.featured-inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #fecaca;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-inquiry-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-inquiry-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: -0.01em;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  background: #dc2626;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top3-inquiry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.35rem;
}

.top3-card {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.top3-card:hover {
  border-color: #ef4444;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
  transform: translateY(-4px);
}

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

.top3-rank-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  letter-spacing: 0.02em;
}

.top3-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #7f1d1d;
  margin-bottom: 0.3rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.top3-card-sub {
  font-size: 0.86rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.top3-card-body {
  font-size: 0.92rem;
  color: #7f1d1d;
  line-height: 1.55;
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  margin-bottom: 1rem;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.top3-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px dashed #fecaca;
}

.btn-chatgpt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #10a37f 0%, #0d8a6c 100%);
  border: 1px solid #0b7259;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(16, 163, 127, 0.2);
  transition: all 0.2s ease;
}

.btn-chatgpt:hover {
  background: linear-gradient(135deg, #12b88f 0%, #10a37f 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 163, 127, 0.35);
}

/* User-Friendly & Fixed Compact Live Activity Feed Box */
.feed-section-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #f1f5f9;
}

.feed-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-header-left h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Fixed Height Compact Live Feed Ticker Box */
.live-feed-ticker {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 230px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Custom Scrollbar for Live Feed */
.live-feed-ticker::-webkit-scrollbar {
  width: 5px;
}
.live-feed-ticker::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.live-feed-ticker::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Compact Readability-Enhanced Feed Item Card */
.feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #0284c7;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.feed-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Event Specific Left Borders */
.feed-item.event-vote { border-left-color: #4f46e5; }
.feed-item.event-expense { border-left-color: #10b981; }
.feed-item.event-promise { border-left-color: #f59e0b; }
.feed-item.event-search { border-left-color: #0284c7; }

.feed-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.feed-item-top-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.feed-type-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.type-NEW_VOTE_SCORD { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.type-EXPENSE_AUDIT { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.type-PROMISE_UPDATE { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.type-CONTINUOUS_SEARCH { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }

.feed-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.3;
}

.feed-meta-line {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

.feed-details {
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.15rem;
  background: #f8fafc;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
}

.feed-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.feed-source-link:hover {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #7dd3fc;
  text-decoration: underline;
}

/* Agent Picasso (GPT-5) Daily Canadian State of Affairs Artwork Section */
.picasso-section {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #f3e8ff 100%);
  border: 2px solid #9333ea;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 14px 35px -5px rgba(147, 51, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.picasso-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9333ea 0%, #c084fc 50%, #7e22ce 100%);
}

.picasso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e9d5ff;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.picasso-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.picasso-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #581c87;
  letter-spacing: -0.01em;
}

.picasso-status-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: #6b21a8;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.picasso-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .picasso-body-grid {
    grid-template-columns: 1fr;
  }
}

.picasso-canvas-wrap {
  background: #ffffff;
  border: 1.5px solid #d8b4fe;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.08);
}

.picasso-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.picasso-img-caption {
  font-size: 0.85rem;
  color: #6b21a8;
  margin-top: 0.65rem;
  text-align: center;
  padding-top: 0.45rem;
  border-top: 1px dashed #e9d5ff;
}

.picasso-analysis-box {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.picasso-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3e8ff;
  padding-bottom: 0.5rem;
}

.picasso-box-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #6b21a8;
}

.picasso-commentary-text {
  font-size: 0.92rem;
  color: #3b0764;
  line-height: 1.6;
  background: #faf5ff;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid #9333ea;
  font-style: italic;
}

.picasso-materials-box {
  background: #fdf4ff;
  border: 1px solid #fae8ff;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.picasso-materials-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: #701a75;
  line-height: 1.65;
}

.scoreboard-section {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.scoreboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #f1f5f9;
}

@media (max-width: 768px) {
  .scoreboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.scoreboard-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.scoreboard-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.scoreboard-schedule-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.scoreboard-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.scoreboard-column {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.top10-column {
  border-top: 4px solid #16a34a;
}

.bottom10-column {
  border-top: 4px solid #dc2626;
}

.scoreboard-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e2e8f0;
}

.scoreboard-col-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.col-count-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.bg-success { background: #16a34a; }
.bg-danger { background: #dc2626; }

.scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.scoreboard-row-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scoreboard-row-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  transform: translateX(2px);
}

.scoreboard-rank-num {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #64748b;
  min-width: 28px;
}

.scoreboard-mp-info {
  flex-grow: 1;
  margin: 0 0.5rem;
}

.scoreboard-mp-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}

.scoreboard-mp-sub {
  font-size: 0.78rem;
  color: #475569;
}

.scoreboard-score-badge {
  text-align: right;
}

.scoreboard-score-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: block;
}
.region-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.region-pill {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-pill:hover {
  background: #ffffff;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.region-pill.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.badge-quiz-btn {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.badge-quiz-btn:hover {
  background: #fde68a;
  transform: scale(1.04);
}

/* MP Honors Badges */
.mp-honors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.honor-tag {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Quiz Modal Styles */
.quiz-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #ffffff;
}

.quiz-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.quiz-result-card {
  padding: 1rem 1.2rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  color: #166534;
}

/* Canada Vector Map Component */
/* Dual Column Layout */
.content-layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

/* MP List Sidebar */
.mp-list-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  height: max-content;
  max-height: calc(100vh - 180px);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.count-pill {
  background: #eef2ff;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.sort-selector-wrap {
  margin-top: 0.35rem;
}

.sort-select {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-primary);
  background: #ffffff;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.mp-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.mp-summary-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-summary-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(2px);
}

.mp-summary-card.active {
  background: var(--bg-card-active);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.mp-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mp-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.mp-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.mp-info .riding-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.party-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

/* Continuously Updated Agent Susan Assessment Box (Canadian Red & White Theme) */
.ai-search-agent-box {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.06);
}

.ai-search-agent-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.ai-agent-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: #dc2626;
  border: 1px solid #b91c1c;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.2);
}

.ai-agent-time {
  font-size: 0.76rem;
  color: #991b1b;
  font-weight: 600;
}

.ai-search-agent-text {
  font-size: 0.95rem;
  color: #7f1d1d;
  line-height: 1.55;
  font-weight: 500;
}

/* MP IN QUESTION Section Card (Canadian Red & White Theme) */
.mp-in-question-card {
  background: #ffffff;
  border: 2px dashed #dc2626;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.07);
}

.mp-in-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #fecaca;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-in-question-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mp-in-question-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inquiry-topic-tag {
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Agent Susan's Ethics & Morals in Question Section Card */
.ethics-card {
  background: #ffffff;
  border: 2px solid #e11d48;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.08);
}

.ethics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #fecdd3;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ethics-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ethics-header h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ethics-status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ethics-status-elevated {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fda4af;
}

.ethics-status-standard {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

.ethics-topic-tag {
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffffff;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.ethics-body {
  font-size: 0.98rem;
  color: #881337;
  line-height: 1.6;
  background: #fff1f2;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid #fecdd3;
  font-weight: 500;
}

.mp-score-badge {
  text-align: right;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
  line-height: 1;
}

.grade-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.25rem;
}

/* MP Detailed Scorecard Panel */
.mp-scorecard-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

/* AI Agent Rationale Box */
.ai-rationale-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .ai-rationale-box {
    flex-direction: column;
  }
  .scorecard-header {
    flex-direction: column;
  }
}

.mp-profile-main {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.mp-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.mp-profile-details h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.mp-riding-title {
  color: var(--text-secondary);
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.scorecard-gauge-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.6rem;
  text-align: center;
  min-width: 190px;
}

.gauge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gauge-score-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.gauge-big-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.gauge-max {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tabs */
.tab-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -2px;
}

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

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background: #f8fafc;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* Multi-Chart Layout Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.chart-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.chart-card .chart-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Tables & Lists */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th, .data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.data-table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.vote-match-yay { color: var(--accent-success); font-weight: 700; }
.vote-match-nay { color: var(--accent-danger); font-weight: 700; }
.vote-match-abstain { color: var(--accent-gold); font-weight: 700; }

/* Promises Grid */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.promise-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.promise-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.status-KEPT { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-IN_PROGRESS { background: #eef2ff; color: var(--accent-primary); border: 1px solid #c7d2fe; }
.status-BROKEN { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.promise-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.promise-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-card.modal-large {
  max-width: 800px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.schedule-info-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.info-row:last-child { margin-bottom: 0; }
.info-label { color: var(--text-secondary); }
.info-value { font-weight: 600; color: var(--text-primary); }

.status-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}
.status-active { background: #ecfdf5; color: #047857; }
.status-inactive { background: #fef2f2; color: #b91c1c; }

.form-group {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.25rem 0;
}

.feedback-msg {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: none;
}
.feedback-success { background: #ecfdf5; color: #047857; display: block; }
.feedback-error { background: #fef2f2; color: #b91c1c; display: block; }

/* Audit Code Box */
.audit-code-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  word-break: break-all;
  max-height: 340px;
  overflow-y: auto;
}

/* Footer */
.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.35rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-container {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   AGENT SUSAN BODYGUARD DEFENSE SYSTEM STYLES
   ========================================================================== */

.bodyguards-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1px solid #312e81;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin-bottom: 2rem;
  color: #f8fafc;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.5);
  position: relative;
  overflow: hidden;
}

.bodyguards-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bodyguards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.bodyguards-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.shield-main-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.bodyguards-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0;
}

.bodyguards-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

.bodyguard-status-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.04em;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Bodyguard Stats Grid */
.bodyguard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bg-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.bg-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
}

.bg-stat-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.2rem 0;
  line-height: 1.1;
}

.bg-stat-val.text-danger { color: #f87171; }
.bg-stat-val.text-success { color: #4ade80; }
.bg-stat-val.text-accent { color: #38bdf8; }
.bg-stat-val.text-gold { color: #facc15; }

.bg-stat-sub {
  font-size: 0.72rem;
  color: #64748b;
}

/* Sentinels Roster Grid */
.sentinels-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.sentinel-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: all 0.25s ease;
  position: relative;
}

.sentinel-card:hover {
  border-color: rgba(129, 140, 248, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.sentinel-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.sentinel-icon {
  font-size: 1.5rem;
}

.sentinel-title-wrap {
  flex: 1;
}

.sentinel-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sentinel-code {
  font-size: 0.68rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.sentinel-title {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.sentinel-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.sentinel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sentinel-threat-count {
  color: #f87171;
  font-weight: 700;
}

.sentinel-status-pill {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}

/* Threat Simulator & Feed Row */
.simulator-and-feed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .simulator-and-feed-row {
    grid-template-columns: 1fr;
  }
}

.threat-simulator-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sim-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fca5a5;
  margin: 0;
  letter-spacing: 0.03em;
}

.sim-pill {
  font-size: 0.68rem;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}

.sim-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}

.sim-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.btn-preset-test {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preset-test:hover, .btn-preset-test.active {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.sim-input-wrap {
  margin-bottom: 0.85rem;
}

.sim-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.sim-textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f8fafc;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 0.6rem;
  resize: vertical;
  outline: none;
}

.sim-textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.sim-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

.sim-result-box {
  background: #020617;
  border: 1px solid #22c55e;
  border-radius: 6px;
  padding: 0.85rem;
  font-size: 0.78rem;
  animation: fadeIn 0.3s ease-in-out;
}

.sim-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.sim-result-verdict {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

.sim-result-body {
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  word-break: break-all;
}

/* Threat Log Feed */
.threat-feed-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.feed-card-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #a5b4fc;
  margin: 0;
  letter-spacing: 0.03em;
}

.threat-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.threat-log-item {
  background: rgba(30, 41, 59, 0.7);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  font-size: 0.75rem;
}

.threat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.threat-item-sentinel {
  font-weight: 800;
  color: #ffffff;
}

.threat-severity-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.severity-critical { background: #991b1b; color: #fef2f2; }
.severity-high { background: #b91c1c; color: #fef2f2; }
.severity-medium { background: #c2410c; color: #fff7ed; }
.severity-low { background: #0369a1; color: #f0f9ff; }

.threat-item-details {
  color: #cbd5e1;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.threat-item-action {
  font-size: 0.68rem;
  color: #4ade80;
  font-family: monospace;
  font-weight: 700;
}

/* Public Treasury Expense Audit & Flagged MP Tracker */
.expense-tracker-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.expense-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.expense-tracker-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.expense-tracker-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.expense-tracker-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.expense-tracker-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.expense-stats-bar {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 800;
}

.expense-filter-tabs {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-md);
}

.expense-tab {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expense-tab.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.expense-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.expense-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  transition: all 0.2s ease;
}

.expense-card.flagged {
  border-left: 5px solid #dc2626;
  background: #fff5f5;
}

.expense-card.frugal {
  border-left: 5px solid #16a34a;
}

.expense-card-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.expense-mp-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-main);
}

.expense-mp-riding {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.expense-card-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.expense-amount-wrap {
  text-align: right;
}

.expense-total {
  font-size: 1.15rem;
  font-weight: 900;
}

.expense-diff-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.15rem;
}

.expense-diff-flagged {
  background: #fee2e2;
  color: #991b1b;
}

.expense-diff-frugal {
  background: #dcfce7;
  color: #166534;
}

/* ==========================================================================
   Watchdog 1.0 Mobile Responsiveness & Touch Target Optimization
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
  }

  .navbar-actions {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .hero-section {
    padding: 1.25rem 0.85rem 1rem !important;
  }

  .hero-text-side h2 {
    font-size: 1.5rem !important;
  }

  .main-container {
    padding: 0.75rem 0.5rem 2rem !important;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .top3-inquiry-grid {
    grid-template-columns: 1fr !important;
  }

  .scoreboard-columns-grid {
    grid-template-columns: 1fr !important;
  }

  .expense-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .expense-card-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .search-bar-wrapper input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 0.85rem 0.85rem 0.85rem 2.8rem !important;
  }

  .region-filter-bar {
    overflow-x: auto !important;
    white-space: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .kpi-value {
    font-size: 1.5rem !important;
  }
}


