/* ==========================================================================
   Granted.Ai — Design System & Stylesheet
   Modern Tech & AI Light Theme (Deep Cobalt Blue, Slate & Clean Accents)
   Designed for high credibility, clarity, and authoritative enterprise UX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Institutional Executive Palette — Highly comfortable, formal, and eye-restful */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcfe;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
  
  /* Dignified Precision Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #1e40af;
  --border-glow: rgba(30, 64, 175, 0.12);
  
  /* Primary Authority Accent: Deep Sovereign Navy / Oxford Blue */
  --primary-accent: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-active: #172554;
  --primary-dim: #f0f4ff;
  --primary-border: #c7d7fe;
  
  /* Secondary Accent: Deep Institutional Slate & Petroleum */
  --secondary-accent: #0f766e;
  --secondary-hover: #115e59;
  --secondary-dim: #f0fdfa;
  --secondary-border: #99f6e4;
  
  /* Sovereign Capital / Verified Grant Green (Classic British / Reserve Bank Emerald) */
  --accent-emerald: #047857;
  --accent-emerald-dim: #f0fdf4;
  --accent-emerald-border: #bbf7d0;
  
  /* Formal Grant Allocation Bronze Amber */
  --accent-amber: #b45309;
  --accent-amber-dim: #fffbeb;
  --accent-amber-border: #fde68a;
  
  /* Deep Academic / Institutional Indigo */
  --accent-purple: #4338ca;
  --accent-purple-dim: #eef2ff;
  --accent-purple-border: #c7d2fe;
  
  /* High-Legibility, Eye-Restful Typography (Zero Eye Strain) */
  --text-main: #0f172a;       /* Slate 900 (Authoritative Charcoal) */
  --text-body: #334155;       /* Slate 700 (Smooth, comfortable reading contrast) */
  --text-muted: #475569;      /* Slate 600 (Balanced secondary text) */
  --text-dim: #64748b;        /* Slate 500 */
  --text-white: #ffffff;
  --text-dark: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Soft, Layered Multi-Diffuse Shadows (Enterprise SaaS / Tailwind style) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.11), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 68px;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.04), transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.03), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.03), transparent 50%);
  background-attachment: fixed;
}

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

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Navbar & Top Fading Color Palette (Fixed, Pinned, Always Visible Logo)
   ========================================================================== */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #1e40af, #38bdf8, #6366f1, #1e40af);
  background-size: 200% 100%;
  animation: gradientFlow 6s linear infinite;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  z-index: 1002;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.9rem 3.5rem !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.95) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(30, 64, 175, 0.04) !important;
  padding: 0.72rem 3.5rem !important;
}

.nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  cursor: pointer !important;
  user-select: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-shrink: 0 !important;
  z-index: 1001 !important;
  text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #090d16 0%, #1e40af 55%, #0284c7 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  transition: all 0.25s ease;
}

.nav-brand:hover .brand-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.55) !important;
}

.brand-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.brand-wordmark {
  font-family: 'Plus Jakarta Sans', var(--font-sans) !important;
  font-size: 1.44rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.038em !important;
  color: #090d16 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nav-brand:hover .brand-wordmark {
  color: #0f172a !important;
}

.brand-dot {
  color: #2563eb !important;
  font-weight: 800 !important;
  margin: 0 0.5px !important;
  display: inline-block !important;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.45));
}

.brand-ai {
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-accent);
  background: var(--primary-dim);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.68rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #94a3b8;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
}

/* Page Containers */
.view-container {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-container.active {
  display: block;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.9rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.hero-title .highlight {
  font-style: italic;
  font-weight: 400;
  color: var(--primary-accent);
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  opacity: 0.7;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.stat-num span {
  color: var(--primary-accent);
}

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

/* Highlight Schemes Grid */
.home-section {
  max-width: 1140px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

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

.section-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.scheme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.scheme-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.scheme-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scheme-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1rem;
}

.badge-nidhi {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-central {
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-state {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-incubator {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.scheme-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.scheme-card-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 0.8rem;
}

.scheme-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scheme-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Questionnaire Form Section
   ========================================================================== */
.form-view-wrapper {
  max-width: 820px;
  margin: 3.5rem auto 6rem;
  padding: 0 1.5rem;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.form-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sample Startup Presets */
.preset-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

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

.preset-chip {
  padding: 0.35rem 0.8rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip:hover {
  color: var(--primary-accent);
  border-color: var(--primary-border);
  background: var(--primary-dim);
}

/* Form Groups */
.grant-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.form-label .req {
  color: var(--primary-accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-xs);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: var(--text-dim);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
  padding-right: 2.8rem;
}

select.form-control option {
  background: #ffffff;
  color: var(--text-main);
  padding: 0.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

/* Quick Context Tags */
.quick-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tag-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px dashed var(--border-medium);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tag-btn:hover, .tag-btn.active {
  color: var(--primary-accent);
  background: var(--primary-dim);
  border-style: solid;
  border-color: var(--primary-border);
}

.form-submit-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Results Dashboard & Matched Cards
   ========================================================================== */
.results-wrapper {
  max-width: 1140px;
  margin: 2.5rem auto 6rem;
  padding: 0 1.5rem;
}

.results-header {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.results-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.results-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.results-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.company-summary-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.summary-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-pill strong {
  color: var(--text-main);
}

/* Filter Toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

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

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-dim);
  border-color: var(--primary-border);
  color: var(--primary-accent);
  font-weight: 600;
}

/* Result Cards */
.matched-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.match-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.match-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.match-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.match-card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  flex: 1;
  min-width: 0;
}

.match-card-name-group {
  flex: 1;
  min-width: 0;
}

.match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.score-high {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.score-mid {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.score-moderate {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.match-grant-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.match-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 1.1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.meta-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.meta-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.meta-item-value.highlight-amount {
  color: var(--accent-emerald);
  font-size: 1.05rem;
  font-weight: 700;
}

/* AI Rationale Box */
.ai-rationale-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--border-subtle);
  border-left-width: 3px;
  border-left-color: var(--primary-accent);
  padding: 1.1rem 1.3rem;
  margin: 1.2rem 0;
}

.ai-rationale-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.ai-rationale-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Criteria checklist */
.criteria-box {
  margin: 1rem 0;
  font-size: 0.88rem;
}

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

.criteria-content {
  color: var(--text-body);
  line-height: 1.55;
  background: var(--bg-subtle);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Card Actions */
.match-card-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Prompt Studio & AI Assistant View
   ========================================================================== */
.studio-wrapper {
  max-width: 1140px;
  margin: 2.5rem auto 6rem;
  padding: 0 1.5rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.studio-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.studio-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.prompt-templates {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.prompt-template-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.prompt-template-card:hover, .prompt-template-card.active {
  background: var(--primary-dim);
  border-color: var(--primary-border);
}

.prompt-template-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.prompt-template-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prompt-output-box {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 380px;
  max-height: 600px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  transition: border-color 0.2s ease;
}

.prompt-output-box:has(#draftEditArea) {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

#draftEditArea {
  width: 100%;
  min-height: 480px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  border: none;
  outline: none;
  resize: vertical;
  padding: 0;
  caret-color: var(--primary-accent);
}

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

.output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   Grants Explorer & Incubator Directory Tables
   ========================================================================== */
.explorer-wrapper {
  max-width: 1200px;
  margin: 2.5rem auto 6rem;
  padding: 0 1.5rem;
}

.search-bar-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input-group {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input-group input {
  padding-left: 2.6rem;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.table-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.grants-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.grants-table th {
  background: var(--bg-subtle);
  padding: 1rem 1.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.grants-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-body);
}

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

.grants-table .grant-title-cell {
  font-weight: 600;
  color: var(--text-main);
  max-width: 280px;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Chat Assistant Widget — Executive Consultant Floating Pill & Panel */
.chat-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 1200;
  height: 48px;
  padding: 0 1.25rem 0 0.85rem;
  border-radius: var(--radius-full);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.32), 0 4px 10px -2px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  font-family: var(--font-sans);
  text-decoration: none;
}

.chat-fab:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.42), 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.chat-fab-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.35);
}

.chat-fab-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.chat-fab-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
  white-space: nowrap;
}

.chat-widget {
  display: none;
  position: fixed;
  bottom: 5.6rem;
  right: 1.8rem;
  width: 400px;
  max-width: calc(100vw - 2.5rem);
  height: 550px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.28), 0 8px 18px -4px rgba(15, 23, 42, 0.12);
  z-index: 1250;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpConsultant 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-widget.active {
  display: flex;
}

.chat-header {
  padding: 1rem 1.25rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.chat-header-status {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #ffffff;
}

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.bot {
  background: var(--bg-subtle);
  color: var(--text-main);
  align-self: flex-start;
  border: 1px solid var(--border-subtle);
}

.chat-msg.user {
  background: var(--primary-accent);
  color: #ffffff;
  font-weight: 500;
  align-self: flex-end;
}

.chat-input-bar {
  padding: 0.8rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.chat-input-bar input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
}

.chat-send-btn {
  background: var(--primary-accent);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: #ffffff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-body);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Deeper Business Profile & Personal Touch Card
   ========================================================================== */
.deeper-details-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.deeper-details-card:hover {
  border-color: var(--primary-border);
}

.deeper-details-header {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  background: var(--bg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.18s ease;
}

.deeper-details-header:hover {
  background: #e2e8f0;
}

.deeper-details-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

/* Studio Deeper Box */
.studio-deeper-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.studio-deeper-header {
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  color: var(--primary-accent);
  font-weight: 600;
}

.studio-deeper-header:hover {
  background: #e2e8f0;
}

.studio-deeper-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Draft Editor Toolbar & Stats
   ========================================================================== */
.draft-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.draft-snippets-bar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
  align-items: center;
}

.snippet-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}

.snippet-btn {
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  color: var(--primary-accent);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.snippet-btn:hover {
  background: var(--primary-accent);
  color: #ffffff;
}

.glow-btn {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.glow-btn:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Send Draft Modal & Delivery Tabs
   ========================================================================== */
.send-modal-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}

.send-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

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

.send-tab-btn.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

.send-tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

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

.send-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-body);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.portal-snippet-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.portal-snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.portal-snippet-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-accent);
}

.portal-snippet-preview {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  line-height: 1.45;
  background: var(--bg-subtle);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Sent Applications Log Cards */
.sent-apps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
}

.sent-app-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.sent-app-card:hover {
  border-color: var(--primary-border);
}

.sent-app-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.sent-app-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   Official Grant Logos & Portal Links
   ========================================================================== */
.grant-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover .grant-logo-badge {
  transform: scale(1.05);
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.grant-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.grant-ministry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-accent);
  background: var(--secondary-dim);
  border: 1px solid var(--secondary-border);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary-accent);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-portal-chip:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-outline-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-portal:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-1px);
}

.modal-grant-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}

.modal-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-portal-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.btn-portal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-accent);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-portal-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  color: #ffffff;
}

.studio-grant-info-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow-xs);
}

.explorer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.explorer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.explorer-logo-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.explorer-scheme-info {
  flex: 1;
  min-width: 0;
}

.explorer-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.explorer-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.explorer-portal-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.portal-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}



/* ==========================================================================
   TRL Stage Label & Interactive Pop-out Information Window
   ========================================================================== */
.trl-form-group {
  position: relative;
}

.trl-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  position: relative;
}

.trl-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  outline: none;
}

.trl-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--primary-accent);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.trl-tooltip-wrapper:hover .trl-info-badge,
.trl-tooltip-wrapper:focus-within .trl-info-badge {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.trl-info-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.15rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: left;
}

.trl-info-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 22px;
  border-width: 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.trl-info-popup::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 21px;
  border-width: 8px;
  border-style: solid;
  border-color: #cbd5e1 transparent transparent transparent;
}

.trl-tooltip-wrapper:hover .trl-info-popup,
.trl-tooltip-wrapper:focus-within .trl-info-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.trl-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-bottom: 0.55rem;
}

.trl-popup-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.trl-popup-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
}

.trl-popup-desc {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

.chat-header .modal-close-btn {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
}
.chat-header .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .chat-fab {
    bottom: 1.2rem;
    right: 1.2rem;
    height: 44px;
    padding: 0 0.95rem 0 0.75rem;
  }
  .chat-fab-label {
    font-size: 0.8rem;
  }
  .chat-widget {
    bottom: 4.8rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 480px;
  }
  .brand-wordmark {
    font-size: 1.25rem !important;
  }
  .brand-icon {
    width: 32px !important;
    height: 32px !important;
  }
}


/* ==========================================================================
   CONSUMER LEAD TRACKER & STAGE DROP-OFF ANALYTICS (Owner Dashboard & UI)
   ========================================================================== */

/* Navbar Tracker & Auth Pills */
.btn-tracker-nav-btn {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.btn-tracker-nav-btn:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

.tracker-badge-pill {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
  line-height: 1.2;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Admin Tracker Container */
.admin-tracker-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 5rem;
}

/* Header Box */
.tracker-header-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tracker-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.6rem;
}

.tracker-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.tracker-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 720px;
  line-height: 1.5;
}

.tracker-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Funnel Pipeline Card */
.tracker-funnel-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.tracker-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tracker-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}

.tracker-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.funnel-live-sync {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
}

.funnel-pipeline-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.funnel-step-item {
  flex: 1;
  min-width: 145px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.funnel-step-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.funnel-step-item.highlight-funnel {
  background: #fffbeb;
  border-color: #fde68a;
}

.funnel-step-item.highlight-high-intent {
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 0 0 1px #f87171;
}

.funnel-step-item.funnel-step-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.funnel-step-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.funnel-step-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
}

.funnel-step-count {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.funnel-step-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.funnel-drop-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.drop-neutral { background: #e2e8f0; color: #475569; }
.drop-amber { background: #fef3c7; color: #b45309; }
.drop-danger { background: #fee2e2; color: #b91c1c; }
.drop-danger-high { background: #dc2626; color: #ffffff; font-weight: 800; }
.drop-success { background: #dcfce7; color: #15803d; }

.funnel-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  user-select: none;
  flex-shrink: 0;
}

.tracker-alert-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #991b1b;
  font-size: 0.86rem;
}

/* KPI Cards Grid */
.tracker-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 1200px) {
  .tracker-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .tracker-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.tracker-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tracker-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Toolbar Card */
.tracker-toolbar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tracker-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  gap: 0.6rem;
  color: var(--text-muted);
}

.tracker-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
}

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

.tracker-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tracker-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.tracker-select {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  min-width: 250px;
}

.tracker-stage-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stage-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-chip:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.stage-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.stage-chip.chip-red.active { background: #dc2626; border-color: #dc2626; color: #fff; }
.stage-chip.chip-yellow.active { background: #d97706; border-color: #d97706; color: #fff; }
.stage-chip.chip-blue.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.stage-chip.chip-green.active { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Leads Table */
.tracker-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tracker-table-header {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.table-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 999px;
}

.tracker-table-responsive {
  overflow-x: auto;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.tracker-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tracker-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-main);
}

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

.lead-name-text {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.lead-contact-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.lead-company-text {
  font-weight: 600;
  color: #1e40af;
}

.lead-sector-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.lead-funding-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

/* Prominent Where-User-Last-Left Badges */
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.stage-badge-draft-window {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.06);
}

.stage-badge-grant-id {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.stage-badge-form {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.stage-badge-studio {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.stage-badge-dispatched {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.stage-badge-landing {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.status-dot-cell {
  text-align: center;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-indicator-dot.offline {
  background: #cbd5e1;
}

/* Dossier Modal Styling */
.dossier-modal-window {
  width: 920px;
  max-width: calc(100vw - 2.5rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.dossier-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dossier-pill-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.dossier-meta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dossier-tabs-nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: #fafafa;
}

.dossier-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.dossier-tab-btn.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

.dossier-modal-body {
  padding: 1.5rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

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

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

.dossier-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

@media (max-width: 768px) {
  .dossier-grid-2 { grid-template-columns: 1fr; }
}

.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.dossier-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dossier-field {
  display: flex;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.dossier-field-label {
  width: 140px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.dossier-field-val {
  color: var(--text-main);
  font-weight: 600;
  flex: 1;
}

.dossier-field-val.highlight-val {
  color: #1e40af;
}

.dossier-text-block {
  margin-bottom: 0.9rem;
}

.dossier-text-block .dossier-field-label {
  display: block;
  width: 100%;
  margin-bottom: 0.25rem;
}

.dossier-long-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.5;
  background: var(--bg-subtle);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin: 0;
}

/* Timeline */
.journey-timeline {
  position: relative;
  padding-left: 2rem;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary-accent);
}

.timeline-item.last-left .timeline-node {
  border-color: #dc2626;
  background: #dc2626;
}

.timeline-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.timeline-stage-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-item.last-left .timeline-stage-title {
  color: #dc2626;
}

.timeline-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dossier-draft-box {
  background: #0f172a;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  max-height: 360px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Auth Modal */
.auth-modal-window {
  width: 440px;
  max-width: calc(100vw - 2.5rem);
}

.auth-optional-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 1.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #1e40af;
  line-height: 1.45;
}

.auth-tabs-row {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin: 1rem 1.6rem 0;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.auth-modal-body {
  padding: 1.2rem 1.6rem 1.6rem;
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: block;
}


/* ==========================================================================
   ENHANCED EXECUTIVE TOP NAVBAR & SIMPLIFIED BLENDED DPR PLAN (₹2,000)
   ========================================================================== */

/* Enhanced Executive Navbar */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 2.5rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 0.65rem 2.5rem !important;
}

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

.brand-meta-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.03em !important;
}

.brand-dot {
  color: #2563eb !important;
}

.brand-ai {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

.brand-badge-gov {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 2px;
}

/* Center Links */
.nav-links-wrapper {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link {
  color: #475569 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  text-decoration: none !important;
}

.nav-link:hover {
  color: #1e40af !important;
  background: #f1f5f9 !important;
}

.nav-tracker-link {
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.nav-tracker-link:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.tracker-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.tracker-badge-pill {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  line-height: 1.2 !important;
}

/* Right Nav Actions */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

.nav-action-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.nav-action-pill:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.nav-icon-only {
  padding: 0.45rem 0.55rem !important;
  color: #64748b !important;
}

.nav-icon-only:hover {
  color: #2563eb !important;
}

.nav-auth-pill {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  display: inline-block;
}

.nav-primary-cta {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22) !important;
  transition: all 0.18s ease !important;
}

.nav-primary-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
}

/* ==========================================================================
   SIMPLIFIED BLENDED STUDIO PLAN CARD (₹2,000)
   ========================================================================== */

.simplified-studio-plan {
  margin-top: 1.5rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.simplified-studio-plan:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}

.plan-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.plan-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
}

.plan-sub-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.plan-body-content {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.5rem;
  padding: 1.4rem;
  align-items: center;
}

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

.plan-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.plan-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

/* 4-Item Deliverables Grid */
.plan-deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .plan-deliverables-grid {
    grid-template-columns: 1fr;
  }
}

.plan-feat-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feat-cell strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
}

.plan-feat-cell span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}

/* Price & Action Box */
.plan-action-column {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-header-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
}

.price-curr {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.price-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.price-strike {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-left: 0.35rem;
}

.price-tax-text {
  font-size: 0.72rem;
  color: #047857;
  font-weight: 600;
}

.btn-unlock-dpr {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.btn-unlock-dpr:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.plan-upi-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #64748b;
}

.upi-mini-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mini-upi-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
}

.plan-instant-note {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
}

/* Golden Paid Tag in Leads Table */
.lead-paid-golden-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 0.4rem;
}

.stage-badge-premium {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}



/* ==========================================================================
   SLEEK GRANTED.AI PRO ACCESS CARD (AI STUDIO + 15-PAGE DPR)
   ========================================================================== */

.pro-access-card {
  margin-top: 1.5rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.pro-access-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.09) !important;
}

.pro-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.pro-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e40af;
}

.pro-sparkle {
  font-size: 0.9rem;
}

.pro-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.pro-card-content {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.5rem;
  padding: 1.4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .pro-card-content {
    grid-template-columns: 1fr;
  }
}

.pro-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pro-card-subtitle {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.pro-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .pro-perks-grid {
    grid-template-columns: 1fr;
  }
}

.pro-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}

.pro-perk-full {
  grid-column: 1 / -1;
}

.pro-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.pro-perk-item strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
}

.pro-perk-item span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}

/* Price & Action Column */
.pro-action-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pro-price-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.pro-price-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
}

.pro-curr {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pro-val {
  font-size: 2.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.pro-strike {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-left: 0.35rem;
}

.pro-tax-inclusive {
  font-size: 0.72rem;
  color: #047857;
  font-weight: 600;
}

.btn-pro-unlock-cta {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0.8rem 1rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

.btn-pro-unlock-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.pro-upi-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #64748b;
}

.mini-app-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
}

.pro-trust-caption {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
}


/* ==========================================================================
   Navbar Scroll Fade & Hover Peek System
   ========================================================================== */
.navbar-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 1005;
  pointer-events: auto;
}

.navbar {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, background 0.3s ease !important;
}

.navbar.navbar-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.navbar.navbar-hidden.navbar-peek,
.navbar.navbar-hidden:hover,
.navbar-hover-zone:hover ~ .navbar.navbar-hidden {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: 0 10px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(30, 64, 175, 0.08) !important;
}

/* Institutional Status Indicators replacing emojis */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }
.dot-blue { background-color: #3b82f6; }
.dot-purple { background-color: #8b5cf6; }
.dot-gray { background-color: #94a3b8; }
.dot-gold { background-color: #d97706; }


/* ==========================================================================
   Golden Star & Premium Indicator Styles on Opening Page
   ========================================================================== */
.pro-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  padding: 1.5px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
  transition: all 0.2s ease;
}

.nav-link:hover .pro-star-badge {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.25);
  border-color: #f59e0b;
}

.pro-star-icon {
  width: 10px;
  height: 10px;
  fill: #f59e0b;
  stroke: #b45309;
  stroke-width: 1.5;
}

.hero-premium-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin: 0.85rem auto 0 auto;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.1);
}

.hero-premium-pill:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.18);
}

.hero-premium-pill .pill-arrow {
  font-weight: 700;
  transition: transform 0.2s ease;
}

.hero-premium-pill:hover .pill-arrow {
  transform: translateX(3px);
}

/* Studio Locked Card */
.studio-locked-card {
  padding: 2.4rem 1.8rem;
  text-align: center;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.locked-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.locked-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.4rem auto;
  line-height: 1.6;
}

.locked-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  max-width: 560px;
  margin: 0 auto 1.6rem auto;
  text-align: left;
}

@media (max-width: 600px) {
  .locked-features-list {
    grid-template-columns: 1fr;
  }
}

.locked-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 500;
}

.check-dot {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  flex-shrink: 0;
}

.locked-guarantee {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.85rem;
  font-weight: 500;
}



/* ==========================================================================
   Noticeably Darker, Executive Ultra-Premium AI Prompt Studio Theme
   ========================================================================== */
#studioView {
  background: radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.16) 0%, transparent 42%),
              radial-gradient(circle at 18% 86%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
              linear-gradient(180deg, #090e1a 0%, #0d1527 45%, #070b14 100%) !important;
  color: #f8fafc !important;
  min-height: calc(100vh - 70px) !important;
  padding-top: 1.5rem !important;
  padding-bottom: 5rem !important;
  position: relative !important;
}

#studioView .studio-wrapper {
  max-width: 1180px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
}

#studioView .section-title {
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#studioView .section-desc {
  color: #94a3b8 !important;
  font-size: 0.94rem;
  line-height: 1.55;
}

#studioView .studio-pro-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

#studioView .studio-pro-status-badge.unlocked {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

#studioView .studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  #studioView .studio-grid {
    grid-template-columns: 1fr;
  }
}

#studioView .studio-panel {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(51, 65, 85, 0.75) !important;
  border-radius: 16px !important;
  padding: 1.85rem !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  color: #f8fafc !important;
}

#studioView .studio-panel-title {
  color: #f8fafc !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

#studioView .form-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
}

#studioView .form-label .req {
  color: #f43f5e !important;
}

#studioView .form-control {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.88rem !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#studioView .form-control:focus {
  background: #0f172a !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
  outline: none !important;
  color: #ffffff !important;
}

#studioView select.form-control option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

#studioView .form-control::placeholder {
  color: #64748b !important;
}

#studioView .studio-grant-info-badge {
  background: rgba(30, 58, 138, 0.28) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #93c5fd !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 1rem !important;
}

#studioView .studio-grant-info-badge strong {
  color: #ffffff !important;
}

#studioView .grant-ministry-tag {
  background: rgba(59, 130, 246, 0.22) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #bfdbfe !important;
}

#studioView .studio-deeper-box {
  background: rgba(30, 41, 59, 0.45) !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  margin-bottom: 1.25rem !important;
  overflow: hidden !important;
}

#studioView .studio-deeper-header {
  background: rgba(15, 23, 42, 0.7) !important;
  color: #e2e8f0 !important;
  padding: 0.75rem 1rem !important;
  cursor: pointer !important;
  user-select: none !important;
}

#studioView .studio-deeper-header:hover {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #ffffff !important;
}

#studioView .studio-deeper-body {
  padding: 1rem !important;
  border-top: 1px solid #334155 !important;
}

#studioView .prompt-templates {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  margin: 1.2rem 0 !important;
}

#studioView .prompt-template-card {
  background: rgba(30, 41, 59, 0.65) !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
  border-radius: 10px !important;
  padding: 0.95rem 1.1rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#studioView .prompt-template-card:hover {
  background: rgba(30, 58, 138, 0.35) !important;
  border-color: #3b82f6 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

#studioView .prompt-template-card.active {
  background: rgba(30, 58, 138, 0.6) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35), inset 0 0 0 1px rgba(96, 165, 250, 0.5) !important;
}

#studioView .prompt-template-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

#studioView .prompt-template-desc {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  margin-top: 0.25rem !important;
}

#studioView .output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#studioView .draft-stats-pill {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
  font-size: 0.74rem !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
}

#studioView .draft-snippets-bar {
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.85rem !important;
  margin-bottom: 0.85rem !important;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

#studioView .snippet-label {
  color: #94a3b8 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
}

#studioView .snippet-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  transition: all 0.18s ease !important;
  cursor: pointer;
}

#studioView .snippet-btn:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}

#studioView .prompt-output-box {
  background: #060911 !important;
  border: 1px solid #1e293b !important;
  border-radius: 12px !important;
  padding: 1.4rem !important;
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: 0.88rem !important;
  color: #e2e8f0 !important;
  line-height: 1.7 !important;
  min-height: 420px !important;
  max-height: 640px !important;
  overflow-y: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.7) !important;
}

#studioView #draftEditArea {
  width: 100% !important;
  min-height: 480px !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-family: 'Fira Code', 'JetBrains Mono', monospace !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  border: none !important;
  outline: none !important;
  resize: vertical !important;
  caret-color: #38bdf8 !important;
}

/* Dark Mode Studio Locked Card */
#studioView .studio-locked-card {
  padding: 2.5rem 2rem !important;
  text-align: center !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(245, 158, 11, 0.12) !important;
}

#studioView .locked-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  padding: 0.3rem 0.85rem !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 0.85rem !important;
}

#studioView .locked-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.6rem !important;
  letter-spacing: -0.02em !important;
}

#studioView .locked-desc {
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
  max-width: 580px !important;
  margin: 0 auto 1.5rem auto !important;
  line-height: 1.55 !important;
}

#studioView .locked-features-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  max-width: 640px !important;
  margin: 0 auto 1.75rem auto !important;
  text-align: left !important;
}

@media (max-width: 640px) {
  #studioView .locked-features-list {
    grid-template-columns: 1fr !important;
  }
}

#studioView .locked-feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  font-size: 0.8rem !important;
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.85rem !important;
}

#studioView .check-dot {
  width: 8px !important;
  height: 8px !important;
  background: #fbbf24 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6) !important;
  flex-shrink: 0 !important;
}

/* Dark Mode Pro Access Card */
#studioView .pro-access-card {
  margin-top: 1.5rem !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12) !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

#studioView .pro-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 1.4rem !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border-bottom: 1px solid #334155 !important;
}

#studioView .pro-tier-pill {
  color: #fbbf24 !important;
  font-weight: 800 !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.06em !important;
}

#studioView .pro-tag-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

#studioView .pro-card-title {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.35rem 0 !important;
}

#studioView .pro-card-subtitle {
  color: #94a3b8 !important;
  font-size: 0.84rem !important;
  margin: 0 0 1rem 0 !important;
}

#studioView .pro-perk-item {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.8rem !important;
}

#studioView .pro-perk-item strong {
  color: #f8fafc !important;
  font-size: 0.82rem !important;
}

#studioView .pro-perk-item span {
  color: #94a3b8 !important;
  font-size: 0.72rem !important;
}

#studioView .pro-check-icon {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

#studioView .pro-action-col {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  text-align: center !important;
}

#studioView .pro-price-label {
  color: #94a3b8 !important;
}

#studioView .pro-price-figure .pro-curr,
#studioView .pro-price-figure .pro-val {
  color: #ffffff !important;
}

#studioView .pro-strike {
  color: #64748b !important;
}

#studioView .pro-tax-inclusive {
  color: #34d399 !important;
}

#studioView .mini-app-pill {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #e2e8f0 !important;
}

#studioView .pro-trust-caption {
  color: #94a3b8 !important;
}

/* Dark Mode Unlocked Submission Kit Box */
#studioView .premium-unlocked-card {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.15) !important;
  padding: 1.5rem !important;
  margin-top: 1.5rem !important;
}

#studioView .unlocked-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  border-bottom: 1px solid #334155 !important;
  padding-bottom: 1rem !important;
}

#studioView .unlocked-header-badge {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

#studioView .unlocked-header h3 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
}

#studioView #unlockedReceiptMeta {
  color: #34d399 !important;
  font-size: 0.78rem !important;
}

#studioView .unlocked-tabs-nav {
  display: flex !important;
  gap: 0.5rem !important;
  border-bottom: 1px solid #334155 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 1rem !important;
  overflow-x: auto !important;
}

#studioView .unlocked-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.6rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

#studioView .unlocked-tab-btn:hover {
  color: #f8fafc !important;
}

#studioView .unlocked-tab-btn.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
  font-weight: 700 !important;
}

#studioView .unlocked-tab-content {
  display: none;
}

#studioView .unlocked-tab-content.active {
  display: block;
}

#studioView .unlocked-dpr-text {
  background: #060911 !important;
  border: 1px solid #1e293b !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
  color: #f1f5f9 !important;
  font-family: 'Fira Code', 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  line-height: 1.65 !important;
  white-space: pre-wrap !important;
  max-height: 550px !important;
  overflow-y: auto !important;
}
