/* =============================================
   TenderFlow Pro — Design System 4.0 (Elite)
   Modern Light Theme | High-Trust Royal Blue 
   Premium Analyst-Grade UX
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties (Sovereign Glassmorphic Dark System) ---- */
:root {
  --bg-primary: #080c14; /* Deep outer-space background */
  --bg-secondary: #0f172a; /* Dark blue-gray card fill */
  --bg-canvas: #06090f;
  --bg-card: rgba(15, 23, 42, 0.65); /* Glass card fill */
  --bg-card-hover: rgba(30, 41, 59, 0.45);
  --bg-glass: rgba(15, 23, 42, 0.7);
  --bg-glass-hover: rgba(30, 41, 59, 0.85);

  --text-primary: #f8fafc; /* Clear Slate 50 */
  --text-secondary: #cbd5e1; /* Slate 300 */
  --text-muted: #64748b; /* Slate 500 */
  --text-accent: #38bdf8; /* Cyber sky-blue */ 

  --accent-blue: #3b82f6; /* Modern Blue */
  --accent-blue-hover: #60a5fa;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  
  --accent-gold: #fbbf24; /* Amber Gold */
  --accent-gold-hover: #f59e0b;
  --accent-gold-glow: rgba(251, 191, 36, 0.12);
  
  --accent-green: #10b981; /* Emerald */
  --accent-green-glow: rgba(16, 185, 129, 0.15);
  
  --accent-red: #ef4444; /* Rose Red */
  --accent-red-glow: rgba(239, 68, 68, 0.15);

  --border-color: rgba(255, 255, 255, 0.08); /* Sophisticated subtle white-glow border */
  --border-accent: rgba(56, 189, 248, 0.35); /* Cyber sky-blue accent border */
  --border-gold: rgba(251, 191, 36, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 38px -12px rgba(0, 0, 0, 0.6);
  --shadow-elite: 0 0 40px rgba(56, 189, 248, 0.12); /* Radial outer blue glow */

  --radius-sm: 10px;
  --radius-md: 16px; /* Smooth curves */
  --radius-lg: 24px; /* Smoother curves */
  --radius-xl: 36px; /* Ultrawide curves for hero layouts */

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-top: 100px; /* Space for fixed navbar */
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--text-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-blue-hover); text-shadow: 0 0 10px rgba(96, 165, 250, 0.3); }

img { max-width: 100%; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.85rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--text-accent) 0%, #60a5fa 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text; /* Compatibility fix */
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Layout & Containers ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-sm { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---- Modern Elite Cards ---- */
.card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-elite);
  transform: translateY(-4px);
}

.card-static {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card-static h1, .card-static h2, .card-static h3, .card-static h4, .card-static h5, .card-static h6 {
  color: var(--text-primary);
}
.card .text-secondary, .card-static .text-secondary {
  color: var(--text-secondary) !important;
}
.card .text-muted, .card-static .text-muted {
  color: var(--text-muted) !important;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
}

.navbar-brand { 
  display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; color: var(--text-primary); text-decoration: none; 
}
.logo-container { 
  height: 44px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 5px; display: flex; align-items: center; 
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: hidden;
}
.logo-container img { height: 100%; width: auto; object-fit: contain; transform: scale(1.35); }

/* ---- Footer Logo Override ---- */
.footer-logo-container { 
  width: 44px; height: 44px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); border: 1px solid var(--border-color); 
  display: flex !important; align-items: center; justify-content: center; overflow: hidden; padding: 4px;
}
.footer-logo-container img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Elite App Layout ---- */
.app-container { display: flex; min-height: 100vh; background: var(--bg-primary); }
.app-sidebar { 
  width: 280px; background: var(--bg-canvas); border-right: 1px solid var(--border-color); 
  position: sticky; top: 0; height: 100vh; padding: 40px 24px; display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.app-main { flex: 1; padding: 40px; }

.side-nav { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.side-nav-item { 
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; 
  border-radius: var(--radius-md); text-decoration: none; color: var(--text-secondary); 
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.side-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-accent); }
.side-nav-item.active { background: var(--accent-blue-glow); color: var(--text-accent); border-left: 3px solid var(--accent-blue); }
.side-nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 24px; margin-bottom: 8px; font-weight: 800; }

.pro-tag {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-hover));
  color: #fff;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.navbar-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-links a { color: var(--text-secondary); font-size: 1rem; font-weight: 600; }
.navbar-links a:hover { color: var(--text-accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(59, 130, 246, 0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { border-color: var(--accent-blue); background: rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-sm { padding: 12px 20px; font-size: 0.9rem; }
.btn-lg { padding: 20px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---- Forms ---- */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 16px 20px; background: rgba(15, 23, 42, 0.5); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 1.05rem; transition: var(--transition); outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--text-accent); box-shadow: 0 0 0 4px var(--accent-blue-glow); }

/* ---- Upload Zone ---- */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.3);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.upload-zone:hover { border-color: var(--text-accent); background: rgba(59, 130, 246, 0.03); border-style: solid; }
.upload-zone .icon { font-size: 5rem; margin-bottom: 24px; opacity: 0.8; }
.upload-zone .label { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.upload-zone .hint { color: var(--text-muted); font-size: 1rem; }

/* ---- Elite Stats & Badges ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.stat-card .stat-value { font-size: 2.5rem; font-weight: 900; color: var(--text-accent); line-height: 1; margin-bottom: 8px; }
.stat-card .stat-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.badge-gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.25); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--text-accent); border: 1px solid rgba(59, 130, 246, 0.25); }

/* ---- Analyst workspace / Report ---- */
.premium-layout { background: #ffffff; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-elite); overflow: hidden; }
.premium-layout .header-strip { height: 8px; background: linear-gradient(90deg, var(--accent-blue), #60a5fa, var(--accent-green)); }

.report-section { padding: 40px; border-bottom: 1px solid var(--bg-secondary); }
.section-title { 
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase; 
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 24px; 
  padding-bottom: 8px; border-bottom: 1px solid var(--border-color);
}

.field-item { margin-bottom: 24px; }
.field-item label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.field-item .val { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.field-item .conf { display: inline-block; font-size: 0.65rem; padding: 3px 8px; border-radius: 8px; background: var(--bg-secondary); margin-left: 8px; color: var(--accent-blue); font-weight: 800; }

.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; width: 100%; }
.checklist-item { 
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; 
  background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-color);
  transition: var(--transition); font-size: 0.9rem; font-weight: 600;
}
.checklist-item.detected { 
  background: var(--accent-green-glow); border-color: rgba(5, 150, 105, 0.2); 
  color: var(--text-primary); 
}
.checklist-item.detected .dot { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.checklist-item.pending { opacity: 0.7; }
.checklist-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); opacity: 0.3; }

.alert-item {
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px; border: 1px solid transparent;
}
.alert-red-item {
  background: var(--accent-red-glow); border-color: rgba(220, 38, 38, 0.1); color: #991b1b;
}
.badge-dim { background: var(--bg-canvas); color: var(--text-muted); border: 1px solid var(--border-color); }

/* ---- Responsive & Utility ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  h1 { font-size: 2.75rem; } h2 { font-size: 2rem; }
  .navbar-inner { height: 72px; }
  
  .mobile-menu-btn { display: block; }
  
  .navbar-links { 
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  .navbar-links.active { display: flex !important; }
  
  .desktop-only { display: none !important; }
  .hero-premium { padding: 120px 0 80px; }
  .stats-grid { grid-template-columns: 1fr; }
  .report-section { padding: 32px 20px; }

  /* App Layout Mobile */
  .app-container { flex-direction: column; }
  .app-sidebar { 
    width: 100%; height: auto; position: static; padding: 20px; 
    border-right: none; border-bottom: 1px solid var(--border-color);
    gap: 20px;
  }
  .app-sidebar .navbar-brand { display: none !important; } /* Hide redundant brand */
  .app-main { padding: 24px 16px; }
  
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px; gap: 8px; }
  .side-nav-item { white-space: nowrap; padding: 10px 16px; font-size: 0.85rem; }
  .side-nav-label { display: none; }
  
  #sidebar-promo { margin-top: 10px; }
  
  /* App Layout Mobile Overrides */
  .dossier-grid { grid-template-columns: 1fr !important; }
  .dossier-panel { padding: 16px; }
  .dossier-data-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dossier-data-value { text-align: left; max-width: 100%; }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ---- Footer Elite ---- */
.footer { border-top: 1px solid var(--border-color); padding: 100px 0 50px; background: var(--bg-canvas); color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; text-align: left; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 1rem; }
.footer-links h4 { color: var(--text-primary); margin-bottom: 24px; font-size: 1rem; font-weight: 800; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); font-weight: 500; }
.footer-links a:hover { color: var(--text-accent); }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

/* ---- Shimmer ---- */
.skeleton-loader { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- Animations ---- */
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Print ---- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .navbar, .btn, .footer, .no-print { display: none !important; }
  .card, .premium-layout { border: 2px solid #eee !important; box-shadow: none !important; padding: 20px !important; }
}

/* ---- Toasts & Notifications ---- */
.toast-container { position: fixed; top: 100px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-color);
  padding: 16px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-primary);
  font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; min-width: 300px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: var(--transition);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast-success { border-left: 4px solid var(--accent-green); }
.toast-error { border-left: 4px solid var(--accent-red); }
.toast-info { border-left: 4px solid var(--accent-blue); }

/* ---- Loading Overlay ---- */
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(12px); z-index: 10000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.spinner {
  width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.05); border-top-color: var(--text-accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Modals & Overlays (Premium v6.0) ---- */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px); 
  z-index: 9999; 
  display: flex !important; 
  align-items: center; 
  justify-content: center; 
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal {
  background: var(--bg-secondary); 
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); 
  max-width: 600px; 
  width: 100%; 
  max-height: 94vh;
  overflow-y: auto; 
  padding: 48px; 
  position: relative; 
  box-shadow: var(--shadow-elite);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hidden { display: none !important; }
.modal-close { position: absolute; top: 24px; right: 24px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

/* ---- Premium Analysis Progress UI ---- */
.analysis-container {
  text-align: left;
  padding: 10px 0;
}

.analysis-stages {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analysis-stage {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.5;
  transform: translateX(-10px);
}

.analysis-stage.active {
  color: var(--text-primary);
  opacity: 1;
  transform: translateX(0);
}

.analysis-stage.completed {
  color: var(--accent-green);
  opacity: 1;
  transform: translateX(0);
}

.analysis-stage.failed {
  color: #ef4444;
  opacity: 1;
  transform: translateX(0);
}

.stage-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: var(--transition);
}

.active .stage-icon {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-blue);
  animation: hud-pulse 2s infinite;
}

.completed .stage-icon {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: transparent;
  font-size: 0;
}

.completed .stage-icon::after {
  content: "✓";
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
}

.failed .stage-icon {
  background: #ef4444;
  border-color: #ef4444;
  color: transparent;
  font-size: 0;
}

.failed .stage-icon::after {
  content: "✕";
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
}

@keyframes hud-pulse {
  0% { transform: scale(1); box-shadow: 0 0 5px var(--accent-blue); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-blue); }
  100% { transform: scale(1); box-shadow: 0 0 5px var(--accent-blue); }
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
  width: 0%;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px var(--accent-blue);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.trust-message {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  min-height: 1.5em;
  animation: fadeInOut 4s infinite;
}

@keyframes pulse-blue {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; transform: translateY(5px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-gold {
  position: relative;
  overflow: hidden;
}

.shimmer-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 191, 0, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* ---- Sovereign Intelligence Dossier (v8.0 Elite) ---- */
.dossier-report {
  animation: dossierFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.decision-hub {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.decision-hub::before {
  content: '';
  position: absolute;
  top:0; left:0; width:6px; height:100%;
}

.decision-hub.go::before { background: var(--accent-green); }
.decision-hub.caution::before { background: var(--accent-gold); }
.decision-hub.nogo::before { background: var(--accent-red); }

/* Premium Glass & Watermark Utilities */
.glass-premium {
  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.sovereign-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.03);
  pointer-events: none;
  z-index: 0;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.gold-seal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at center, #fbbf24, #d97706);
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  transform: rotate(15deg);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.2);
  z-index: 2;
}

.decision-verdict {
  flex: 1;
}

.verdict-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.go .verdict-tag { background: var(--accent-green-glow); color: var(--accent-green); }
.caution .verdict-tag { background: var(--accent-gold-glow); color: var(--accent-gold); }
.nogo .verdict-tag { background: var(--accent-red-glow); color: var(--accent-red); }

.verdict-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.decision-score {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--bg-canvas);
  position: relative;
}

.score-value {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.strategic-moat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.moat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

.moat-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); box-shadow: var(--shadow-elite); }

.moat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.moat-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-canvas);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.moat-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.moat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moat-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.moat-item::before {
  content: '→';
  color: var(--accent-blue);
  font-weight: 900;
}

/* Enhanced Risk Matrix */
.risk-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.risk-item-elite {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

.risk-item-elite:hover { border-color: var(--border-accent); background: var(--bg-card-hover); box-shadow: var(--shadow-elite); }

.risk-body h5 { margin-bottom: 8px; font-size: 1.1rem; color: var(--text-primary); }
.risk-body p { font-size: 0.9rem; color: var(--text-muted); }

.risk-badge-elite {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.risk-high { background: var(--accent-red-glow); color: var(--accent-red); }
.risk-medium { background: var(--accent-gold-glow); color: var(--accent-gold); }
.risk-low { background: var(--accent-green-glow); color: var(--accent-green); }

/* Premium Shimmer for High Score */
.shimmer-gold {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 119, 6, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

.print-only { display: none; }
@media print { .print-only { display: block !important; } }

/* Live Countdown & Discount Modal */
.timer-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  padding: 6px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* ---- LIVE DEMO ANIMATIONS ---- */
.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  box-shadow: 0 0 15px var(--accent-blue);
  z-index: 10;
  pointer-events: none;
  animation: scan-move 4s linear infinite;
}
@keyframes scan-move {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.demo-tick {
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.demo-tick.active { transform: scale(1); }

.stamp-slam {
  animation: slam 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}
@keyframes slam {
  0% { transform: scale(3) rotate(-15deg); opacity: 0; }
  70% { transform: scale(0.9) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}

/* ---- PREMIUM HERO PDF DOCUMENT VISUAL ---- */
.pdf-document {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 Ratio */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.18), 0 18px 36px -18px rgba(0,0,0,0.22);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.pdf-inner {
  height: 100%;
  border: 1px solid #f1f5f9;
  padding: 16px;
  position: relative;
  background: linear-gradient(to bottom, #fff 0%, #f8fafc 100%);
}

.pdf-gov-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.gov-logo-mini {
  width: 24px;
  height: 24px;
  background: #0f172a;
  border-radius: 4px;
  position: relative;
}
.gov-logo-mini::after {
  content: '✦';
  color: #fff;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; height: 100%;
}

.gov-text-mini {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.2;
}

.pdf-title-box {
  margin-bottom: 24px;
  text-align: center;
}

.pdf-content-grid {
  margin-bottom: 30px;
}

.pdf-row-header {
  font-size: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.pdf-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  padding: 6px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.pdf-row:last-child { border-bottom: none; }
.pdf-row strong { color: var(--accent-blue); }

.pdf-stamp-container {
  position: absolute;
  bottom: 60px;
  right: 20px;
}

.elite-stamp {
  border: 4px double #059669;
  color: #059669;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-15deg);
  background: rgba(5, 150, 105, 0.05);
  border-radius: 4px;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.pdf-label-premium {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 8px;
  text-align: center;
  font-family: monospace;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.shake { animation: shake 0.3s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.radial-progress {
  --pc: 0;
  background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
              conic-gradient(var(--accent-blue) calc(var(--pc) * 1%), var(--bg-canvas) 0);
  width: 140px; height: 140px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: --pc 1s ease-out;
}

@property --pc {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* ---- SOVEREIGN DOSSIER OVERHAUL - MOBILE FIRST ---- */
.dossier-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}

.dossier-header {
  background: var(--bg-canvas);
  color: var(--text-primary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 4px solid var(--accent-gold);
}
@media (min-width: 769px) {
  .dossier-header {
    padding: 24px 32px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.dossier-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
@media (min-width: 769px) {
  .dossier-title { font-size: 1.6rem; }
}

.dossier-meta {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-align: left;
  line-height: 1.5;
}
@media (min-width: 769px) {
  .dossier-meta { font-size: 0.85rem; text-align: right; }
}

.dossier-body {
  padding: 16px;
  background: transparent;
  position: relative;
}
@media (min-width: 769px) {
  .dossier-body { padding: 32px; }
}

.dossier-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.01);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
@media (min-width: 769px) {
  .dossier-watermark { font-size: 8rem; }
}

.dossier-content {
  position: relative;
  z-index: 1;
}

.dossier-verdict-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--accent-blue);
  gap: 20px;
}
@media (min-width: 769px) {
  .dossier-verdict-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    text-align: left;
  }
}

.dossier-verdict-box .inner-flex { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 769px) {
  .dossier-verdict-box .inner-flex { width: auto; flex-direction: row; align-items: center; gap: 24px; }
}

.verdict-text-container { margin-top: 8px; }
@media (min-width: 769px) { .verdict-text-container { margin-top: 0; } }

.verdict-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 800; letter-spacing: 0.1em; margin-bottom: 8px; }
.verdict-desc { font-size: 1.1rem; color: var(--text-primary); font-weight: 700; max-width: 100%; line-height: 1.4; }
@media (min-width: 769px) { .verdict-desc { max-width: 400px; } }

.stamp-container { width: 100%; text-align: center; }
@media (min-width: 769px) { .stamp-container { width: auto; text-align: right; padding-left: 20px; } }

.score-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--border-color);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}
.score-ring .score-num { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 2px;}
.score-ring .score-lbl { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; color: var(--text-muted); }

.score-high { border-color: var(--accent-green); color: var(--accent-green); }
.score-med { border-color: var(--accent-gold); color: var(--accent-gold); }
.score-low { border-color: var(--accent-red); color: var(--accent-red); }

.dossier-stamp {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border: 4px solid;
  border-radius: 8px;
  display: inline-block;
  width: 100%;
}
@media (min-width: 769px) {
  .dossier-stamp {
    font-size: 2.25rem;
    transform: rotate(-3deg);
    width: auto;
  }
}
.stamp-go { color: var(--accent-green); border-color: var(--accent-green); background: rgba(16,185,129,0.05); }
.stamp-cond { color: var(--accent-gold); border-color: var(--accent-gold); background: rgba(251,191,36,0.05); }
.stamp-nogo { color: var(--accent-red); border-color: var(--accent-red); background: rgba(239,68,68,0.05); }

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
@media (min-width: 769px) {
  .dossier-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

.dossier-panel {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}

.dossier-panel-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.dossier-data-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}
@media (min-width: 769px) {
  .dossier-data-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
  }
}

.dossier-data-row:last-child { border-bottom: none; padding-bottom: 0; }
.dossier-data-label { color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px;}

.dossier-data-value { color: var(--text-primary); font-size: 0.95rem; font-weight: 800; text-align: left; word-break: break-word; }
@media (min-width: 769px) {
  .dossier-data-value { text-align: right; max-width: 65%; font-size: 1rem; }
}

.val-highlight { color: var(--accent-green); font-size: 1.1rem; font-weight: 900; }
.val-warning { color: var(--accent-gold); font-weight: 800; }

.dossier-green-zone {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 6px solid #10b981;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.dossier-green-zone h4 { color: var(--accent-green); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 800;}
.dossier-green-zone p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; font-weight: 600; }

.dossier-notepad {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-left: 6px solid #f59e0b;
  padding: 24px;
  border-radius: 8px;
}
.dossier-notepad h4 { color: var(--accent-gold); margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 900; display: flex; align-items: center; gap: 6px;}
.dossier-notepad ul { padding-left: 20px; margin: 0; }
.dossier-notepad li { color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }ht: 1.5; }

@media print {
  .dossier-wrapper { box-shadow: none !important; border: none !important; }
}

/* ---- SCROLL DRIVEN ANIMATION & UI FIXES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.features-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.features-grid .card p {
  flex: 1;
}

/* Ensure stats bar is 4 cols on desktop */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 769px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Floating PDF */
.pdf-document {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  position: relative;
  border: 1px solid #e2e8f0;
  max-width: 320px;
  margin: 0 auto;
  z-index: 2;
}
.float-animation {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-20px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(1deg); }
}
.pdf-header { width: 40%; height: 12px; background: #cbd5e1; margin-bottom: 24px; border-radius: 4px; }
.pdf-body { width: 100%; height: 8px; background: #e2e8f0; margin-bottom: 12px; border-radius: 4px; }
.pdf-body.w-80 { width: 80%; }
.pdf-body.w-60 { width: 60%; }
.pdf-body.w-40 { width: 40%; }
.pdf-seal { width: 60px; height: 60px; border: 4px solid var(--accent-gold); border-radius: 50%; opacity: 0.15; margin-top: 40px; }
.pdf-label {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  background: var(--accent-blue);
  filter: blur(120px);
  opacity: 0.4;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Steps Tracker */
.step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  opacity: 0.2;
  transition: all 0.4s ease;
  transform: translateX(-15px);
}
.step-item.active {
  opacity: 1;
  transform: translateX(0);
}
.step-item.completed {
  opacity: 1;
  transform: translateX(0);
}
.step-indicator {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.step-item.active .step-indicator {
  border-color: var(--accent-blue);
  border-top-color: transparent;
  animation: spinner 1s linear infinite;
  background: transparent;
}
.step-item.active .step-indicator::after {
  content: '';
}
.step-item.completed .step-indicator {
  border-color: var(--accent-green);
  background: var(--accent-green);
  animation: none;
}
.step-item.completed .step-indicator::after {
  content: '✓';
  color: white;
  font-weight: 900;
  font-size: 1rem;
}
.step-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.step-item.completed .step-label {
  color: var(--accent-green);
}
@keyframes spinner { to { transform: rotate(360deg); } }

/* ---- FAQ Accordion ---- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--border-accent);
}
.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent-blue);
  border-radius: 2px;
}
.faq-icon::before {
  width: 100%; height: 2px;
  top: 9px; left: 0;
}
.faq-icon::after {
  height: 100%; width: 2px;
  left: 9px; top: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-canvas);
}
.faq-item.active .faq-answer {
  max-height: 1000px;
}
.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modal system consolidated at the top of the file */
.checklist-preview {
  background: var(--bg-secondary);
  border: 1px dashed var(--accent-blue);
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
}

/* =============================================
   Chatbot Premium Styles
   ============================================= */
#tf-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: inherit;
}

#tf-chatbot-bubble {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#tf-chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

#tf-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-primary);
}

#tf-chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: var(--accent-blue);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.active-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4ade80;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#chatbot-close:hover { opacity: 1; }

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
}

.roi-card.sovereign {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.08);
    position: relative;
    z-index: 1;
}

.roi-card.sovereign::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 20px; height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4af37"><path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"/></svg>') no-repeat;
    opacity: 0.3;
}
.message.system {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.message.user {
    background: var(--accent-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.qa-btn {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: var(--text-accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qa-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.chatbot-input {
    padding: 15px;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

#chatbot-query {
    flex: 1;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
}

#chatbot-send {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
}

.pulse-shadow {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.typing-dots::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Timeline Process Styles 
   -------------------------------------------------- */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-blue);
    transition: height 0.5s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 50%;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    padding-right: 50px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 24px;
    height: 24px;
    background: var(--bg-canvas);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.timeline-dot i {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s 0.3s;
}

.timeline-item.left .timeline-dot {
    right: -12px;
}

.timeline-item.right .timeline-dot {
    left: -12px;
}

.timeline-item.reveal .timeline-dot {
    background: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glow);
}

.timeline-item.reveal .timeline-dot i {
    opacity: 1;
    transform: scale(1);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(16px);
}

.timeline-item.reveal .timeline-content {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-elite);
}

.step-num {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--accent-blue);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        left: 0 !important;
    }
    .timeline-dot {
        left: 13px !important;
    }
    .timeline-item.left .timeline-dot {
        right: auto;
    }
}

/* ROI Comparison Section 
   -------------------------------------------------- */
/* Sovereign v7.5 Command Center */
.battle-plan-timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 10px;
}
.battle-step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}
.battle-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 35px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}
.battle-step:last-child::before { display: none; }
.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.step-text {
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  border: 1px solid var(--border-color);
}

.moat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.moat-icon { font-size: 1.25rem; }
.moat-label { font-weight: 800; color: var(--accent-green); font-size: 0.9rem; }
.moat-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.exemption-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-accent);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--accent-blue-glow);
}

.dossier-caution-panel {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-left: 6px solid #f97316;
  padding: 24px;
  border-radius: 8px;
}

.protest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
/* Sovereign Diagnostic Card */
.diagnostic-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    animation: slideUp 0.4s ease-out;
}
.diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.diagnostic-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}
.diagnostic-status {
    font-size: 0.7rem;
    font-weight: 900;
    color: #ef4444;
    text-transform: uppercase;
}
.diagnostic-msg {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}
.diagnostic-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}
.diagnostic-actions {
    display: flex;
    gap: 10px;
}

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


.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.roi-card {
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.roi-card.legacy {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    opacity: 0.9;
    box-shadow: none;
}

.roi-card.legacy h3, 
.roi-card.legacy .roi-value, 
.roi-card.legacy p {
    color: var(--text-secondary) !important;
}

.roi-card.legacy .roi-label {
    color: var(--text-muted);
}

.roi-card.sovereign {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(37, 99, 235, 0.03));
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
}

.roi-card.sovereign::before {
    content: '100x FASTER';
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.roi-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: block;
}

.legacy .roi-tag { color: #ef4444; }
.sovereign .roi-tag { color: var(--accent-blue); }

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.roi-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.roi-value {
    font-weight: 700;
    font-size: 1rem;
}

.legacy .roi-value { color: #1e293b; }
.sovereign .roi-value { color: var(--accent-blue); }
/* Premium Dashboard Overhaul 
   -------------------------------------------------- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.app-sidebar .side-nav-item {
    color: var(--text-secondary);
}

.app-sidebar .side-nav-item:hover {
    color: var(--accent-blue);
    background: var(--bg-canvas);
}

.app-sidebar .side-nav-label {
    color: var(--text-muted);
}

.app-sidebar .navbar-brand {
    color: var(--text-primary) !important;
}

.app-sidebar .logo-container {
    background: #f1f5f9;
}

.app-main {
    flex: 1;
    background: var(--bg-canvas);
    padding: 40px 60px;
    overflow-y: auto;
}

/* Upload Zone 2.0 */
.upload-zone {
    border: 2px dashed rgba(37, 99, 235, 0.2);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}

.upload-zone .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

/* Premium Dossier Styling */
.dossier-wrapper {
    background: #ffffff;
    color: #0f172a;
    border-radius: 4px;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.11), 
        0 2px 2px rgba(0,0,0,0.11), 
        0 4px 4px rgba(0,0,0,0.11), 
        0 8px 8px rgba(0,0,0,0.11), 
        0 15px 15px rgba(0,0,0,0.11);
    padding: 0;
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.dossier-header {
    background: #f8fafc;
    padding: 40px 50px;
    border-bottom: 2px solid #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: flex-top;
}

.dossier-body {
    padding: 50px;
    position: relative;
}

.dossier-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(226, 232, 240, 0.4);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.dossier-content {
    position: relative;
    z-index: 1;
}

.dossier-panel {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.dossier-panel-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 20px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 8px;
}

.dossier-data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #cbd5e1;
}

.dossier-data-row:last-child { border-bottom: none; }

.dossier-data-label { color: #64748b; font-size: 0.85rem; font-weight: 600; }
.dossier-data-value { color: #0f172a; font-size: 0.95rem; font-weight: 700; }

@media (max-width: 991px) {
    .app-sidebar {
        display: none;
    }
    .app-main {
        padding: 30px 20px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- COMPANY PROFILE INTELLIGENCE (v5.0) ---- */

.profile-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}

.profile-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: var(--accent-gold);
}

.profile-banner-content h4 {
  color: #92400e;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.profile-banner-content p {
  color: #b45309;
  font-size: 0.95rem;
  font-weight: 600;
}

.chip-checkbox {
  cursor: pointer;
  display: inline-block;
}

.chip-checkbox input {
  display: none;
}

.chip-checkbox span {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  transition: var(--transition);
}

.chip-checkbox input:checked + span {
  background: var(--accent-blue-glow);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Eligibility Assessment Section */
.eligibility-assessment {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 30px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.eligibility-header {
  background: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eligibility-header h4 {
  font-size: 1rem;
  color: #1e293b;
  margin: 0;
}

.eligibility-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}

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

.eligibility-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
}

.eligibility-meta {
  flex: 1.5;
  font-size: 0.85rem;
  color: #64748b;
}

.eligibility-status {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-match { background: #d1fae5; color: #065f46; }
.status-warning { background: #fee2e2; color: #991b1b; }
.status-info { background: #dbeafe; color: #1e40af; }

/* Nudge Card */
.nudge-card {
  background: #0f172a;
  color: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nudge-card h4 { color: white; margin-bottom: 8px; }
.nudge-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 16px; }

/* ---- CONSULTANT-GRADE INTELLIGENCE DOSSIER v2.0 STYLES ---- */
.dossier-premium-section {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.dossier-premium-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent-gold);
}

.compliance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compliance-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}

.compliance-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #1e293b;
}

.crit-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crit-high { background: #fee2e2; color: #991b1b; }
.crit-medium { background: #fef3c7; color: #92400e; }
.crit-low { background: #dcfce7; color: #166534; }

.strategy-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.strategy-tip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  transition: var(--transition);
}

.strategy-tip-card:hover { border-color: var(--accent-blue); transform: translateY(-3px); }

.tip-icon { font-size: 1.5rem; }
.tip-text { font-size: 0.9rem; font-weight: 600; color: #334155; line-height: 1.5; }

.protest-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.protest-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.barrier-header { margin-bottom: 16px; }
.barrier-label { 
  font-size: 0.7rem; font-weight: 900; color: var(--accent-red); 
  letter-spacing: 0.1em; margin-bottom: 8px; display: block;
}
.barrier-header h5 { font-size: 1.1rem; color: #0f172a; margin: 0; }
.barrier-impact { font-size: 0.9rem; color: #475569; margin-bottom: 20px; line-height: 1.6; }

.magic-protest-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 20px;
  color: #e2e8f0;
}

.protest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.protest-header span { 
  font-size: 0.8rem; font-weight: 800; color: var(--accent-gold); 
  text-transform: uppercase; letter-spacing: 0.1em;
}

.protest-content {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #94a3b8;
}

.btn-copy {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover { background: var(--accent-blue); }

/* ---- PRICING & TIERING STYLES v2.0 ---- */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.pricing-card {
  flex: 1;
  width: 100%;
  max-width: 400px;
  min-width: 280px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .pricing-card {
    padding: 30px 16px;
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .pricing-card {
    max-width: 100%;
  }
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.featured-card {
  border: 2px solid var(--border-gold) !important;
  transform: scale(1.05);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25), 0 18px 36px -18px rgba(0,0,0,0.3);
  z-index: 2;
}

.pricing-card:hover { transform: translateY(-10px); }
.featured-card:hover { transform: scale(1.05) translateY(-10px); }

.price-value {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 15px 0;
  color: var(--text-primary);
}

.price-value span { font-size: 1.5rem; vertical-align: top; margin-right: 5px; opacity: 0.6; }
.price-value small { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pricing-features li:last-child { border-bottom: none; }

.plan-badge-featured {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-gold);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .pricing-grid { gap: 20px; }
  .featured-card { transform: none; }
  .featured-card:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .dossier-premium-section { padding: 20px; }
  .strategy-tips-grid { grid-template-columns: 1fr; }
  .protest-card { padding: 16px; }
}

/* ---- DASHBOARD TABS & ARCHIVE (v4.0) ---- */
.tabs-container {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
  overflow-x: auto;
  -ms-overflow-style: auto;
  scrollbar-width: thin;
}
.tabs-container::-webkit-scrollbar { 
  height: 4px;
}
.tabs-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}
.tabs-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 24px;
  color: #64748b;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  background: linear-gradient(to top, var(--accent-blue-glow), transparent);
}

.archive-item {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  border-left: 4px solid transparent;
}

.archive-item:hover {
  transform: translateX(8px);
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Ensure report history doesn't overflow */
.checklist-grid {
  max-height: 800px;
  overflow-y: auto;
  padding-right: 10px;
}

.checklist-grid::-webkit-scrollbar {
  width: 6px;
}

.checklist-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.timeline-item {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.left { transform: translateX(-30px); }
.timeline-item.right { transform: translateX(30px); }

.timeline-item.reveal {
  opacity: 1;
  transform: translateX(0);
}

.demo-report-reveal {
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-report-reveal.reveal {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ---- SOVEREIGN CHATBOT GLASSMORPHISM ---- */
#tf-chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

#tf-chatbot-bubble {
  width: 64px;
  height: 64px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

#tf-chatbot-bubble:hover { transform: scale(1.1); }

#tf-chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#tf-chatbot-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
}

#chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.5;
}

.message.system {
  background: #f1f5f9;
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background: var(--accent-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.qa-btn {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qa-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.chatbot-input {
  padding: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 10px;
}

#chatbot-query {
  flex: 1;
  border: none;
  background: rgba(0,0,0,0.03);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

#chatbot-send {
  background: var(--accent-blue);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}

/* ---- UTR INTERACTIVE GUIDE (Elite 4.0) ---- */
.utr-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.utr-guide-header {
  padding: 12px 16px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-close-guide {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.utr-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
}

.utr-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.utr-tab.active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
  border-bottom: 2px solid var(--accent-blue);
}

.utr-content {
  padding: 20px;
  min-height: 240px;
}

.utr-pane { display: none; }
.utr-pane.active { display: block; animation: fadeIn 0.4s ease-out; }

.utr-anim {
  position: relative;
  height: 200px;
}

.utr-step {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  animation: stepAnim 4s infinite;
}

.utr-step.highlight { color: var(--accent-green); font-weight: 800; font-size: 1rem; }

@keyframes stepAnim {
  0%, 30% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-10px); }
}

.utr-mock-screen {
  margin-top: 40px;
  height: 120px;
  background: #000;
  border-radius: 12px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.utr-mock-screen::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: scanLine 2s infinite;
}

.mock-utr {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  background: rgba(37, 99, 235, 0.2);
  padding: 10px 15px;
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  animation: glow 1.5s infinite alternate;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes glow {
  from { box-shadow: 0 0 5px var(--accent-blue); }
  to { box-shadow: 0 0 15px var(--accent-blue); }
}

.utr-mock-screen.phonepe { border-color: #5f259f; }
.utr-mock-screen.gpay { border-color: #4285f4; }
.utr-mock-screen.paytm { border-color: #00b9f1; }

/* ---- BANK TRANSFER & PAYMENT TABS (Elite 4.1) ---- */
.payment-tabs {
  display: flex;
  background: var(--bg-secondary);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.pay-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-tab.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pay-tab.active[id*="bank"] {
  color: var(--accent-gold);
}

.payment-method-screen { display: none; }
.payment-method-screen.active { display: block; animation: fadeIn 0.4s ease; }

.bank-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 24px;
  color: white;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.bank-row {
  margin-bottom: 15px;
}

.bank-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.bank-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.btn-copy-mini {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent-gold);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-copy-mini:hover { background: rgba(255,255,255,0.1); }

.bank-card-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* Bank Switch Animation Mockup */
.bank-switch-anim {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.switch-step {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: stepAnim 3s infinite;
}

.switch-step.highlight { color: var(--accent-gold); }

.mock-tabs {
  margin-top: 50px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mock-tab {
  width: 60px; height: 30px;
  background: #333;
  border-radius: 6px;
  font-size: 0.6rem;
  display: flex;
  align-items: center; justify-content: center;
}

.mock-tab.active-gold {
  background: var(--accent-gold);
  color: black;
  animation: pulseGold 1.5s infinite;
}

@keyframes pulseGold {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 10px var(--accent-gold); }
  100% { transform: scale(1); }
}

/* ---- Subscription Intelligence Timeline ---- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.timeline-progress-container {
  height: 12px;
  background: var(--bg-canvas);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-points {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -18px;
}

.timeline-point {
  width: 24px;
  height: 24px;
  background: var(--bg-card);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.timeline-point.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.history-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card);
  transform: translateX(4px);
}

/* ---- Dossier Tabs & Mobile UX ---- */
.dossier-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-canvas);
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dossier-tabs::-webkit-scrollbar { display: none; }

.dossier-tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dossier-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.dossier-tab-content .tab-pane {
  display: none;
  animation: dossierFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .hero-premium { padding: 40px 0 20px !important; }
  .hero-premium h1 { font-size: 1.85rem !important; }
  .stats-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .dossier-tabs { margin-inline: -20px; border-radius: 0; padding: 8px 15px; }
  .dossier-panel { padding: 18px !important; margin-bottom: 20px !important; }
  .dossier-tab-btn { font-size: 0.8rem; padding: 10px 12px; }
}
