/* ===== BFAS — Modern Design System ===== */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-400: #fbbf24;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --cyan-400: #22d3ee;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Semantic */
  --bg: #fafbfe;
  --surface: #ffffff;
  --text: var(--gray-800);
  --text-secondary: var(--gray-500);
  --border: var(--gray-200);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;

  /* Font */
  font-family: 'SolaimanLipi', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== Animated Background ===== */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
  z-index: -1;
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -2%) rotate(3deg); }
}

/* ===== Header ===== */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-400);
  box-shadow: 0 0 10px var(--primary-400), 0 0 20px rgba(99, 102, 241, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 6px var(--primary-400), 0 0 12px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: 0 0 12px var(--primary-400), 0 0 30px rgba(99, 102, 241, 0.4); }
}

header p {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0;
}

.header-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-300);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== Main Wrapper ===== */
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px;
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 48px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 20px;
  position: relative;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  position: relative;
}

/* ===== Buttons ===== */
.btn {
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-600);
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35), var(--shadow-glow);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn.alt {
  background: var(--surface);
  color: var(--gray-700);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn.alt:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

.btn.alt::before {
  display: none;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.hero-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-demo {
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--primary-300);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-700);
}

.btn-hero-demo:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

.btn-hero {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-600) 0%, #7c3aed 100%);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  letter-spacing: 0.2px;
}

.btn-hero:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, #6d28d9 100%);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4), var(--shadow-glow);
  transform: translateY(-3px);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 300ms var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--cyan-400));
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.stat:hover::before {
  opacity: 1;
}

.stat strong {
  font-size: 40px;
  display: block;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== Panel / Card ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms var(--ease);
}

.panel:hover {
  box-shadow: var(--shadow-lg);
}

.panel h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ===== Layout (Sidebar + Content) ===== */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  margin-top: 20px;
}

/* ===== Sidebar Navigation ===== */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 88px;
  align-self: start;
}

.nav button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--duration) var(--ease);
  position: relative;
  font-family: inherit;
  line-height: 1.4;
}

.nav button:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.nav button.active {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
  font-weight: 600;
}

.nav button.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary-500);
  border-radius: 0 3px 3px 0;
}

.nav button.complete {
  color: var(--emerald-500);
}

.nav button.complete::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  flex-shrink: 0;
}

/* ===== Questions ===== */
.q {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeIn 300ms var(--ease);
}

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

.q:last-child {
  border-bottom: none;
}

.q h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== Info Button ===== */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-200);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  transition: all var(--duration) var(--ease);
  vertical-align: middle;
}

.info-btn:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ===== Info Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 200ms var(--ease);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  animation: modalScaleUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 20px;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  color: var(--gray-800);
  background: var(--gray-100);
}

.modal-body {
  padding: 24px;
}

.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.info-badge {
  background: var(--primary-600);
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.info-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-800);
}

.info-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.q h3 .q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.choices {
  display: flex;
  gap: 8px;
}

.choices label {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-400);
  transition: all var(--duration) var(--ease);
  user-select: none;
  position: relative;
}

.choices label:hover {
  border-color: var(--primary-300);
  color: var(--primary-500);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.choices label:has(input:checked) {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.choices input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ===== Inputs ===== */
textarea,
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-50);
  transition: all var(--duration) var(--ease);
}

textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-400);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

textarea {
  margin-top: 14px;
  min-height: 60px;
  resize: vertical;
  font-size: 13px;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

/* ===== Progress Bar ===== */
.progress-wrap {
  margin: 16px 0 4px;
}

.bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400), var(--cyan-400));
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.bar > div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

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

/* ===== Utility ===== */
.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  border: 1px solid var(--primary-100);
}

/* ===== Scale Hint ===== */
.scale-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin: 16px 0 8px;
}

.scale-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
  padding: 3px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

.scale-hint strong {
  color: var(--primary-600);
  font-weight: 800;
  font-size: 13px;
}

/* ===== Idea Input ===== */
.idea-group {
  margin: 20px 0;
}

.idea-group label {
  display: block;
}

.idea-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* ===== Result Section ===== */
.result {
  display: none;
  animation: fadeIn 400ms var(--ease);
}

.result-header {
  text-align: center;
  padding: 40px 0 32px;
  position: relative;
}

.result-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.score {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.decision-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.decision-go {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 1px solid #86efac;
}

.decision-test {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.decision-pivot {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #9a3412;
  border: 1px solid #fb923c;
}

.decision-nogo {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #991b1b;
  border: 1px solid #f87171;
}

#breakdown {
  margin: 28px 0;
}

.breakdown-item {
  margin-bottom: 16px;
}

.breakdown-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.breakdown-label span {
  color: var(--primary-600);
  font-weight: 700;
  font-size: 12px;
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ===== Result Panel ===== */
.result-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-panel-header h2 {
  margin-bottom: 0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* ===== Incomplete State ===== */
.incomplete-box {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--gray-50), #f5f3ff);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
}

.incomplete-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.incomplete-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.incomplete-text {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 16px;
}

.incomplete-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-600);
}

/* ===== Action Bar (import/export/reset) ===== */
.actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

/* ===== Incomplete Message ===== */
#incomplete.hidden {
  display: none;
}

/* ===== Breakdown ===== */
.breakdown-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* ===== Result Label ===== */
.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ===== PDF Button ===== */
.btn-pdf {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-pdf:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.btn-pdf svg {
  flex-shrink: 0;
}

.result-actions {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

/* ===== Recommendation ===== */
.recommendation-box {
  background: linear-gradient(135deg, var(--primary-50), #f5f3ff);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.recommendation-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 10px;
}

.recommendation-box p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  color: var(--gray-400);
  padding: 48px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--gray-100);
  margin-top: 24px;
}

footer span {
  opacity: 0.5;
  margin: 0 6px;
}

/* ===== Disclaimer ===== */
.disclaimer {
  text-align: center;
  padding: 20px;
  color: var(--gray-400);
  font-size: 12px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* ===== Section Divider ===== */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 8px 0;
}

/* ===== Official Report Styles (Screen & Print) ===== */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-600);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-50);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-200);
}

.report-logo-dot {
  color: #38bdf8;
  font-size: 16px;
}

.report-brand-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.report-brand-text p {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.report-meta-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-width: 280px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--gray-200);
}

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

.meta-title {
  color: var(--gray-500);
  font-weight: 500;
}

.meta-val {
  color: var(--gray-800);
  font-weight: 700;
}

/* Summary Cards Grid */
.report-summary-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.summary-score-card {
  background: linear-gradient(135deg, var(--primary-50), #ede9fe);
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.summary-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-700);
  margin-bottom: 8px;
}

.summary-score-card .score {
  font-size: 56px;
  margin-bottom: 4px;
}

.score-subtext {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.summary-verdict-card {
  background: var(--surface);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verdict-pill-wrap {
  margin: 6px 0 12px;
}

.verdict-summary {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.report-section-heading {
  margin: 28px 0 16px;
}

.report-section-heading h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

/* Report Table */
.report-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  margin-bottom: 28px;
  background: var(--surface);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.report-table thead th {
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--gray-200);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.report-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table tbody tr:hover {
  background: #fbfcfe;
}

.col-num {
  width: 40px;
}

.col-cat {
  color: var(--gray-800);
}

.col-weight {
  width: 65px;
  color: var(--gray-500);
}

.col-score {
  width: 110px;
}

.col-pct {
  width: 80px;
}

.col-progress {
  width: 150px;
}

.col-status {
  width: 95px;
}

.text-center {
  text-align: center;
}

.font-semibold {
  font-weight: 700;
}

.table-progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.table-progress-bar > div {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.status-high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-mid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-low {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Formal Footnote */
.report-footer-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.7;
}

.report-stamp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
  font-size: 11px;
  color: var(--gray-600);
}

/* ===== Detailed Evidence Log ===== */
.evidence-heading {
  margin-top: 36px;
}

.evidence-log-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 16px 0 28px;
}

.evidence-section-card {
  background: var(--surface);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease);
}

.evidence-section-card:hover {
  box-shadow: var(--shadow-sm);
}

.evidence-section-header {
  background: linear-gradient(135deg, var(--gray-50), #f1f5f9);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 10px;
}

.evidence-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.evidence-section-num {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--primary-600);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.evidence-section-title h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.evidence-section-score {
  font-size: 13px;
  color: var(--gray-600);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
}

.evidence-questions-list {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evidence-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--gray-200);
}

.evidence-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.evidence-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.evidence-q-num {
  font-weight: 700;
  color: var(--primary-600);
  font-size: 14px;
}

.evidence-q-text {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 14px;
  flex: 1;
  min-width: 250px;
}

.evidence-score-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.score-pill-4 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.score-pill-3 {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.score-pill-2 {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.score-pill-1 {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.score-pill-0 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.evidence-note-box {
  background: #f8fafc;
  border-left: 3.5px solid var(--primary-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-top: 6px;
}

.evidence-note-box.no-note {
  border-left-color: var(--gray-300);
  background: var(--gray-50);
}

.evidence-note-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.evidence-note-body {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

.evidence-note-body em {
  color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-meta-box {
    width: 100%;
    min-width: unset;
  }
}

/* ===== Print ===== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 12mm 12mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body::before {
    display: none !important;
  }

  /* Completely hide all interactive web elements */
  header,
  footer,
  .hero,
  .stats,
  #assessment,
  .result-panel-header,
  .result-actions,
  .info-btn,
  .modal-overlay,
  .scale-hint,
  #incomplete,
  .actions-bar,
  .idea-group,
  .progress-wrap,
  .btn-hero,
  .header-badge,
  .disclaimer {
    display: none !important;
  }

  .wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .panel.result-panel {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .result {
    display: block !important;
  }

  /* Printable Report Header */
  .report-header {
    border-bottom: 2px solid #0f172a !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
    display: flex !important;
  }

  .report-logo {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
  }

  .report-meta-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
  }

  /* Printable Summary Cards */
  .report-summary-grid {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .summary-score-card {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 14px !important;
  }

  .summary-score-card .score {
    font-size: 38px !important;
    color: #4338ca !important;
    -webkit-text-fill-color: #4338ca !important;
    line-height: 1.1 !important;
  }

  .summary-verdict-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 14px 18px !important;
  }

  .verdict-summary {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .decision-badge {
    padding: 5px 14px !important;
    font-size: 12px !important;
  }

  /* Printable Breakdown Table */
  .report-section-heading {
    margin: 16px 0 10px !important;
  }

  .report-section-heading h3 {
    font-size: 13px !important;
  }

  .report-table-responsive {
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 16px !important;
    overflow: visible !important;
  }

  .report-table {
    font-size: 10px !important;
  }

  .report-table thead th {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    padding: 8px 10px !important;
    border-bottom: 1.5px solid #94a3b8 !important;
  }

  .report-table tbody td {
    padding: 7px 10px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .report-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .table-progress-bar {
    height: 7px !important;
    background: #e2e8f0 !important;
  }

  /* Recommendation Box */
  .recommendation-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-left: 4px solid #4f46e5 !important;
    padding: 14px 16px !important;
    margin-top: 14px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .recommendation-box h3 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .recommendation-box p {
    font-size: 11px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
  }

  /* Evidence Log in Print */
  .evidence-heading {
    margin-top: 18px !important;
  }

  .evidence-log-container {
    gap: 12px !important;
    margin: 10px 0 14px !important;
  }

  .evidence-section-card {
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 10px !important;
  }

  .evidence-section-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 7px 10px !important;
  }

  .evidence-section-num {
    background: #4338ca !important;
    color: white !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .evidence-section-title h4 {
    font-size: 11px !important;
  }

  .evidence-section-score {
    font-size: 9px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 2px 6px !important;
  }

  .evidence-questions-list {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .evidence-item {
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .evidence-q-text {
    font-size: 10px !important;
  }

  .evidence-score-pill {
    font-size: 8px !important;
    padding: 2px 6px !important;
  }

  .evidence-note-box {
    background: #f8fafc !important;
    border-left: 3px solid #4338ca !important;
    padding: 5px 8px !important;
    margin-top: 3px !important;
  }

  .evidence-note-label {
    font-size: 8px !important;
    margin-bottom: 2px !important;
  }

  .evidence-note-body {
    font-size: 9px !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
  }

  /* Report Footnote */
  .report-footer-note {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    margin-top: 16px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
