   /* CUSTOM PROPERTIES */
:root {
  /* Backgrounds */
  --bg-page: #f5f0e8;
  --bg-card: #ffffff;
  --bg-sidebar: #18181b;
  --bg-sidebar-hover: #27272a;

  /* Text */
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --text-on-dark: #f4f4f5;
  --text-on-dark-muted: #a1a1aa;

  /* Accents */
  --accent-primary: #dc2626;
  --accent-primary-hover: #b91c1c;
  --accent-secondary: #0891b2;
  --accent-secondary-light: #ecfeff;
  --accent-secondary-border: rgba(8, 145, 178, 0.2);
  --accent-gold: #d97706;

  /* Verdict colors */
  --verdict-true: #16a34a;
  --verdict-true-bg: #dcfce7;
  --verdict-true-border: #86efac;
  --verdict-false: #dc2626;
  --verdict-false-bg: #fee2e2;
  --verdict-false-border: #fca5a5;
  --verdict-disputed: #d97706;
  --verdict-disputed-bg: #fef3c7;
  --verdict-disputed-border: #fcd34d;
  --verdict-unverifiable: #6b7280;
  --verdict-unverifiable-bg: #f3f4f6;
  --verdict-unverifiable-border: #d1d5db;

  /* Borders & shadows */
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --sidebar-width: 210px;
  --max-content: 800px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
}

   /* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100dvh;       /*dynamic - excluding address bar*/
  max-width: 100%;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  position: relative;
}

   /* BACKGROUND TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

   /* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--accent-primary);
}

   /* LAYOUT */
.main {
  grid-column: 2;
  max-width: calc(var(--max-content) + 64px);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  padding: 32px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow-x: hidden;
}

   /* SIDEBAR */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.6;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section + .sidebar-section {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  padding: 8px 10px 4px;
}

.sidebar-item {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-on-dark);
}

.sidebar-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
}

   /* LOGO */
.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--accent-primary);
  flex-shrink: 0;
  animation: logoIn 0.8s var(--ease-bounce) both;
}

   /* HERO SECTION */
.hero {
  position: relative;
  padding: 24px 0 0;
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hero-title .accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 28px;
}

   /* FORMS */
.claim-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--duration-normal) ease;
}

.claim-form:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: min-height var(--duration-normal) var(--ease-out),
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  background: var(--bg-card);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.form-error-msg {
  display: none;
  color: var(--accent-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--verdict-false-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
  animation: fadeUp 0.3s var(--ease-out) both;
}

.form-error-msg.show {
  display: block;
}

/* ERROR BOX (results-area errors) */
.error-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--verdict-false-bg);
  border: 1px solid var(--verdict-false-border);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

   /* BUTTONS */
.btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-page);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn:disabled,
.btn:disabled:hover {
  filter: brightness(0.65);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary:disabled,
.btn-secondary:disabled:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  border-color: var(--border);
  filter: none;
}

   /* MODE TOGGLE */
.mode-toggle {
  display: inline-flex;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  margin-bottom: 18px;
}

.mode-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.mode-btn:hover:not(.active) {
  color: var(--text-secondary);
}

.mode-transition {
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.mode-switching {
  opacity: 0;
  transform: translateY(-8px);
}

   /* EXAMPLE CARDS */
.example-claims {
  margin-top: 20px;
  margin-bottom: 0;
}

.example-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.example-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.example-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  line-height: 1.45;
  text-align: center;
}

.example-card:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

   /* LOADING STAGES */
#loading {
  display: none;
}

#loading.htmx-request {
  display: block;
}

.stages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) ease;
}

.stage-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  flex-shrink: 0;
  transition: all var(--duration-normal) ease;
}

.stage-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--duration-normal) ease;
}

.stage.active {
  background: rgba(220, 38, 38, 0.04);
}

.stage.active .stage-icon {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  animation: pulse 1.5s ease infinite;
}

.stage.active .stage-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.stage.complete .stage-icon {
  border-color: var(--verdict-true);
  background: var(--verdict-true);
  color: #ffffff;
  animation: scaleIn 0.3s var(--ease-bounce) both;
}

.stage.complete .stage-label {
  color: var(--text-primary);
}

   /* RESULTS HEADER */
.results-header {
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.results-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0;
}

#results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#results:empty {
  display: none;
}

   /* CLAIM CARD (base for verdict/analysis/sources) */
.claim-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow-wrap: break-word;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.claim-card:hover {
  box-shadow: var(--shadow-md);
}

.claim-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.claim-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  background: var(--accent-secondary-light);
  border: 1px solid var(--accent-secondary-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-right: 8px;
  margin-bottom: 4px;
  vertical-align: middle;
}

.verdict-card {
  padding-bottom: 28px;
}

   /* VERDICT GRID (3-column centered layout) */
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.verdict-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.cell-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-align: center;
}

   /* VERDICT BADGES */
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.verdict-cell .verdict-badge {
  font-size: 0.875rem;
  padding: 8px 16px;
}

.verdict-verified {
  background: var(--verdict-true-bg);
  color: var(--verdict-true);
  border: 1px solid var(--verdict-true-border);
}

.verdict-debunked {
  background: var(--verdict-false-bg);
  color: var(--verdict-false);
  border: 1px solid var(--verdict-false-border);
}

.verdict-disputed {
  background: var(--verdict-disputed-bg);
  color: var(--verdict-disputed);
  border: 1px solid var(--verdict-disputed-border);
}

.verdict-unverifiable {
  background: var(--verdict-unverifiable-bg);
  color: var(--verdict-unverifiable);
  border: 1px solid var(--verdict-unverifiable-border);
}

.verdict-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

   /* CONFIDENCE METER */
.confidence-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-gold);
}

.confidence-meter {
  width: 80%;
  height: 4px;
  margin: 0 auto;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 2px;
  background: var(--accent-gold);
  transform-origin: left;
  transform: scaleX(0);
  animation: fillBar 1s var(--ease-out) both;
  animation-delay: var(--delay, 0.5s);
}

   /* CLASSIFICATION BADGE */
.classification-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-secondary-light);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary-border);
  letter-spacing: 0.01em;
  cursor: help;
}

   /* METRICS ROW */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: help;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-secondary);
  transform: scaleX(0.3);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.metric-card:hover::after {
  transform: scaleX(1);
}

.metric-card:hover .metric-value {
  transform: scale(1.08);
}

.metric-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 6px;
}

   /* BATCH SUMMARY */
.batch-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  transition: transform var(--duration-normal) var(--ease-out);
}

.summary-stat:last-child {
  border-right: none;
}

.summary-stat:hover {
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}

   /* SECTION HEADINGS (used in Analysis / Sources cards) */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-heading-lg {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.section-heading svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
}

   /* ANALYSIS CARD CONTENT */
.evidence-item {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 16px 20px;
  background: var(--bg-page);
  border-left: 3px solid var(--accent-secondary);
  border-radius: var(--radius-sm);
  min-width: 0;
  overflow-wrap: break-word;
}

   /* SOURCE CARDS */
.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.source-card:last-child {
  margin-bottom: 0;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-secondary);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.source-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.source-card:hover::before {
  opacity: 1;
}

.source-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  background: var(--accent-secondary-light);
  border: 1px solid var(--accent-secondary-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.source-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.source-tier-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.source-domain-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.source-tier {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.4;
}

.tier-1 {
  background: var(--verdict-true-bg);
  color: var(--verdict-true);
  border: 1px solid var(--verdict-true-border);
}

.tier-2 {
  background: var(--accent-secondary-light);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary-border);
}

.tier-3 {
  background: var(--verdict-disputed-bg);
  color: var(--verdict-disputed);
  border: 1px solid var(--verdict-disputed-border);
}

.tier-4 {
  background: var(--verdict-unverifiable-bg);
  color: var(--verdict-unverifiable);
  border: 1px solid var(--verdict-unverifiable-border);
}

.source-url {
  display: block;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color var(--duration-fast) ease;
}

.source-url:hover {
  color: var(--accent-primary);
}

.source-snippet {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.source-stance {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stance-supports {
  background: var(--verdict-true-bg);
  color: var(--verdict-true);
}

.stance-contradicts {
  background: var(--verdict-false-bg);
  color: var(--verdict-false);
}

.stance-neutral {
  background: var(--verdict-unverifiable-bg);
  color: var(--verdict-unverifiable);
}

   /* FOOTER */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

   /* KEYFRAMES */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stampIn {
  0%   { opacity: 0; transform: scale(2.5) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(0.95) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-12px); }
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

   /* ANIMATION UTILITIES */
.anim-fade-up {
  animation: fadeUp 0.6s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

.anim-scale-in {
  animation: scaleIn 0.5s var(--ease-bounce) both;
  animation-delay: var(--delay, 0s);
}

.anim-slide-left {
  animation: slideLeft 0.5s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}

.anim-stamp {
  animation: stampIn 0.7s var(--ease-bounce) both;
  animation-delay: var(--delay, 0.3s);
}

   /* MOBILE HAMBURGER MENU */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 1px;
  transition: all var(--duration-fast) ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

   /* RESPONSIVE */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.open + .sidebar-overlay {
    display: block;
  }

  .main {
    padding: 60px 16px 24px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .claim-form {
    padding: 20px;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .batch-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .summary-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .verdict-grid {
    grid-template-columns: 1fr;
  }
}

   /* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}