/* ============================================================
   RESUME SCREEN — MODERN DESIGN SYSTEM
   Theme: Sleek Dark Slate / Modern SaaS ATS Engine
   Typography: Inter, Plus Jakarta Sans, JetBrains Mono
   ============================================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f172a;
  --bg-card: #131d33;
  --bg-card-hover: #182542;
  --bg-card-inner: #0c1322;
  --bg-card-light: #1e293b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-secondary: #4f46e5;
  --accent-hover: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);

  --rose: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.3);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-medium);
  --shadow-glow: 0 0 40px -10px var(--accent-glow);
}

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

html, body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.04), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(99, 102, 241, 0.05), transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================== LAYOUT CONTAINER ===================== */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
}

.navbar__container {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.navbar__logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.navbar__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: #fff;
}

.navbar__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

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

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .case-tag { display: none; }
}

/* ===================== HERO SECTION ===================== */
.hero {
  text-align: center;
  padding: 36px 12px 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.feature-pill svg {
  color: var(--emerald);
}

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  border-color: var(--border-medium);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
  margin: 0;
}

.card__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card__subtag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
}

.card__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.card__header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__header-icon--green {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.card__header-icon--red {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.card__header-icon--amber {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

/* ===================== UPLOAD CARD ===================== */
.upload-card {
  padding: 30px;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 44px 20px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.04);
}

.dropzone__icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-hover);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.2s ease;
}

.dropzone:hover .dropzone__icon-circle {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.16);
}

.dropzone__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.dropzone__sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* Screen-reader and accessible file input */
.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  user-select: none;
}

label.btn {
  display: inline-flex;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #7174f4 0%, #584eed 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--analyze {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.btn--analyze:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

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

/* Sample selection bar */
.samples-bar {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.samples-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.samples-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sample-btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: var(--border-medium);
}

.sample-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sample-indicator--good { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.sample-indicator--bad { background: var(--rose); box-shadow: 0 0 6px var(--rose); }

/* Selected file pill */
.filepill {
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.filepill__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filepill__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filepill__name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filepill__status {
  font-size: 12px;
  color: var(--emerald);
}

.filepill__remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.filepill__remove:hover {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.1);
}

/* Upload actions row */
.upload-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 480px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-notice svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-notice strong {
  color: var(--text-primary);
}

/* ===================== LOADING STATE ===================== */
.loading-state {
  margin: 30px auto;
  max-width: 580px;
}

.loading-card {
  text-align: center;
  padding: 44px 30px;
}

.loading-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-primary);
  border-right-color: var(--emerald);
  animation: spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

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

.spinner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-hover);
}

.loading-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.loading-line {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 22px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--bg-card-inner);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item--active {
  color: var(--text-primary);
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ===================== ERROR STATE ===================== */
.error-card {
  border-color: var(--rose-border);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, var(--bg-card) 100%);
  padding: 24px;
}

.error-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.error-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--rose-bg);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.error-message {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===================== RESULTS VIEW ===================== */
.results-view {
  animation: fadeIn 0.35s ease;
}

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

/* Verdict Card */
.verdict-card {
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
}

.verdict-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: #fff;
}

.verdict-badge.accepted {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.verdict-badge.borderline {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.verdict-badge.rejected {
  background: var(--rose-bg);
  border-color: var(--rose-border);
  color: var(--rose);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.verdict-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.verdict-meta {
  flex: 1;
}

.verdict-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verdict-reason {
  font-size: 14.5px;
  color: var(--text-primary);
  margin-top: 3px;
  line-height: 1.5;
}

/* Grids */
.results-grid {
  display: grid;
  gap: 20px;
}

.results-grid--gauges {
  grid-template-columns: 1fr 1fr;
}

.results-grid--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .results-grid--gauges,
  .results-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Score Card & Gauge */
.score-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gauge-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 10px auto 14px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 402;
  stroke-dashoffset: 402;
  transition: stroke-dashoffset 1s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.4s ease;
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.gauge-max {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-card__caption {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ATS Card */
.ats-card {
  display: flex;
  flex-direction: column;
}

.ats-rate-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-bg);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.ats-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ats-score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.ats-score-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}

.ats-score-denom {
  font-size: 13px;
  color: var(--text-secondary);
}

.ats-issues-wrap {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
}

.ats-issues-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ats-issues-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ats-issues-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ats-issues-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--amber);
  font-weight: bold;
}

.ats-issues-list .ats__empty {
  color: var(--emerald);
  padding-left: 0;
}
.ats-issues-list .ats__empty::before { display: none; }

/* Score Breakdown Component */
.breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.breakdown-row__label {
  font-weight: 500;
  color: var(--text-primary);
}

.breakdown-row__score {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.breakdown-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Priority Card */
.priority-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.priority-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

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

.priority-list li {
  counter-increment: priority-counter;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.priority-list li::before {
  content: counter(priority-counter);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Strengths & Flaws Lists */
.strengths-list, .flaws-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strengths-list li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card-inner);
  border-left: 3px solid var(--emerald);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strengths-list strong {
  font-size: 14px;
  color: #fff;
}

.strengths-list span {
  font-size: 13px;
  color: var(--text-secondary);
}

.flaws-list li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card-inner);
  border-left: 3px solid var(--rose);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flaw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flaw-header strong {
  font-size: 14px;
  color: #fff;
}

.severity-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.severity-critical {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.severity-major {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.severity-minor {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.flaw-fix {
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 4px;
}

.flaw-fix strong {
  color: var(--amber);
  font-weight: 600;
}

.empty-note {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13.5px;
  padding: 12px;
  text-align: center;
}

/* Rewrites Component */
.rewrites-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rewrite-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rewrite-card__original {
  font-size: 13.5px;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--rose);
}

.rewrite-card__suggestion {
  font-size: 14px;
  color: var(--text-primary);
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--emerald);
  font-weight: 500;
}

.rewrite-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.rewrite-label--orig { color: var(--rose); }
.rewrite-label--rec { color: var(--emerald); }

/* Section Grid */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .section-grid { grid-template-columns: 1fr; }
}

.section-item {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.section-item h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 6px;
}

.section-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Audit Metadata Bar */
.audit-bar {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* Results Action Bar */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 44px 20px 32px;
  margin-top: auto;
}

.site-footer__container {
  max-width: 940px;
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-hover);
  transition: color 0.15s ease;
  margin-top: 2px;
}

.footer-email:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-dot {
  opacity: 0.5;
}

.footer-meta-right {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.brand-signature {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
  padding-left: 2px;
}

.watermark-tag {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.16);
  user-select: none;
  pointer-events: none;
  text-transform: lowercase;
}

.loading-watermark {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.65;
}

/* Print Styles */
@media print {
  .navbar, .upload-wrapper, .loading-state, .results-actions, .site-footer {
    display: none !important;
  }
  body, .main-content {
    background: #fff !important;
    color: #000 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
  }
}
