:root {
  --bg-page: #f5f5f4;
  --bg-card: #ffffff;
  --bg-subtle: #fafaf9;
  --text-main: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border-light: #e4e4e7;
  --accent-dark: #18181b;
  --accent-dark-hover: #27272a;
  --accent-emerald: #0f766e;
  --accent-emerald-hover: #115e59;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.navbar {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clean Buttons (Zero Emojis, Never Wrap Awkwardly) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--accent-dark-hover);
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #ffffff;
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* Main Container */
.stage-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto 40px;
  padding: 0 24px;
  flex: 1;
}

.step-screen {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.step-screen.active {
  display: block;
}

.screen-header {
  margin-bottom: 24px;
}

.screen-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.screen-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 1-Click Role Suggestions Bar */
.suggestion-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.suggestion-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.suggestion-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.suggestion-chip:hover {
  background: #ecfdf5;
  border-color: #0f766e;
  color: #0f766e;
}

.suggestion-chip.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* Input Grid */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.field-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.text-clear-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.text-clear-btn:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.field-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.field-toolbar .text-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s ease;
}

.field-toolbar .text-link:hover {
  color: #115e59;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
}

.pro-price-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
}

.field-top label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.text-link {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
}

textarea, input[type="text"], select {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.55;
}

textarea:focus, input[type="text"]:focus, select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent-dark);
}

textarea {
  resize: vertical;
  min-height: 210px;
}

/* Clean Bottom Match Bar on Page 1 (Perfectly Centered Circle, No Overflow!) */
.match-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.match-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}

.score-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.match-text h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.match-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ATS Red Flag Diagnostic Card on Screen 1 */
.red-flags-card {
  margin-top: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.red-flags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.red-flags-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
}

.red-flags-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #fcd34d;
}

.red-flags-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: #78350f;
  margin-bottom: 12px;
}

.red-flags-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.red-flags-fix-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Page 2 Top Summary Bar */
.result-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

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

.score-pill {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Document Navigation Bar */
.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.doc-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.doc-tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.doc-tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.doc-pane {
  display: none;
}

.doc-pane.active {
  display: block;
}

/* Subtle Watermark Notice */
.edit-hint-bar {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: #166534;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formatted-resume-paper[contenteditable="true"]:focus {
  outline: 2px solid #0f766e;
  outline-offset: 4px;
}

.watermark-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Pro Lock Screen (Premium Frosted Glass) */
.pro-lock-wrapper {
  position: relative;
  min-height: 480px;
}

.pro-lock-wrapper.locked {
  max-height: 540px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.pro-lock-wrapper.locked .formatted-resume-paper,
.pro-lock-wrapper.locked .cover-paper,
.pro-lock-wrapper.locked .qa-list-container,
.pro-lock-wrapper.locked textarea {
  filter: blur(6px);
  opacity: 0.40;
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.pro-lock-wrapper.locked .pane-action-header,
.pro-lock-wrapper.locked .edit-hint-bar,
.pro-lock-wrapper.locked .pane-actions-footer {
  filter: blur(6px);
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

.pro-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 18px 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.88) 280px, rgba(241, 245, 249, 0.98) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
}

.pro-lock-wrapper.locked .pro-lock-overlay {
  display: flex;
}

.lock-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.lock-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lock-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
}

.lock-pro-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f766e;
  background: #ccfbf1;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

.lock-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.lock-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 14px;
}

.lock-card-bullets {
  list-style: none;
  padding: 10px 14px;
  margin: 0 0 16px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
}

.lock-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.lock-price-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f766e;
}

.lock-price-sub {
  font-size: 0.76rem;
  color: #64748b;
}

.lock-card-footnote {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 10px;
}

.lock-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pane-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.qa-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
  margin-top: 8px;
  margin-bottom: 2px;
}

.qa-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.qa-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.qa-card h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.qa-tip {
  font-size: 0.8rem;
  color: #065f46;
  background: #ecfdf5;
  border-left: 3px solid #059669;
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 3px;
}

.qa-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Executive Resume Paper */
.formatted-resume-paper {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 48px 54px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #111827;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.48;
}

.exec-header {
  text-align: center;
  border-bottom: 1.5px solid #111827;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.exec-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.exec-role {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.exec-contact {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
}

.exec-contact-link {
  color: #1e3a8a;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 138, 0.4);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-block;
}

.exec-contact-link:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
  background: rgba(30, 58, 138, 0.05);
  border-radius: 3px;
}

.exec-contact-sep {
  color: #9ca3af;
  user-select: none;
  font-size: 0.75rem;
  padding: 0 3px;
}

.exec-link {
  color: #1e3a8a;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 138, 0.4);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.exec-link:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

.exec-section {
  margin-bottom: 16px;
}

.exec-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #111827;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 3px;
  margin-bottom: 8px;
}

.exec-summary {
  font-size: 0.88rem;
  color: #1f2937;
}

.exec-entry {
  margin-bottom: 12px;
}

.exec-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.exec-entry-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.exec-entry-org {
  font-size: 0.9rem;
  font-style: italic;
  color: #374151;
}

.exec-entry-date {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
}

.exec-bullets {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.88rem;
  color: #1f2937;
}

.exec-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: #1f2937;
}

/* Clean, Compact Modal (Fits on Screen Without Scrolling!) */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.pro-feature-list {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 14px 0 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 20px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 16px;
}

.legal-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  display: none;
  z-index: 2000;
}

.toast.show {
  display: block;
}

/* Executive Cover Letter Paper */
.cover-paper {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 48px 54px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #111827;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.55;
}

.cover-letter-body p {
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1f2937;
}

.pane-actions-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (MOBILE, TABLET, LAPTOP)
   ========================================================================== */

/* Universal Mobile Optimizations (< 640px) */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar {
    padding: 12px 14px;
  }
  .brand {
    gap: 8px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  /* Main Container & Screens */
  .stage-container {
    padding: 0 10px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
  }

  .step-screen {
    padding: 16px 12px;
    border-radius: 12px;
  }

  /* Screen 1 Header */
  .screen-header {
    margin-bottom: 16px;
  }
  .screen-header h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .screen-header p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* 1-Click Role Suggestions */
  .suggestion-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
  }
  .suggestion-label {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }
  .suggestion-chip {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: normal;
  }

  /* Input Grid */
  .input-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  .field-top label {
    font-size: 0.84rem;
  }
  .text-clear-btn {
    font-size: 0.74rem;
    padding: 2px 4px;
  }
  .field-toolbar {
    gap: 12px;
    margin-bottom: 6px;
  }
  .field-toolbar .text-link {
    font-size: 0.76rem;
  }
  .field-actions {
    gap: 4px 10px;
    flex-wrap: wrap;
  }
  .field-card textarea {
    min-height: 160px;
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Match Bar */
  .match-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px;
    gap: 14px;
  }
  .match-bar-left {
    min-width: 0;
    width: 100%;
    gap: 12px;
  }
  .score-circle {
    width: 52px;
    height: 52px;
    font-size: 0.96rem;
  }
  .match-text h3 {
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .match-text p {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  #btnAutoBuildResume {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    justify-content: center;
  }

  /* Screen 2 Top Summary Bar */
  .result-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .result-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  #autoBannerTitle {
    font-size: 0.82rem;
    width: 100%;
    color: var(--text-secondary);
  }
  .result-top-bar > div:last-child {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 8px;
    width: 100%;
  }
  #btnResetResumeEdits {
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  #btnDownloadDirectPdf {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.84rem;
    justify-content: center;
  }

  /* 5-Tab Switcher - Native Horizontal Swipe */
  .doc-toolbar {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: none;
  }
  .doc-toolbar::-webkit-scrollbar {
    display: none;
  }
  .doc-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 4px;
    padding: 3px;
  }
  .doc-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  /* Live Edit Bar */
  .edit-hint-bar {
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  /* Watermark notice */
  .watermark-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.78rem;
    text-align: center;
  }
  .watermark-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* The Paper Documents (Resume & Cover Letter) */
  .formatted-resume-paper,
  .cover-paper {
    padding: 20px 14px;
    border-radius: 4px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .exec-name {
    font-size: 1.35rem !important;
    margin-bottom: 2px;
  }
  .exec-role {
    font-size: 0.8rem !important;
    margin-bottom: 3px;
  }
  .exec-contact {
    font-size: 0.74rem !important;
    line-height: 1.35;
    word-break: break-word;
    gap: 1px 3px;
  }
  .exec-contact-link {
    font-size: 0.74rem;
  }
  .exec-contact-sep {
    font-size: 0.68rem;
    padding: 0 2px;
  }
  .exec-section {
    margin-bottom: 12px;
  }
  .exec-section-title {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }
  .exec-entry {
    margin-bottom: 10px;
  }
  .exec-entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin-bottom: 2px;
  }
  .exec-entry-title {
    font-size: 0.85rem;
  }
  .exec-entry-org {
    font-size: 0.8rem;
  }
  .exec-entry-date {
    font-size: 0.74rem;
    color: #6b7280;
    margin-bottom: 2px;
  }
  .exec-bullets {
    padding-left: 14px;
    font-size: 0.78rem;
    line-height: 1.38;
    gap: 2px;
  }
  .exec-skills-grid {
    font-size: 0.78rem;
    line-height: 1.38;
    gap: 3px;
  }

  /* Pane Actions Footer */
  .pane-actions-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
  }
  .pane-actions-footer .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.8rem;
    justify-content: center;
  }

  /* Pro Lock Screens */
  .pro-lock-wrapper.locked {
    max-height: 480px;
    overflow: hidden;
  }
  .pro-lock-overlay {
    padding: 16px 10px 36px;
    align-items: flex-start;
  }
  .lock-card {
    padding: 20px 14px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
  }
  .lock-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .lock-card-desc {
    font-size: 0.76rem;
    margin-bottom: 10px;
  }
  .lock-card-bullets {
    padding: 8px 10px;
    font-size: 0.74rem;
    gap: 5px;
    margin-bottom: 12px;
  }
  .lock-price-badge {
    font-size: 1.05rem;
  }
  .lock-price-sub {
    font-size: 0.72rem;
  }
  .lock-card .btn {
    padding: 11px;
    font-size: 0.88rem;
  }

  /* Interview Playbook & Outreach Items on Mobile */
  .qa-card {
    padding: 12px;
    gap: 8px;
  }
  .qa-card-header h4 {
    font-size: 0.85rem;
  }
  .qa-answer {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Modals on Mobile - Clean Sheet Style */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-card {
    padding: 18px 14px;
    max-height: 86vh;
    border-radius: 16px 16px 8px 8px;
    width: 100%;
  }
  .modal-top {
    margin-bottom: 12px;
  }
  .modal-top h3 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .pro-feature-list {
    padding: 10px 12px;
    font-size: 0.78rem;
    gap: 6px;
    margin: 10px 0 14px;
  }
  #btnInstantProCheckout {
    padding: 12px;
    font-size: 0.92rem;
  }

  /* Footer */
  .footer {
    padding: 16px 12px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 0.76rem;
  }
  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Tablet Optimizations (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .stage-container {
    padding: 0 16px;
    max-width: 100%;
  }
  .step-screen {
    padding: 24px 20px;
  }
  .input-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .formatted-resume-paper,
  .cover-paper {
    padding: 36px 36px;
    max-width: 100%;
  }
  .doc-toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .doc-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
  }
  .doc-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Trust & Privacy Architecture Section */
.trust-architecture-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  padding: 44px 20px;
  margin-top: 40px;
}

.trust-container {
  max-width: 960px;
  margin: 0 auto;
}

.trust-header {
  text-align: center;
  margin-bottom: 28px;
}

.trust-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid #a7f3d0;
}

.trust-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.trust-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.trust-card-icon {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.trust-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.trust-card-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trust-card-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}

.trust-card-list li::before {
  content: "•";
  color: #0f766e;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

.trust-card-list li strong {
  color: var(--text-main);
  font-weight: 600;
}

.trust-footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

.trust-footer-note a {
  color: #0f766e;
  text-decoration: underline;
}

/* Pro Checkout Link & Gumroad Overlay Styling Guarantee */
a.btn.btn-emerald, a.gumroad-button.btn, button.gumroad-button.btn {
  background: var(--accent-emerald) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  font-family: inherit !important;
  box-shadow: none !important;
  text-shadow: none !important;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

a.btn.btn-emerald:hover, a.gumroad-button.btn:hover, button.gumroad-button.btn:hover {
  background: var(--accent-emerald-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
