/* =========================================================
   Move Abroad Without Guesswork — styles.css
   Version 3.2 · A Pitch Black Joint LLC
   Minimal, calm, professional. Black / white / neutral tones.
   ========================================================= */

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

:root {
  --black:       #0d0d0d;
  --white:       #ffffff;
  --gray-100:    #f5f5f4;
  --gray-200:    #e8e7e5;
  --gray-300:    #d1d0cd;
  --gray-400:    #9b9893;
  --gray-500:    #6b6966;
  --gray-600:    #4a4846;
  --gray-700:    #2e2c2b;
  --accent:      #1a1a1a;
  --success:     #1c6b3a;
  --danger:      #9b1c1c;
  --warning:     #7a5c10;
  --info:        #1c3d6b;

  --badge-past-color:          #fff;
  --badge-past-bg:             var(--notice-urgent-color);
  --badge-past-border:         var(--notice-urgent-color-dark);
  --badge-today-color:         #15803d;
  --badge-today-bg:            #dcfce7;
  --badge-today-border:        #86efac;
  --badge-warning-color:       #b45309;
  --badge-warning-bg:          #fef3c7;
  --badge-warning-border:      #fcd34d;

  --badge-success-bg:          #d4edda;
  --badge-danger-bg:           #fde8e8;
  --badge-info-bg:             #ddeeff;

  --seq-urgent-bg:             #fef3c7;
  --seq-urgent-color:          #92400e;
  --seq-soon-bg:               #fef9c3;
  --seq-soon-color:            #713f12;
  --seq-ok-bg:                 #dcfce7;
  --seq-ok-color:              #15803d;

  --notice-urgent-bg:          #fee2e2;
  --notice-urgent-color:       rgb(185, 28, 28);
  --notice-urgent-color-dark:  rgb(153, 27, 27);
  --notice-today-color:        #15803d;
  --notice-warning-color:      #b45309;
  --notice-warning-bg:         #fffbeb;
  --notice-warning-border:     #b45309;
  --notice-warning-text:       #7a5c10;
  --notice-warning-accent:     #d97706;
  --notice-warning-hover:      #92400e;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.10), 0 0 0 0.5px rgba(0,0,0,0.07);
  --sidebar-w: 240px;
  --transition: 0.15s ease;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  text-decoration: none;
  display: block;
}
.sidebar-title:hover {
  opacity: 0.65;
}

.sidebar-progress-wrap {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.progress-bar-track {
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.sections-summary {
  font-size: 10.5px;
  color: var(--gray-400);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.sidebar-move-date {
  font-size: 10.5px;
  color: var(--gray-500);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.sidebar-move-date--warning {
  color: var(--notice-warning-color);
  font-weight: 600;
}

.sidebar-move-date--urgent {
  color: var(--notice-urgent-color);
  font-weight: 600;
}

.sidebar-move-date--past {
  color: var(--badge-past-border);
  font-weight: 600;
}

.sidebar-move-date__text {
  text-decoration: line-through;
}

.sidebar-move-date__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--badge-past-bg);
  border: 1px solid var(--badge-past-border);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  line-height: 1.6;
  animation: badge-past-pulse 2s ease-in-out infinite;
}

@keyframes badge-past-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-move-date__badge {
    animation: none;
  }
}

.move-date-touch-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 220px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.move-date-touch-tooltip.move-date-touch-tooltip--visible {
  opacity: 1;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  list-style: none;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 18px 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.sidebar-section-label.section-incomplete::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gray-300);
  opacity: 0.7;
  letter-spacing: 0;
  flex-shrink: 0;
}

.sidebar-section-label.section-done {
  color: #4a9e6e;
}

.sidebar-section-label.section-done::after {
  content: '✓';
  font-size: 9px;
  font-weight: 700;
  color: #4a9e6e;
  opacity: 0.85;
  letter-spacing: 0;
}

@keyframes checkmark-pop {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.85; transform: scale(1); }
}

.sidebar-section-label.section-done.section-done-animate::after {
  animation: checkmark-pop 0.35s ease-out forwards;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
  color: var(--gray-600);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
  line-height: 1.3;
}

.sidebar-nav-item:hover {
  background: var(--gray-100);
  color: var(--black);
}

.sidebar-nav-item.active {
  background: var(--black);
  color: var(--white);
  font-weight: 500;
}

.sidebar-nav-item .page-num {
  font-size: 10px;
  min-width: 18px;
  color: inherit;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.sidebar-nav-item.active .page-num {
  opacity: 0.7;
}

.sidebar-pro-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
  line-height: 1.5;
}

.sidebar-nav-item.active .sidebar-pro-badge {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.3);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--gray-200);
}

.version-badge {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

/* --- Sidebar overlay (mobile) --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}

.sidebar-overlay.visible {
  display: block;
}

/* --- Main content area --- */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top bar --- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
}

.menu-toggle svg {
  display: block;
}

.topbar-page-indicator {
  font-size: 12px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--gray-100);
  color: var(--black);
  border-color: var(--gray-400);
}

.btn-danger {
  border-color: #f5c5c5;
  color: var(--danger);
}

.btn-danger:hover {
  background: #fff1f1;
  border-color: var(--danger);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
}

/* --- Content body --- */
.content-body {
  flex: 1;
  padding: 32px 24px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

/* --- Page navigation --- */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--gray-200);
  position: sticky;
  bottom: 0;
  background: var(--white);
  z-index: 20;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

.page-nav-center {
  font-size: 12px;
  color: var(--gray-400);
}

/* =========================================================
   PAGE CARDS
   ========================================================= */

.page {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: flex;
}

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

/* --- Page header --- */
.section-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.page-sub {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 560px;
}

.divider {
  height: 1px;
  background: var(--gray-200);
  width: 100%;
  border: none;
}

/* --- Photo slot ---
   Slots are invisible when no image is present.
   Use onerror="this.closest('.photo-slot').style.display='none'"
   on every img tag so the slot vanishes cleanly when missing.
   ----------------------------------------------------------- */
.photo-slot {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  /* No background — slot disappears entirely if image fails */
  background: transparent;
  line-height: 0; /* kill any inline whitespace gap */
}

/* Cover: wide cinematic ratio */
.photo-slot-cover {
  aspect-ratio: 21 / 9;
}

/* Section header: narrower, understated */
.photo-slot-section {
  aspect-ratio: 4 / 1;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  /* Subtle desaturation keeps it documentary, not decorative */
  filter: saturate(0.88) brightness(0.97);
  transition: filter 0.3s ease;
}

/* Slightly more saturated on hover — respectful, not flashy */
.photo-slot img:hover {
  filter: saturate(1) brightness(1);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.field {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  resize: vertical;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.field:focus {
  outline: none;
  border-color: var(--gray-500);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.field::placeholder {
  color: var(--gray-300);
}

.field-textarea {
  min-height: 88px;
  line-height: 1.6;
  resize: vertical;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Grids --- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* --- Checkboxes --- */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--black);
  padding: 4px 0;
  cursor: pointer;
  line-height: 1.4;
}

.check-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: var(--black);
  cursor: pointer;
}

/* --- Radio buttons --- */
.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.radio-opt input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--black);
  cursor: pointer;
}

/* =========================================================
   TABLES
   ========================================================= */

.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbl td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--black);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr.tbl-total td {
  font-weight: 600;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.tbl-field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  background: transparent;
  font-size: 12.5px;
  color: var(--black);
  width: 100%;
  min-width: 70px;
  min-height: 28px;
  font-family: var(--font);
  padding: 4px 3px;
  transition: background var(--transition), border-color var(--transition);
}

.tbl-field:hover {
  background: rgba(0,0,0,0.025);
  border-radius: 3px;
}

.tbl-field:focus {
  outline: none;
  background: var(--gray-100);
  border-radius: 3px;
  border-bottom-color: var(--black);
  padding: 4px 6px;
}

.tbl-field::placeholder {
  color: var(--gray-300);
}

/* =========================================================
   CARDS & BLOCKS
   ========================================================= */

.card-sm {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.card-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.card-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
}

.card-val-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Section cards (numbered) */
.section-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.section-card-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-300);
  min-width: 26px;
  line-height: 1;
  padding-top: 2px;
}

.section-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.section-card-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Quote / callout block */
.callout {
  border-left: 3px solid var(--gray-300);
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* Mistake blocks */
.mistake-block {
  border-left: 2px solid var(--gray-200);
  padding: 4px 14px;
  font-size: 13px;
  color: var(--black);
  line-height: 1.65;
}

.mistake-head {
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  margin-bottom: 3px;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-info    { background: var(--badge-info-bg);    color: var(--info); }
.badge-success { background: var(--badge-success-bg); color: var(--success); }
.badge-danger  { background: var(--badge-danger-bg);  color: var(--danger); }
.badge-warning { background: var(--badge-warning-bg); color: var(--warning); }
.badge-neutral { background: var(--gray-200); color: var(--gray-600); }

/* =========================================================
   TOOL CHIPS
   ========================================================= */

.tools-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tools-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--gray-500);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.tool-chip:hover {
  border-color: var(--gray-500);
  color: var(--black);
  background: var(--gray-100);
}

.tool-chip::before {
  content: "↗";
  font-size: 10px;
  opacity: 0.6;
}

/* =========================================================
   COVER PAGE
   ========================================================= */

.cover-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 3px solid var(--black);
  padding-left: 24px;
  min-height: 420px;
}

.cover-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.cover-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.cover-subtitle {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 380px;
}

.cover-meta {
  font-size: 11.5px;
  color: var(--gray-400);
}

.cover-version {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.page-footer {
  font-size: 10.5px;
  color: var(--gray-400);
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  letter-spacing: 0.02em;
}

/* =========================================================
   SECTION COMPLETION INDICATOR
   ========================================================= */

.completion-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-400);
}

.completion-dots {
  display: flex;
  gap: 3px;
}

.completion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
}

.completion-dot.filled {
  background: var(--black);
}

/* =========================================================
   PAGE 2 — SECTION BLOCKS
   ========================================================= */

.p2-section {
  margin-bottom: 28px;
}

.p2-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.p2-section-body {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.legal-collapsed {
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-collapsed-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding: 10px 14px;
  background: var(--gray-100);
  list-style: none;
  user-select: none;
}

.legal-collapsed-summary::-webkit-details-marker { display: none; }

.legal-collapsed[open] .legal-collapsed-summary {
  border-bottom: 1px solid var(--gray-200);
}

.legal-collapsed .legal-block {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

/* =========================================================
   PATH OVERLAY FOOTER
   ========================================================= */

.path-box-footer {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* =========================================================
   LEGAL BLOCK
   ========================================================= */

.legal-block {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 4px;
}

.legal-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.legal-block p {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-block p:last-of-type {
  margin-bottom: 0;
}

.legal-block strong {
  color: var(--black);
  font-weight: 600;
}

.legal-block-footer {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 11px !important;
  color: var(--gray-400) !important;
  letter-spacing: 0.02em;
}

/* =========================================================
   COUNTRY COMPARISON GRID
   ========================================================= */

.cmp-country-names {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 6px;
  align-items: end;
  margin-bottom: 2px;
}

.cmp-country-names .cmp-spacer {
  /* empty cell to align with factor label column */
}

.cmp-country-names .field-group {
  gap: 3px;
}

/* ---- Country autocomplete dropdown ---- */
.country-ac-wrapper {
  position: relative;
}

.country-ac-list {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 300;
}

.country-ac-list.ac-open {
  display: block;
}

.country-ac-item {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary, #2c2a24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-ac-item:hover,
.country-ac-item.ac-active {
  background: var(--warm-50, #f5f2ea);
  color: var(--accent, #7c5c3a);
}

.cmp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cmp-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.cmp-factor {
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.cmp-cell {
  padding: 6px 8px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.cmp-cell:last-child {
  border-right: none;
}

.cmp-cell .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 4px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  min-height: 28px;
}

.cmp-cell .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .cmp-country-names,
  .cmp-row {
    grid-template-columns: 120px 1fr 1fr 1fr;
  }
  .cmp-factor {
    font-size: 11.5px;
    padding: 8px 8px;
  }
  /* Make cell inputs visually discoverable on touch screens */
  .cmp-cell .field {
    border-bottom: 1px solid var(--gray-200) !important;
    min-height: 26px;
    padding-bottom: 3px !important;
  }
}

/* =========================================================
   MONTHLY BUDGET TABLE
   ========================================================= */

.budget-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 90px;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.budget-row.budget-header {
  background: var(--gray-100);
}

.budget-row.budget-total {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.budget-row.budget-total .budget-cat {
  font-weight: 700;
}

.budget-col-head {
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-col-head:last-child {
  border-right: none;
}

.budget-cat {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-cell {
  padding: 5px 6px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-cell:last-child {
  border-right: none;
}

.budget-cell .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 5px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  text-align: right;
  width: 100%;
  min-height: 28px;
  font-variant-numeric: tabular-nums;
}

.budget-cell .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

@media (max-width: 520px) {
  .budget-row {
    grid-template-columns: 1fr 80px 80px 70px;
  }
  /* Make budget inputs discoverable on touch screens */
  .budget-cell .field {
    border-bottom: 1px solid var(--gray-200) !important;
    min-height: 26px;
    padding-bottom: 3px !important;
  }
}

/* =========================================================
   ADMIN TRACKER CARDS
   ========================================================= */

.admin-tracker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.admin-card:focus-within {
  border-color: var(--gray-400);
}

.admin-task-name {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.admin-fields {
  display: grid;
  grid-template-columns: 1fr 100px 110px;
  gap: 0;
}

.admin-field {
  padding: 8px 10px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-field:last-child {
  border-right: none;
}

.admin-field .field-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  white-space: nowrap;
}

.admin-field .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 3px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  min-height: 26px;
}

.admin-field .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* Editable program name input inside admin-task-name header bar */
.admin-task-name .field {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  width: 100%;
}

.admin-task-name .field::placeholder {
  color: var(--gray-300);
  font-weight: 400;
}

.admin-task-name .field:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  margin: -2px -5px;
}

/* App tracker uses Deadline-narrow / Status-flex / Decision-flex */
.app-tracker .admin-fields {
  grid-template-columns: 110px 1fr 1fr;
}

@media (max-width: 520px) {
  .admin-fields {
    grid-template-columns: 1fr;
  }
  .admin-field {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .admin-field:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   APPLICATION TRACKER CARDS
   ========================================================= */

.app-tracker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--transition);
}

.app-card:focus-within {
  border-color: var(--gray-400);
}

.app-card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-300);
  min-width: 18px;
  text-align: center;
  padding-top: 26px; /* aligns with field content, below label */
  font-variant-numeric: tabular-nums;
}

.app-card-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.app-card-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-card-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* Column size proportions */
.app-card-field-prog { flex: 3; min-width: 160px; }
.app-card-field-dead { flex: 1.2; min-width: 90px; }
.app-card-field-stat { flex: 1.4; min-width: 100px; }
.app-card-field-dec  { flex: 1.4; min-width: 100px; }

.app-card-field .field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* Compact field size inside cards */
.app-card-field .field {
  padding: 6px 8px;
  font-size: 12.5px;
}

@media (max-width: 520px) {
  .app-card-field-prog { min-width: 100%; }
  .app-card-row { gap: 6px; }
}

/* =========================================================
   MODAL / DIALOG
   ========================================================= */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.modal-body {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* --- Referral source popup --- */
.referral-modal-box {
  max-width: 360px;
  padding: 24px 24px 20px;
  position: relative;
}

.referral-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
}

.referral-modal-close:hover { color: var(--black); }

.referral-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.referral-opt {
  background: var(--gray-50, #f9f9f9);
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.referral-opt:hover {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--black);
}

.referral-thanks {
  display: none;
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin: 16px 0 4px;
}

/* --- PDF section picker modal --- */
.modal--pdf-sections {
  max-width: 520px;
}

.pdf-sections-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  height: auto;
}

.pdf-sections-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.pdf-sections-list li + li {
  border-top: 1px solid var(--gray-100);
}

.pdf-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.pdf-section-item:hover {
  background: var(--gray-50);
}

.pdf-section-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.pdf-section-label {
  font-size: 13.5px;
  color: var(--gray-700);
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 300px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.has-action {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.toast-action-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toast-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.toast.has-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  flex-wrap: wrap;
}

/* =========================================================
   PDF PROGRESS OVERLAY
   ========================================================= */

.pdf-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.pdf-progress-overlay.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pdf-progress-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.pdf-progress-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.pdf-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pdf-progress-counter {
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-cancel-btn {
  flex-shrink: 0;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdf-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   UTILITY
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-muted { color: var(--gray-500); }
.text-sm    { font-size: 11.5px; }
.mt-sm      { margin-top: 6px; }
.mt-md      { margin-top: 12px; }

.sub-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  margin-top: 10px;
}

/* =========================================================
   FUNDED PATHWAYS GUIDE — Page 6 (v3.5.2)
   ========================================================= */

.fpath-guide {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

/* Fixed-position items always float to top/bottom */
.fpath-guide-title  { order: 0; }
.fpath-intro        { order: 1; }
.fpath-readiness    { order: 90; }
.fpath-timeline-wrap{ order: 91; }

/* Default / study / exploring order: scholarships → teach → WHV → employer */
#fpath-scholarships { order: 10; }
#fpath-teach        { order: 20; }
#fpath-whv          { order: 30; }
#fpath-employer     { order: 40; }

/* Work path: employer → teach → WHV → scholarships */
body.path-work #fpath-employer     { order: 10; }
body.path-work #fpath-teach        { order: 20; }
body.path-work #fpath-whv          { order: 30; }
body.path-work #fpath-scholarships { order: 40; }

/* Remote path: WHV → employer → scholarships → teach */
body.path-remote #fpath-whv          { order: 10; }
body.path-remote #fpath-employer     { order: 20; }
body.path-remote #fpath-scholarships { order: 30; }
body.path-remote #fpath-teach        { order: 40; }

.fpath-guide-title {
  margin-top: 0;
  margin-bottom: 8px;
}

.fpath-intro {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.fpath-card {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.fpath-card-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--gray-100);
}

.fpath-card-summary::-webkit-details-marker { display: none; }

.fpath-card-summary::after {
  content: '+';
  margin-left: auto;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-500);
  flex-shrink: 0;
}

.fpath-card[open] .fpath-card-summary::after {
  content: '−';
}

.fpath-card[open] .fpath-card-summary {
  border-bottom: 1px solid var(--gray-200);
}

.fpath-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fpath-body {
  padding: 14px;
}

.fpath-note {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 12px;
  margin-top: 0;
}

.fpath-callout {
  border-left: 3px solid var(--ink);
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
  background: var(--gray-100);
  margin-top: 12px;
}

.fpath-readiness {
  margin-top: 20px;
}

.fpath-timeline-wrap {
  margin-top: 20px;
}

.fpath-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--gray-300);
  margin-left: 8px;
  margin-top: 10px;
}

.fpath-tl-item {
  position: relative;
  padding: 4px 0 16px 20px;
}

.fpath-tl-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
}

.fpath-tl-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.fpath-tl-body {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar {
    padding: 10px 16px;
  }

  .content-body {
    padding: 20px 16px;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .grid3 {
    grid-template-columns: 1fr 1fr;
  }

  .cover-title {
    font-size: 28px;
  }

  .topbar-actions .btn span {
    display: none;
  }

  .page-title {
    font-size: 19px;
  }
}

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

  .topbar-actions {
    gap: 4px;
  }

  .btn {
    padding: 6px 9px;
  }
}

/* =========================================================
   MILESTONE MESSAGE
   ========================================================= */

@keyframes milestone-slide-in {
  0%   { opacity: 0; transform: translateY(-10px); }
  55%  { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes milestone-slide-out {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.milestone-msg {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.45;
  margin-top: 8px;
  padding: 6px 8px;
  background: transparent;
  border-left: 2px solid var(--gray-700);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.milestone-msg-text {
  flex: 1;
}

.milestone-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 2px;
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.milestone-close:hover {
  opacity: 1;
  color: var(--gray-400);
}

.milestone-msg.visible {
  opacity: 1;
  max-height: 60px;
  animation: milestone-slide-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
  cursor: grab;
}

.milestone-msg.fade-out {
  animation: milestone-slide-out 0.35s ease-in forwards;
}

.milestone-msg.dragging {
  animation: none;
  transition: none;
  will-change: transform, opacity;
  cursor: grabbing;
}

/* Applied to document.body while a banner is being mouse-dragged so that
   moving over child elements cannot revert the cursor to its default. */
.banner-dragging * {
  cursor: grabbing !important;
}

.milestone-msg.snapping {
  animation: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* =========================================================
   SAVE STATUS INDICATOR
   ========================================================= */

.save-status {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.01em;
  padding-left: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.save-status.visible {
  opacity: 1;
}

.save-status.saving {
  color: var(--gray-400);
}

.save-status.saved {
  color: var(--gray-400);
}

/* =========================================================
   MOBILE: icon-only toolbar on small screens
   ========================================================= */

@media (max-width: 480px) {
  /* Feedback/reset modal: scroll if keyboard pushes content out of view */
  .modal {
    max-height: 85vh;
    overflow-y: auto;
  }

  .topbar-actions .btn span {
    display: none;
  }

  .topbar-actions .btn {
    padding: 6px 8px;
    gap: 0;
    min-width: 34px;
    justify-content: center;
  }

  .topbar-actions .btn svg {
    width: 15px;
    height: 15px;
  }

  .save-status {
    display: none; /* too cramped on very small screens */
  }
}

/* =========================================================
   PDF EXPORT MODE (applied during client-side html2canvas capture)
   ========================================================= */

body.pdf-export-mode .sidebar,
body.pdf-export-mode .topbar,
body.pdf-export-mode .page-nav,
body.pdf-export-mode .sidebar-overlay,
body.pdf-export-mode .toast,
body.pdf-export-mode .save-status,
body.pdf-export-mode .milestone-msg,
body.pdf-export-mode .skip-link,
body.pdf-export-mode .tools-section,
body.pdf-export-mode .feedback-prompt,
body.pdf-export-mode .session-nudge,
body.pdf-export-mode .fpath-guide,

body.pdf-export-mode .path-overlay,
body.pdf-export-mode .mode-note,
body.pdf-export-mode .premium-card,
body.pdf-export-mode .custom-add-row,
body.pdf-export-mode .custom-item-del,
body.pdf-export-mode .upgrade-nudge,
body.pdf-export-mode .mid-flow-nudge,
body.pdf-export-mode .premium-teaser,
body.pdf-export-mode .missed-items-unlock,
body.pdf-export-mode .change-path-controls,
body.pdf-export-mode .mode-panel,
body.pdf-export-mode .sidebar-currency-wrap {
  display: none !important;
}

body.pdf-export-mode .page {
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 24px 28px !important;
  gap: 14px !important;
  min-height: 0 !important;
  max-width: 700px !important;
  background: #ffffff !important;
}

body.pdf-export-mode .page-footer {
  display: block !important;
  font-size: 9px !important;
  color: #aaa !important;
  padding-top: 8px;
  border-top: 0.5px solid #e0e0e0;
}

body.pdf-export-mode .field {
  border: 1px solid #ccc !important;
  background: transparent !important;
  padding: 3px 5px !important;
}

/* =========================================================
   PRINT / PDF EXPORT
   ========================================================= */

@media print {

  /* ---- Page setup ---- */
  @page {
    size: A4 portrait;
    margin: 1.8cm 1.5cm 1.4cm 1.5cm;
  }

  /* ---- Global resets ---- */
  *, *::before, *::after {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html, body {
    background: #fff !important;
    font-size: 11pt;
    color: #000;
    overflow: visible !important;
  }

  /* ---- Remove link URL artifacts ---- */
  a[href]::after {
    content: none !important;
  }

  /* ---- Hide all UI chrome ---- */
  .sidebar,
  .sidebar-overlay,
  .topbar,
  .page-nav,
  .modal-backdrop,
  .toast,
  .save-status,
  .milestone-msg,
  .skip-link,
  .tools-section,
  .feedback-prompt,

  .path-overlay,
  .mode-note,
  .premium-card,
  .custom-add-row,
  .custom-item-del,
  .upgrade-nudge,
  .mid-flow-nudge,
  .missed-items-unlock,
  .change-path-controls,
  .sidebar-currency-wrap,
  #import-file-input {
    display: none !important;
  }

  /* Show abroad-only content in print for abroad-stage users */
  body.stage-abroad .moved-only,
  body.stage-abroad .abroad-only {
    display: block !important;
  }

  /* Hide planning-only content in print for abroad-stage users */
  body.stage-abroad .planning-only {
    display: none !important;
  }

  /* ---- Reset app shell layout ---- */
  .app-shell {
    display: block !important;
    width: 100% !important;
  }

  .main-area {
    margin-left: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .content-body {
    padding: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* ---- Pages: all visible, one per printed page ---- */
  .page {
    display: flex !important;
    flex-direction: column !important;
    break-after: page;
    page-break-after: always;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14pt !important;
    min-height: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  .page:last-child {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* ---- Cover ---- */
  .cover-wrap {
    padding-top: 16pt;
  }

  .cover-title {
    font-size: 26pt;
    line-height: 1.1;
  }

  .cover-subtitle {
    font-size: 11pt;
  }

  /* ---- Section tags, headings ---- */
  .section-tag {
    font-size: 8pt;
  }

  .page-title {
    font-size: 18pt;
  }

  .page-sub {
    font-size: 10.5pt;
  }

  /* ---- Page footer ---- */
  .page-footer {
    display: block !important;
    font-size: 7.5pt !important;
    color: #aaa !important;
    margin-top: auto;
    padding-top: 8pt;
    border-top: 0.5pt solid #e0e0e0;
  }

  /* ---- Standard fields ---- */
  .field {
    border: 0.5pt solid #bbb !important;
    background: transparent !important;
    padding: 3pt 5pt !important;
    font-size: 10pt !important;
    border-radius: 2pt !important;
  }

  /* ---- Admin card / app tracker print ---- */
  .admin-card {
    break-inside: avoid;
    border: 0.5pt solid #ccc !important;
  }

  .admin-task-name {
    background: #f5f5f5 !important;
    border-bottom: 0.5pt solid #ccc !important;
    padding: 6pt 10pt !important;
  }

  /* Program name input inside header — strip border for print */
  .admin-task-name .field {
    border: none !important;
    padding: 0 !important;
    font-weight: 600;
    font-size: 10.5pt !important;
    background: transparent !important;
  }

  .admin-fields {
    display: grid !important;
  }

  .admin-field {
    padding: 6pt 8pt !important;
  }

  .admin-field .field {
    border: none !important;
    border-bottom: 0.5pt solid #ccc !important;
    border-radius: 0 !important;
    padding: 2pt 0 !important;
    background: transparent !important;
    font-size: 10pt !important;
  }

  /* ---- Budget table print ---- */
  .budget-table {
    border: 0.5pt solid #ccc !important;
    break-inside: avoid;
  }

  .budget-row {
    border-bottom: 0.5pt solid #ccc !important;
  }

  .budget-row.budget-header,
  .budget-row.budget-total {
    background: #f5f5f5 !important;
  }

  .budget-cell {
    border-right: 0.5pt solid #ccc !important;
    padding: 4pt 6pt !important;
  }

  .budget-cell .field {
    border: none !important;
    background: transparent !important;
    font-size: 10pt !important;
    padding: 0 !important;
  }

  /* ---- Country comparison print ---- */
  .cmp-table {
    border: 0.5pt solid #ccc !important;
    break-inside: avoid;
  }

  .cmp-row {
    border-bottom: 0.5pt solid #ccc !important;
  }

  .cmp-factor {
    background: #f5f5f5 !important;
    border-right: 0.5pt solid #ccc !important;
    font-size: 10pt !important;
    padding: 5pt 8pt !important;
  }

  .cmp-cell {
    border-right: 0.5pt solid #ccc !important;
    padding: 4pt 6pt !important;
  }

  .cmp-cell .field {
    border: none !important;
    background: transparent !important;
    font-size: 10pt !important;
    padding: 0 !important;
  }

  .cmp-country-names .field {
    font-size: 10pt !important;
  }

  /* ---- Keep short blocks together ---- */
  .field-group,
  .check-row,
  .callout,
  .legal-block,
  .section-card,
  .badges-row {
    break-inside: avoid;
  }

  /* ---- Photo slots ---- */
  .photo-slot {
    break-inside: avoid;
    height: 140pt;          /* explicit height so child img has a reference */
    max-height: 140pt;
    overflow: hidden;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    aspect-ratio: unset !important; /* let the fixed height define the box in print */
  }

  .photo-slot-cover {
    height: 160pt;
    max-height: 160pt;
  }

  .photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    filter: none !important; /* remove saturate/brightness — some renderers skip filtered images */
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Checkboxes / radios: exact color ---- */
  .check-row input[type="checkbox"],
  .radio-opt input[type="radio"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Legacy tbl classes ---- */
  .tbl-wrap {
    overflow: visible !important;
  }

  .tbl-field {
    border-bottom: 0.5pt solid #ccc !important;
    background: transparent !important;
    font-size: 10pt !important;
  }

  /* ---- Badges ---- */
  .badge {
    border: 0.5pt solid #999 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Grid layouts ---- */
  .grid2 {
    display: grid !important;
  }
}

/* =========================================================
   FEEDBACK PROMPTS
   ========================================================= */

.feedback-prompt {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.feedback-prompt-final {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: none;
  margin-top: 24px;
}

.feedback-prompt-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.feedback-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font);
  transition: color var(--transition);
}

.feedback-link:hover {
  color: var(--black);
}

/* =========================================================
   FLOATING FEEDBACK BUTTON
   ========================================================= */

/* Sidebar feedback link (desktop — inside fixed sidebar, zero obstruction) */
.sidebar-feedback-link {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.sidebar-feedback-link:hover { color: var(--black); }

.sidebar-unlock-link {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600, #555);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.sidebar-unlock-link:hover { color: var(--black); }
body.premium .sidebar-unlock-link { display: none; }

/* Premium badge and hint */
.premium-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.4;
}

.premium-hint {
  font-size: 11.5px;
  color: var(--gray-400);
  border-left: 2px solid var(--gray-200);
  padding: 6px 10px;
  margin-top: 10px;
  line-height: 1.5;
}

.premium-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================================
   PATH SELECTION OVERLAY
   ========================================================= */

.path-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.path-overlay.visible {
  display: flex;
}

.path-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.path-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 5px;
}

.path-box-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.path-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.path-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.12s, background 0.12s;
}

.path-option:hover,
.path-option.selected {
  border-color: var(--black);
  background: var(--gray-100);
}

.path-option-title {
  display: block;
  font-weight: 600;
}

.path-option-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 3px;
  line-height: 1.4;
}

.path-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: var(--font);
}

.path-skip:hover { color: var(--gray-600); }

.path-step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.path-step-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.path-step-time {
  font-size: 11px;
  color: var(--gray-400);
}

.path-indicator {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 0.01em;
}

/* =========================================================
   JOURNEY STAGE — MOVED-ONLY / MODE VISIBILITY
   =========================================================
   .moved-only   — hidden by default; shown when body.stage-moved
   .mode-note    — contextual banner shown on planning-heavy pages
                   in moved mode
   ========================================================= */

.moved-only,
.abroad-only {
  display: none;
}

body.stage-abroad .moved-only,
body.stage-abroad .abroad-only {
  display: block;
}

/* Some abroad-only blocks need flex */
body.stage-abroad .moved-only.moved-flex,
body.stage-abroad .abroad-only.abroad-flex {
  display: flex;
}

/* planning-only: visible by default, hidden when abroad */
.planning-only {
  display: block;
}

body.stage-abroad .planning-only {
  display: none;
}

/* =========================================================
   STAGE-WORK — employer relocation track
   ========================================================= */

/* stage-work-only: hidden by default, shown when body.stage-work */
.stage-work-only {
  display: none;
}
body.stage-work .stage-work-only {
  display: block;
}

/* stage-planning-show / stage-exploring-show: visible by default,
   hidden when body.stage-work or body.stage-abroad */
body.stage-work .stage-planning-show,
body.stage-work .stage-exploring-show,
body.stage-abroad .stage-planning-show,
body.stage-abroad .stage-exploring-show {
  display: none;
}

/* Hide pure-decision content for work users (pages 1–5 items tagged stage-decision-only) */
body.stage-work .stage-decision-only {
  display: none;
}

/* Sidebar legal links */
.sidebar-legal-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 10px;
}
.sidebar-legal-link {
  color: var(--gray-400);
  text-decoration: none;
}
.sidebar-legal-link:hover {
  color: var(--gray-600);
  text-decoration: underline;
}
.sidebar-legal-sep {
  color: var(--gray-300);
}

.mode-note {
  background: var(--gray-100);
  border-left: 3px solid var(--gray-300);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =========================================================
   PREMIUM CARD
   ========================================================= */

.premium-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0 20px;
}

.premium-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.premium-card-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.45;
}

.premium-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.premium-col-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 9px;
}

.premium-col-paid .premium-col-label {
  color: var(--black);
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.premium-list li {
  font-size: 12.5px;
  color: var(--gray-500);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}

.premium-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

.premium-col-paid .premium-list li {
  color: var(--black);
}

.premium-col-paid .premium-list li::before {
  color: var(--black);
}

.premium-cta {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 15px;
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.15s;
}

.premium-cta:hover { opacity: 0.78; }

.premium-checkout {
  border-top: 1px solid var(--gray-200);
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.premium-price-freq {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
  text-transform: lowercase;
  letter-spacing: 0;
}

.premium-reassurance {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

/* =========================================================
   CUSTOM CHECKLIST ITEMS
   ========================================================= */

.custom-checklist-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.custom-checklist-note {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-style: italic;
}

.custom-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.custom-item-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  color: var(--black);
}

.custom-item-del {
  background: none;
  border: none;
  color: var(--gray-300);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: color 0.12s;
}

.custom-item-del:hover { color: #c0392b; }

.custom-add-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.custom-add-input {
  flex: 1;
  font-size: 13.5px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  background: var(--white);
  color: var(--black);
  min-width: 0;
  font-family: var(--font);
}

.custom-add-input:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

.custom-add-btn {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--black);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.custom-add-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

@media (max-width: 520px) {
  .premium-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {

  /* ---- iOS auto-zoom prevention ----
     iOS Safari zooms the page when focusing any input with font-size < 16px.
     Setting 16px on mobile prevents the zoom without disabling user pinch-zoom. */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
  .feedback-prompt-final {
    padding: 14px;
  }
}

/* =========================================================
   INSIGHT PROMPTS (V1.5)
   Calm, factual, inline. Human tone, not alarmist.
   ========================================================= */

.insight-prompt {
  border-left: 3px solid var(--gray-300);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
  background: transparent;
}

.insight-prompt strong {
  color: var(--gray-600);
  font-weight: 600;
}

/* =========================================================
   PAST DATE NOTICE — move date picker (page-9)
   Mirrors the sidebar's bold red + Passed badge style.
   ========================================================= */

.p9-past-date-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--gray-400);
  font-size: 11px;
}

.p9-past-date-notice__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--badge-past-color);
  background: var(--badge-past-bg);
  border: 1px solid var(--badge-past-border);
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1.6;
  flex-shrink: 0;
  animation: badge-past-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .p9-past-date-notice__badge {
    animation: none;
  }
}

.p9-past-date-notice__text {
  color: var(--gray-400);
  text-decoration: line-through;
}

body.pdf-export-mode .p9-past-date-notice {
  display: none;
}

.p9-past-date-notice--urgent {
  color: var(--notice-urgent-color);
}
.p9-past-date-notice--urgent .p9-past-date-notice__text {
  color: var(--notice-urgent-color);
  text-decoration: none;
}

.p9-past-date-notice--today {
  color: var(--notice-today-color);
}
.p9-past-date-notice--today .p9-past-date-notice__badge {
  color: var(--badge-today-color);
  background: var(--badge-today-bg);
  border-color: var(--badge-today-border);
}
.p9-past-date-notice--today .p9-past-date-notice__text {
  color: var(--notice-today-color);
  text-decoration: none;
  font-weight: 600;
}

.p9-past-date-notice--warning {
  color: var(--notice-warning-color);
}
.p9-past-date-notice--warning .p9-past-date-notice__badge {
  color: var(--badge-warning-color);
  background: var(--badge-warning-bg);
  border-color: var(--badge-warning-border);
}
.p9-past-date-notice--warning .p9-past-date-notice__text {
  color: var(--notice-warning-color);
  text-decoration: none;
}

/* =========================================================
   OVERDUE WARNING — Timeline Planner (page-8)
   Subtle inline warning. Non-blocking, low visual weight.
   ========================================================= */

.overdue-banner {
  border-left: 3px solid var(--notice-warning-border);
  background: var(--notice-warning-bg);
  color: var(--notice-warning-text);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 9px 13px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.tbl-row--overdue td:first-child {
  color: var(--notice-warning-color);
  font-weight: 600;
}

.tbl-row--overdue td:first-child::after {
  content: ' ·';
  color: var(--notice-warning-color);
  font-weight: 400;
  opacity: 0.6;
}

.tbl-row--overdue {
  background: var(--notice-warning-bg);
}

body.pdf-export-mode .overdue-banner {
  display: none;
}

body.pdf-export-mode .tbl-row--overdue {
  background: transparent;
}

body.pdf-export-mode .tbl-row--overdue td:first-child {
  color: inherit;
  font-weight: inherit;
}

body.pdf-export-mode .tbl-row--overdue td:first-child::after {
  content: none;
}

.warning-dismiss-wrap {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.warning-dismiss-btn,
.warning-snooze-btn {
  font-size: 11px;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--notice-warning-accent);
  background: transparent;
  color: var(--notice-warning-color);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.warning-dismiss-btn:hover,
.warning-snooze-btn:hover {
  background: var(--notice-warning-accent);
  color: #fff;
}

body.pdf-export-mode .warning-dismiss-wrap {
  display: none;
}

.overdue-reset-link {
  font-size: 12px;
  color: #78716c;
  margin: 0 0 10px 0;
}

.overdue-reset-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--notice-warning-color);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.overdue-reset-btn:hover {
  color: var(--notice-warning-hover);
}

/* =========================================================
   UPGRADE NUDGE (V1.5)
   Contextual, inline, non-blocking. No popups, no pressure.
   ========================================================= */

.upgrade-nudge {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--white);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.upgrade-nudge-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--gray-700, #444);
  line-height: 1.6;
  min-width: 200px;
}

.upgrade-nudge-text strong {
  color: var(--black);
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  font-weight: 700;
}

.upgrade-nudge-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--white, #fff);
  text-decoration: none;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--black, #111);
  white-space: nowrap;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
}

.upgrade-nudge-link:hover {
  opacity: 0.82;
  background: var(--black, #111);
}

/* ── PREMIUM TEASER (blurred inline preview, Vercel-style) ── */
.premium-teaser {
  position: relative;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  min-height: 116px;
  background: var(--gray-100);
  padding: 14px 16px 48px;
}
.premium-teaser-inner {
  filter: blur(3.5px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}
.premium-teaser-row {
  height: 11px;
  background: var(--gray-300);
  border-radius: 3px;
  margin-bottom: 9px;
}
.premium-teaser-row.w-full { width: 100%; }
.premium-teaser-row.w-85   { width: 85%; }
.premium-teaser-row.w-70   { width: 70%; }
.premium-teaser-row.w-55   { width: 55%; }
.premium-teaser-row.w-40   { width: 40%; }
.premium-teaser-row.sm     { height: 8px; }
.premium-teaser-slab {
  height: 44px;
  background: var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.premium-teaser-gap { height: 12px; }
.premium-teaser-fade {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gray-100));
  pointer-events: none;
}
.premium-teaser-action {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}
.premium-teaser-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 20px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.premium-teaser-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

/* =========================================================
   CHANGE PATH CONTROL (V1.5)
   ========================================================= */

/* Mode panel — replaces old change-path-controls */
.mode-panel {
  display: none;
  margin-top: 10px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px 10px;
  gap: 5px;
  flex-direction: column;
}
.mode-panel.visible {
  display: flex;
}
.mode-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}
.mode-row-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  width: 36px;
  flex-shrink: 0;
}
.mode-row-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-row-change {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--gray-600, #555);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font);
  flex-shrink: 0;
}
.mode-row-change:hover { color: var(--black); }

/* Keep old names as aliases for any legacy references */
.change-path-controls { display: none; }
.change-path-btn { display: none; }

/* =========================================================
   ABROAD MODE OVERHAUL PROMPTS (V1.5)
   ========================================================= */

.abroad-focus-prompt {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 4px;
}

.abroad-focus-prompt-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.abroad-focus-prompt-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 5px;
  line-height: 1.4;
}

.abroad-focus-prompt .field {
  margin-top: 2px;
}

/* abroad-dashboard — Page 1 quick-start for abroad users */
.abroad-dashboard {
  margin-bottom: 24px;
}

.abroad-dashboard-intro {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.abroad-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .abroad-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.abroad-dashboard-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-family: var(--font);
}

.abroad-dashboard-card:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

.abroad-dashboard-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.abroad-dashboard-card-sub {
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* insight-prompt variant for abroad sections — slightly softer */
.abroad-insight {
  border-left: 3px solid var(--gray-300);
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* =========================================================
   MISSED ITEMS SECTION (Page 8 — premium deeper layer)
   ========================================================= */

.missed-items-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.missed-items-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.missed-items-note {
  font-size: 12.5px;
  color: var(--gray-400);
  margin: 0 0 14px;
  font-style: italic;
  line-height: 1.45;
}

.missed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 13px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--gray-400);
  pointer-events: none;
  user-select: none;
  line-height: 1.45;
}

.missed-item-lock {
  font-size: 11px;
  flex-shrink: 0;
  color: var(--gray-300);
  margin-top: 1px;
}

.missed-items-unlock {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.missed-items-unlock a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Path-specific visibility — default: all show (no path selected) */
body.path-study .missed-item.work-only,
body.path-study .missed-item.remote-only  { display: none; }

body.path-work .missed-item.study-only,
body.path-work .missed-item.remote-only   { display: none; }

body.path-remote .missed-item.study-only,
body.path-remote .missed-item.work-only   { display: none; }

body.path-exploring .missed-item.study-only,
body.path-exploring .missed-item.work-only,
body.path-exploring .missed-item.remote-only { display: none; }

/* =========================================================
   MID-FLOW NUDGE (Page 13 — subtle upgrade prompt)
   ========================================================= */

.mid-flow-nudge {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.mid-flow-nudge-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.mid-flow-nudge-link:hover { opacity: 0.65; }

/* Trust line inside nudge blocks */
.nudge-trust-line {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  margin: 8px 0 6px;
}

/* "Already paid?" — more visible secondary button */
.nudge-already-paid {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.nudge-already-paid:hover { color: var(--black); }

/* =========================================================
   SKIP NOTE (inline reassurance on heavy pages)
   ========================================================= */

.skip-note {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* =========================================================
   PRIVACY FIRST NOTE (Page 2)
   ========================================================= */

.privacy-first {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-left: 3px solid var(--black);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.45;
}

/* =========================================================
   COUNTRY GUIDANCE PANEL (Page 4 — Country comparison)
   ========================================================= */

.country-guidance-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 8px;
}

.country-guidance-intro {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.country-guidance-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.country-guidance-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.country-guidance-row {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 5px;
  line-height: 1.5;
}

.country-guidance-label {
  font-weight: 600;
  color: var(--black);
  min-width: 90px;
  flex-shrink: 0;
}

.country-guidance-pitfall .country-guidance-label {
  color: var(--warning);
}

/* Path-specific note row — highlighted in blue-tint */
.country-guidance-path-note {
  background: #f0f4ff;
  border-radius: 5px;
  padding: 5px 8px;
  margin: 2px 0;
}
.country-guidance-path-note .country-guidance-label {
  color: #3b5bdb;
}

/* LGBT+ safety warning rows */
.lgbtq-warn {
  border-radius: 5px;
  padding: 5px 8px;
  margin: 2px 0 6px;
}
.lgbtq-criminalised {
  background: #fff0f0;
  border-left: 3px solid #c92a2a;
}
.lgbtq-criminalised .country-guidance-label {
  color: #c92a2a;
  font-weight: 600;
}
.lgbtq-caution {
  background: #fff8e7;
  border-left: 3px solid #e67700;
}
.lgbtq-caution .country-guidance-label {
  color: #e67700;
  font-weight: 600;
}

.country-guidance-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.country-guidance-link:hover { opacity: 0.65; }

/* =========================================================
   NEXT STEPS PANEL — personalized summary (Page 8)
   ========================================================= */

.next-steps-panel {
  margin: 24px 0 8px;
}

.next-steps-panel:empty {
  display: none;
}

.next-steps-header {
  margin-bottom: 12px;
}

.next-steps-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.next-steps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.next-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.next-steps-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.next-steps-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.next-steps-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.next-steps-check-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.next-steps-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--black);
  flex-shrink: 0;
}

.next-steps-item--done {
  border-left-color: var(--gray-300);
  opacity: 0.6;
}

.next-steps-item--done .next-steps-text {
  text-decoration: line-through;
  color: var(--gray-400);
}

.next-steps-item--done .next-steps-num {
  background: var(--gray-300);
}

.next-steps-pitfall {
  font-size: 12.5px;
  color: var(--warning);
  background: #fffbf0;
  border: 1px solid #e8d98a;
  border-radius: var(--radius-md);
  padding: 9px 13px;
  line-height: 1.5;
}

.next-steps-pitfall-label {
  font-weight: 700;
  margin-right: 6px;
}

/* =========================================================
   PATH-SPECIFIC DOCUMENT CHECKLIST SECTIONS (Page 8)
   ========================================================= */

.path-doc-section {
  display: none;
}

body.path-study  .path-doc-section.study-doc-section  { display: block; }
body.path-work   .path-doc-section.work-doc-section   { display: block; }
body.path-remote .path-doc-section.remote-doc-section { display: block; }

/* =========================================================
   PAGE 6 — PATH-SPECIFIC BLOCKS (Pathway decision)
   ========================================================= */
.p6-path-block {
  display: none;
}

body.path-study     .p6-study     { display: block; }
body.path-work      .p6-work      { display: block; }
body.path-remote    .p6-remote    { display: block; }
body.path-exploring .p6-exploring { display: block; }

/* No path chosen yet — show exploring block as fallback */
body:not(.path-study):not(.path-work):not(.path-remote):not(.path-exploring) .p6-exploring {
  display: block;
}

.p6-path-intro {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0 0 20px;
}

.p6-closing-prompt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.p6-closing-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--black) !important;
}

/* =========================================================
   COST COUNTRY REFERENCE NOTE (Page 10 — Full cost breakdown)
   ========================================================= */

.cost-country-note {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 4px;
}

.cost-country-note strong {
  color: var(--black);
  font-weight: 600;
}

/* =========================================================
   EXPLORING PATH — doc section hint (V1.7)
   ========================================================= */

.exploring-doc-hint {
  display: none;
  font-size: 12.5px;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 2px solid var(--gray-200);
}

/* Show only when no specific path is active */
body:not(.path-study):not(.path-work):not(.path-remote) .exploring-doc-hint {
  display: block;
}

/* =========================================================
   COUNTRY GUIDANCE HINT TEXT (V1.7)
   ========================================================= */

.field-hint-subtle {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0 0 12px;
  line-height: 1.45;
}

/* =========================================================
   WIDE TABLE — HORIZONTAL SCROLL ON MOBILE (V1.7)
   ========================================================= */

.tbl--wide {
  min-width: 460px;
}

/* =========================================================
   MOBILE: MAKE TBL-FIELD INPUTS VISUALLY DISCOVERABLE (V1.7)
   ========================================================= */

@media (max-width: 600px) {
  .tbl-field {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 3px;
    min-height: 26px;
  }

  /* Ensure wide tables scroll instead of squishing */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   v2.0 additions
   ========================================================= */

/* T1 / T8: Cover page additions */
.cover-wazowork-note {
  font-size: 11px;
  color: var(--gray-400);
  margin: 4px 0 10px;
  letter-spacing: .01em;
}

.cover-usage-count {
  font-size: 12px;
  color: var(--gray-400);
  margin: 4px 0 8px;
}

/* T1: Sidebar WazoWork note */
.sidebar-wazowork-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
  line-height: 1.4;
  opacity: .7;
}

/* T9: Locked preview elements */
.locked-preview-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  opacity: .5;
  position: relative;
  user-select: none;
}

.locked-preview-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.locked-preview-content {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
}

.locked-insight {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-400);
  opacity: .6;
  user-select: none;
}

.locked-blur {
  background: var(--gray-300);
  color: transparent;
  border-radius: 2px;
  padding: 0 4px;
  user-select: none;
}

.locked-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  opacity: .45;
  user-select: none;
}

.locked-checklist-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
}

/* T2: Visa check + T4 Housing lookup */
.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gray-700, #333);
  margin: 0 0 10px;
}

.visa-check-section,
.housing-lookup-section {
  margin-bottom: 4px;
}

.visa-check-inputs {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 12px 0;
}

.visa-check-result {
  margin-top: 12px;
}

.visa-result-card {
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.visa-result-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--gray-100);
}

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

.visa-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  min-width: 130px;
  flex-shrink: 0;
}

.visa-result-val {
  font-size: 13px;
  color: var(--gray-800, #222);
  flex: 1;
}

.visa-result-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  padding: 8px 14px;
  background: var(--gray-50, #fafafa);
  border-top: 1px solid var(--gray-100);
  font-style: italic;
}

.visa-result-unknown {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0;
  font-style: italic;
}

.visa-result-unknown a {
  color: var(--gray-700, #333);
}

/* T3: Readiness score */
.readiness-section {
  padding: 4px 0 8px;
}

.readiness-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 10px 0 8px;
}

.readiness-score-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gray-900, #111);
  line-height: 1;
}

.readiness-score-denom {
  font-size: 20px;
  color: var(--gray-400);
  font-weight: 400;
}

.readiness-score-msg {
  font-size: 14px;
  color: var(--gray-600, #555);
  line-height: 1.5;
  max-width: 480px;
}

/* T5: Micro-feedback */
.micro-feedback {
  padding: 12px 0 4px;
  border-top: 1px solid var(--gray-100);
  margin-top: 24px;
}

.mf-ask {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mf-label {
  font-size: 12px;
  color: var(--gray-500);
}

.mf-btn {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--gray-300, #ccc);
  background: none;
  border-radius: 3px;
  cursor: pointer;
  color: var(--gray-600, #555);
  transition: border-color .15s, color .15s;
}

.mf-btn:hover {
  border-color: var(--gray-500);
  color: var(--gray-900, #111);
}

.mf-followup {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mf-input {
  flex: 1;
  min-width: 180px;
  font-size: 13px !important;
}

.mf-followup-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mf-send-btn {
  font-size: 12px !important;
  padding: 5px 12px !important;
}

.mf-skip-btn {
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  text-decoration: underline;
}

.mf-skip-btn:hover {
  color: var(--gray-600, #555);
}

.mf-thanks {
  font-size: 12px;
  color: var(--gray-400);
  padding: 6px 0;
  font-style: italic;
}

/* Inline feedback forms (replaces static Google Form links) */
.feedback-inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fi-input {
  font-size: 13px !important;
  resize: vertical;
  min-height: 52px;
  line-height: 1.5;
}
.fi-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fi-send {
  font-size: 12px !important;
  padding: 5px 14px !important;
}
.fi-thanks {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
}

/* T6: Email capture */
.email-capture-block {
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 16px;
  margin: 20px 0;
  background: var(--gray-50, #fafafa);
}

.email-capture-label {
  font-size: 13px;
  color: var(--gray-700, #333);
  margin-bottom: 10px;
  font-weight: 500;
}

.email-capture-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.email-capture-input {
  flex: 1;
  min-width: 180px;
}

.email-capture-thanks {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
  padding: 4px 0;
}

.email-capture-privacy {
  font-size: 11px;
  color: var(--gray-400);
  padding: 4px 0 2px;
  line-height: 1.4;
}

.email-capture-dismiss {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--gray-400);
  padding: 6px 0 0;
  text-decoration: underline;
  text-align: left;
}

.email-capture-dismiss:hover {
  color: var(--gray-600, #555);
}

/* Mobile adjustments for new elements */
@media (max-width: 767px) {
  .visa-check-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .visa-check-inputs .field-group {
    width: 100%;
  }

  .visa-check-inputs .btn {
    width: 100%;
  }

  .visa-result-label {
    min-width: 100px;
  }

  .readiness-score-num {
    font-size: 40px;
  }

  .email-capture-row {
    flex-direction: column;
    align-items: stretch;
  }

  .email-capture-input,
  #email-capture-submit {
    width: 100%;
  }

  .mf-followup {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-input {
    width: 100%;
  }
}

/* =========================================================
   v2.1 fixes
   ========================================================= */

/* Visa disclaimer banner */
.visa-warning-banner {
  font-size: 12px;
  color: var(--gray-700, #333);
  background: var(--gray-100, #f5f5f5);
  border-left: 3px solid var(--gray-400, #999);
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
  border-radius: 0 3px 3px 0;
}

/* Backup reminder on page 2 */
.backup-reminder-banner {
  font-size: 13px;
  color: var(--gray-800, #222);
  background: var(--gray-100, #f5f5f5);
  border: 1px solid var(--gray-300, #ccc);
  border-left: 3px solid var(--gray-600, #555);
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 0 3px 3px 0;
  line-height: 1.5;
}

/* Readiness guidance */
.readiness-guidance {
  margin-top: 10px;
}

.readiness-next-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400, #999);
  font-weight: 600;
  margin-bottom: 6px;
}

.readiness-next-item {
  font-size: 12px;
  color: var(--gray-600, #555);
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  line-height: 1.4;
}

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

/* What's next block (page 17) */
.whats-next-block {
  padding: 20px 0 4px;
  border-top: 1px solid var(--gray-200, #e0e0e0);
  margin-bottom: 28px;
}

.whats-next-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gray-900, #111);
  margin: 0 0 14px;
}

.whats-next-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whats-next-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.5;
}

.whats-next-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-900, #111);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ================================================================
   PREMIUM UNLOCK — v2.0
   ================================================================ */

/* --- Default: hide all premium content --- */
.premium-content {
  display: none;
}

/* ── SESSION NUDGE (replaces upgrade nudges) ── */
.session-nudge {
  margin: 20px 0;
  padding: 11px 14px;
  background: var(--off-white);
  border-left: 3px solid var(--gray-200);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
}
.session-nudge-link {
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 500;
}
.session-nudge-link:hover { color: var(--black); }

/* --- When body.premium: show premium content, hide upsell --- */
body.premium .premium-content            { display: block; }
body.premium .upgrade-nudge              { display: none !important; }
body.premium .mid-flow-nudge             { display: none !important; }
body.premium .premium-hint               { display: none !important; }
body.premium .missed-items-unlock        { display: none !important; }
body.premium .premium-card               { display: none !important; }
body.premium .locked-preview-card        { display: none !important; }
body.premium .locked-insight             { display: none !important; }
body.premium .locked-checklist-items     { display: none !important; }
body.premium .premium-teaser             { display: none !important; }

/* --- Path-specific doc sections (hidden until body.path-* set) --- */
body.premium .premium-study-docs,
body.premium .premium-work-docs,
body.premium .premium-remote-docs {
  display: none;
}
body.premium.path-study .premium-study-docs   { display: block; }
body.premium.path-work  .premium-work-docs    { display: block; }
body.premium.path-remote .premium-remote-docs { display: block; }
/* No path selected → show all three sections */
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-study-docs,
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-work-docs,
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-remote-docs {
  display: block;
}

/* --- Premium sidebar badge --- */
.premium-sidebar-badge {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  letter-spacing: 0.04em;
  padding: 3px 0 6px;
}

/* --- Premium intro text --- */
.premium-intro-text {
  font-size: 13px;
  color: var(--gray-600, #444);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* --- Premium rule block (the sequencing/first-month rule) --- */
.premium-rule-block {
  background: var(--gray-50, #f9f9f9);
  border-left: 3px solid var(--gray-300, #ccc);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
}

/* --- Application sequencing list --- */
.premium-seq-ol {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.premium-seq-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.seq-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-900, #111);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seq-name {
  font-weight: 600;
  color: var(--gray-900, #111);
  flex: 1;
  min-width: 140px;
}
.seq-deadline {
  font-size: 12px;
  color: var(--gray-500);
}
.seq-status {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
}
.seq-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.seq-overdue { background: var(--notice-urgent-bg); color: var(--notice-urgent-color); }
.seq-urgent  { background: var(--seq-urgent-bg);  color: var(--seq-urgent-color); }
.seq-soon    { background: var(--seq-soon-bg);    color: var(--seq-soon-color); }
.seq-ok      { background: var(--seq-ok-bg);      color: var(--seq-ok-color); }
.premium-seq-empty {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
}

/* --- Budget insight card --- */
.premium-insight-card {
  background: var(--gray-50, #f9f9f9);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 4px;
}
.premium-insight-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.7;
  margin: 0;
}

/* --- Premium document list --- */
.premium-doc-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.premium-doc-list li {
  font-size: 13px;
  line-height: 1.5;
}

/* --- Premium path section label --- */
.premium-path-section {
  margin-bottom: 20px;
}
.premium-path-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* --- Country doc extras --- */
.premium-country-doc-block {
  background: var(--notice-warning-bg);
  border-left: 3px solid var(--notice-warning-accent);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
}
.premium-country-doc-title {
  color: var(--notice-warning-hover);
}
.premium-country-doc-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  margin: 6px 0 0;
}

/* --- First days guide blocks --- */
.premium-guide-block {
  background: var(--gray-50, #f9f9f9);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 16px;
}
.premium-guide-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.premium-guide-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.7;
  margin: 0;
}

/* --- Thank you card (page 17) --- */
.premium-thankyou-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.premium-thankyou-title {
  font-size: 22px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 10px;
}
.premium-thankyou-sub {
  font-size: 14px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  margin-bottom: 16px;
}
.premium-thankyou-access {
  font-size: 13px;
  color: var(--gray-600, #444);
  line-height: 1.6;
  padding: 12px 14px;
  background: #dcfce7;
  border-radius: 6px;
  margin-bottom: 12px;
}
.premium-thankyou-note {
  font-size: 11px;
  color: #16a34a;
  letter-spacing: 0.03em;
}

/* ================================================================
   UNLOCK CODE MODAL — v2.0
   ================================================================ */

/* Sidebar trigger — hidden when premium is active */
.sidebar-unlock-trigger {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: var(--gray-400, #888);
  cursor: pointer;
  text-align: left;
  margin-bottom: 4px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar-unlock-trigger:hover { color: var(--gray-700, #333); }
body.premium .sidebar-unlock-trigger { display: none; }

/* Inline "Already paid?" trigger in upsell blocks */
.unlock-code-trigger {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-500, #666);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.unlock-code-trigger:hover { color: var(--gray-900, #111); }
body.premium .unlock-code-trigger { display: none !important; }

/* CTA area trigger on page 17 premium card */
.premium-cta-code-trigger {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500, #666);
}

/* Overlay */
.unlock-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal box */
.unlock-modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* Close button */
.unlock-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-400, #888);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.unlock-modal-close:hover { color: var(--gray-900, #111); }

/* Title & sub */
.unlock-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900, #111);
  margin-bottom: 8px;
}
.unlock-modal-sub {
  font-size: 13px;
  color: var(--gray-600, #555);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Input */
.unlock-modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gray-300, #ccc);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 0.04em;
  color: var(--gray-900, #111);
  margin-bottom: 8px;
  outline: none;
}
.unlock-modal-input:focus { border-color: var(--gray-700, #333); }

/* Error */
.unlock-modal-error {
  font-size: 12px;
  color: var(--notice-urgent-color);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Submit button */
.unlock-modal-submit {
  display: block;
  width: 100%;
  background: var(--gray-900, #111);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.unlock-modal-submit:hover { background: var(--gray-700, #333); color: #fff; }

/* Help line */
.unlock-modal-help {
  font-size: 12px;
  color: var(--gray-500, #666);
  text-align: center;
}
.unlock-modal-help a { color: inherit; }

/* Email input (non-monospace) */
.unlock-modal-input-email {
  font-family: inherit;
  letter-spacing: normal;
}

/* "Have your session code?" toggle link */
.unlock-modal-toggle-link {
  display: block;
  font-size: 12px;
  color: var(--gray-500, #888);
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.unlock-modal-toggle-link:hover { color: var(--gray-900, #111); }

/* Collapsible session-code section */
.unlock-modal-session-wrap {
  display: none;
  border-top: 1px solid var(--gray-200, #e8e8e8);
  padding-top: 16px;
  margin-top: 4px;
}
.unlock-modal-session-label {
  font-size: 12px;
  color: var(--gray-600, #555);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ============================================================
   FEEDBACK GATE MODAL
   Low-friction intent capture — tap a button, skip always works.
   Shows once on specific pages, never again after answer/skip.
   ============================================================ */
.feedback-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feedback-gate-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
}
.feedback-gate-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400, #888);
  margin-bottom: 10px;
}
.feedback-gate-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black, #111);
  line-height: 1.4;
  margin-bottom: 18px;
}
.feedback-gate-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.feedback-gate-opt {
  background: var(--gray-50, #f8f8f8);
  border: 1.5px solid var(--gray-200, #e5e5e5);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black, #111);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.4;
}
.feedback-gate-opt:hover,
.feedback-gate-opt:focus {
  border-color: var(--gray-500, #666);
  background: var(--gray-100, #f0f0f0);
  outline: none;
}
.feedback-gate-skip {
  background: none;
  border: none;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--gray-400, #999);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.feedback-gate-skip:hover { color: var(--gray-600, #555); }
@media (max-width: 480px) {
  .feedback-gate-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .feedback-gate-box {
    border-radius: 16px 16px 0 0;
    padding: 28px 20px 32px;
    max-width: 100%;
  }
}

/* =========================================================
   PAGE-LINK BUTTONS (inline nav links in mode-note blocks)
   ========================================================= */
.pg-link {
  background: none;
  border: none;
  border-bottom: 1.5px solid currentColor;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline;
  line-height: inherit;
}
.pg-link:hover {
  opacity: 0.65;
}

/* ==========================================
   BUDGET CURRENCY PICKER
   ========================================== */
.currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.currency-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.currency-select {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.currency-select:hover {
  border-color: var(--gray-400);
}
.currency-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.currency-auto-badge {
  font-size: 11px;
  color: var(--gray-500);
  font-style: italic;
}
.budget-ccy {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 2px;
}

/* Sidebar global currency selector */
.sidebar-currency-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.sidebar-currency-label {
  font-size: 10.5px;
  color: var(--gray-400);
  white-space: nowrap;
}
.sidebar-currency-select {
  font-size: 11.5px;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  padding: 3px 22px 3px 7px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  max-width: 120px;
}
.sidebar-currency-select:hover {
  border-color: var(--gray-400);
}
.sidebar-currency-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* =========================================================
   PAGE 18: HEALTH INSURANCE FINDER
   ========================================================= */

.p18-info-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-400);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.p18-info-card-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p18-requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p18-requirement-list li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.45;
}
.p18-requirement-list li:last-child { border-bottom: none; }

.p18-cost-card {
  background: var(--gray-700);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 12px 0 16px;
}
.p18-cost-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.p18-cost-amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.p18-cost-note {
  font-size: 12px;
  opacity: 0.8;
}

.p18-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.p18-provider-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--white);
}
.p18-provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.p18-provider-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.p18-provider-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--gray-700);
  color: var(--white);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.p18-provider-badge:empty { display: none; }
.p18-provider-cost {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.p18-provider-note {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.45;
}

.p18-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.p18-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.p18-checklist-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.p18-warning-card {
  background: #fffbf0;
  border: 1px solid #e8d87a;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.p18-warning-card > strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 8px;
}
.p18-warning-card ul {
  padding-left: 16px;
  margin: 0;
}
.p18-warning-card li {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 4px;
}
.p18-warning-card li:last-child { margin-bottom: 0; }

.p18-comparison-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}
.p18-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.p18-comparison-table th,
.p18-comparison-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.p18-comparison-table th {
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
}
.p18-comparison-table td { color: var(--gray-600); }
.p18-comparison-table a { color: var(--gray-700); font-weight: 500; }

.p18-guide-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.p18-guide-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}
.p18-guide-card h5 {
  font-size: 11px;
  font-weight: 600;
  margin: 12px 0 5px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p18-guide-card ul { padding-left: 16px; margin: 0; }
.p18-guide-card li { margin-bottom: 4px; }

.p18-template-pre {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--gray-700);
  font-family: 'Courier New', Courier, monospace;
  margin: 8px 0 12px;
}

@media (max-width: 600px) {
  .p18-provider-grid { grid-template-columns: 1fr; }
  .p18-cost-amount { font-size: 22px; }
}

/* ============================================================
   PREMIUM MODAL — What you get for €15
   ============================================================ */

.premium-modal-box {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.premium-modal-what-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400, #999);
  margin: 20px 0 8px;
}

.premium-modal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-modal-list li {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.premium-modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--black, #111);
  font-weight: 700;
  font-size: 12px;
}

.premium-modal-list li strong {
  color: var(--black, #111);
  font-weight: 600;
}

.premium-modal-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--black, #111);
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}

.premium-modal-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500, #777);
  letter-spacing: 0;
}

.premium-modal-reassurance {
  font-size: 12px;
  color: var(--gray-500, #777);
  margin-bottom: 14px;
}

.premium-modal-card-note {
  font-size: 12px;
  color: var(--gray-500, #777);
  margin-top: 8px;
  text-align: center;
}

.premium-modal-card-note a {
  color: var(--gray-700, #444);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.premium-modal-code-btn {
  display: block;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-500, #777);
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0;
  animation: wazo-fade-late 0.4s ease 6s forwards;
}

@keyframes wazo-fade-late {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.premium-modal-code-btn:hover {
  color: var(--black, #111);
}

/* Rent baseline hint below cost-country-note */
.rent-baseline-hint {
  font-size: 12px;
  color: var(--gray-600, #555);
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e8e6e2);
  border-radius: var(--radius-md, 6px);
  padding: 8px 12px;
  margin: 6px 0 10px;
  line-height: 1.5;
}

.rent-baseline-hint strong {
  color: var(--black, #111);
}

/* Visa verified badge */
.visa-verified-date {
  font-size: 10.5px;
  color: var(--gray-500, #777);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--gray-200, #e8e6e2);
}

/* ============================================================
   MOBILE LAYOUT PASS — v2.7
   Comprehensive fixes across all 18 pages.
   ============================================================ */

/* ----------------------------------------------------------
   COMPARISON TABLE — horizontal scroll on mobile
   Wraps .cmp-country-names + .cmp-table
   ---------------------------------------------------------- */

.cmp-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

@media (max-width: 600px) {
  .cmp-scroll-wrap {
    /* Nudge left so the sticky factor column feels flush */
    margin: 0 -2px;
  }
  .cmp-country-names,
  .cmp-row {
    /* Fixed factor column + 3 equally wide columns — never narrower than 440px */
    grid-template-columns: 110px repeat(3, minmax(100px, 1fr));
    min-width: 440px;
  }
  .cmp-table {
    min-width: 440px;
  }
  .cmp-factor {
    font-size: 11px;
    padding: 7px 8px;
  }
}

/* ----------------------------------------------------------
   BUDGET TABLE — horizontal scroll on very small screens
   ---------------------------------------------------------- */

@media (max-width: 420px) {
  .budget-table {
    min-width: 380px;
  }
  /* Wrap the budget table so it scrolls rather than squishing */
  .budget-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   TOPBAR — tighten further below 400px
   ---------------------------------------------------------- */

@media (max-width: 400px) {
  .topbar {
    padding: 8px 12px;
    gap: 6px;
  }
  .topbar-page-indicator {
    font-size: 11px;
  }
  /* On the smallest phones, hide "Share summary" — least critical action */
  #share-summary-btn {
    display: none;
  }
  .topbar-actions {
    gap: 3px;
  }
  .topbar-actions .btn {
    padding: 5px 7px;
    min-width: 30px;
  }
}

/* ----------------------------------------------------------
   PAGE NAV — larger tap targets + full-width on tiny screens
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .page-nav {
    margin-top: 24px;
    padding-top: 16px;
  }
  .page-nav .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .page-nav {
    flex-direction: column;
    gap: 10px;
  }
  .page-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .page-nav-center {
    order: -1;
  }
}

/* ----------------------------------------------------------
   CONTENT BODY — slightly tighter on very small phones
   ---------------------------------------------------------- */

@media (max-width: 380px) {
  .content-body {
    padding: 16px 12px;
  }
}

/* ----------------------------------------------------------
   COVER PAGE — scale down heading on tiny screens
   ---------------------------------------------------------- */

@media (max-width: 420px) {
  .cover-title {
    font-size: 24px;
  }
  .cover-subtitle {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------
   UNLOCK + PREMIUM MODALS — tighter padding on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .unlock-modal-box,
  .premium-modal-box {
    padding: 24px 16px 18px;
    border-radius: 8px;
  }
  .unlock-modal-title,
  .premium-modal-title {
    font-size: 16px;
  }
  .unlock-modal-overlay {
    padding: 12px;
    align-items: flex-end; /* sheet-style — rises from the bottom */
  }
  .unlock-modal-box,
  .premium-modal-box {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
  }
  .premium-modal-price {
    font-size: 20px;
  }
}

/* ----------------------------------------------------------
   JOURNEY PROMPT MODAL (first-run stage picker)
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .journey-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .journey-modal-box {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    padding: 24px 16px 20px;
  }
  .journey-choice-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ----------------------------------------------------------
   SECTION LABELS — a touch smaller at mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .section-label {
    font-size: 9.5px;
  }
  .page-title {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------
   UPGRADE NUDGE / PREMIUM CARD — full width, no orphan CTA
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .upgrade-nudge,
  .mid-flow-nudge {
    padding: 14px;
  }
  .upgrade-nudge-link,
  .mid-flow-nudge-link {
    display: block;
    text-align: center;
    margin-top: 8px;
  }
  .premium-card {
    padding: 16px;
  }
  .premium-compare {
    grid-template-columns: 1fr;
  }
  .premium-compare-col {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px;
  }
  .premium-compare-col:last-child {
    border-bottom: none;
  }
}

/* ----------------------------------------------------------
   APPLICATION TRACKER TABLE — horizontal scroll
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .tracker-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   SIDEBAR — prevent body scroll when open on mobile
   ---------------------------------------------------------- */

body.sidebar-open {
  overflow: hidden;
}

/* ----------------------------------------------------------
   FORM FIELD LABELS — comfortable line height on mobile
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .field-label {
    font-size: 11.5px;
    line-height: 1.45;
  }
  .field-hint-subtle,
  .field-hint {
    font-size: 11.5px;
  }
  /* Textarea fields — min height so they're not tiny on mobile */
  textarea.field {
    min-height: 80px;
  }
}

/* ----------------------------------------------------------
   HEALTH INSURANCE PAGE (18) — provider grid on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .p18-provider-grid {
    grid-template-columns: 1fr;
  }
  .p18-cost-amount {
    font-size: 20px;
  }
  .p18-comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   CHECKLIST ITEMS — tap target size
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .checklist-item {
    padding: 9px 0;
    gap: 10px;
  }
  .checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ----------------------------------------------------------
   VISA RESULT CARD — tighter on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .visa-result-card {
    padding: 12px;
  }
  .visa-result-row {
    flex-direction: column;
    gap: 2px;
    padding: 7px 0;
  }
  .visa-result-label {
    min-width: unset;
    font-size: 10px;
  }
  .visa-result-value {
    font-size: 13px;
  }
}

/* ----------------------------------------------------------
   LANDING PAGE (index.html) — tighter hero on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .lp-hero-title {
    font-size: 32px;
  }
  .lp-hero-subtitle {
    font-size: 16px;
  }
}

/* Landing page premium feature list */
.lp-premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-premium-list li {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.lp-premium-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gray-400);
  font-size: 12px;
}
.lp-premium-list li strong {
  color: var(--black);
}

/* Landing page social proof grid */
.lp-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
  max-width: 640px;
}
.lp-proof-card {
  background: var(--gray-lightest, #f8f8f6);
  border: 1px solid var(--gray-light, #e5e5e0);
  border-radius: 8px;
  padding: 16px;
}
.lp-proof-quote {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-dark, #2c2c2a);
  font-style: italic;
  margin-bottom: 8px;
}
.lp-proof-attr {
  font-size: 11px;
  color: var(--gray-mid, #767676);
  letter-spacing: 0.02em;
}
@media (max-width: 560px) {
  .lp-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   COVER PAGE — destination input + Begin button
   ---------------------------------------------------------- */

.cover-destination {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.cover-destination-label {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

.cover-destination-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.cover-destination-input:focus {
  border-color: #111;
}

.cover-begin-btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, opacity 0.15s;
}

.cover-begin-btn:hover {
  background: #333;
}

.cover-save-note {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  margin-top: 12px;
  line-height: 1.5;
  max-width: 380px;
}

/* ----------------------------------------------------------
   UNLOCK MODAL — email-first redesign
   ---------------------------------------------------------- */

.unlock-email-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.15s;
  box-sizing: border-box;
}

.unlock-email-cta:hover {
  background: #333;
}

.unlock-modal-divider {
  margin: 16px 0 8px;
  font-size: 12px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}

.unlock-modal-code-hint {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.unlock-modal-code-hint code {
  font-family: monospace;
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* Dev-only swipe-dismiss failure notice */
.swipe-dismiss-dev-warn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 9999;
  max-width: 320px;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 4px;
  padding: 10px 36px 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #5d4200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.swipe-dismiss-dev-warn strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.swipe-dismiss-dev-warn-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #a07000;
  padding: 0 2px;
}

.pdf-libs-dev-warn {
  position: fixed;
  bottom: 100px;
  right: 14px;
  z-index: 9999;
  max-width: 320px;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 4px;
  padding: 10px 36px 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #5d4200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pdf-libs-dev-warn strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.pdf-libs-dev-warn-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #a07000;
  padding: 0 2px;
}

/* v3.3 additions */

/* Cover autocomplete — position relative on wrapper */
.cover-destination {
  position: relative;
}
.cover-destination-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 36px);
  z-index: 200;
}

/* T2: Share button inline nudge message */
.share-btn-nudge {
  display: none;
  font-size: 12px;
  color: var(--gray-500, #6b7280);
  margin-left: 8px;
  font-style: italic;
  vertical-align: middle;
}

/* T4: Pacing message — auto-dismissing inactivity prompt */
.pacing-message {
  position: relative;
  background: var(--surface-alt, #f5f4f0);
  border-left: 3px solid var(--accent, #b45309);
  border-radius: 4px;
  padding: 12px 36px 12px 14px;
  margin: 16px 0 8px;
  font-size: 13.5px;
  color: var(--text, #1a1a1a);
  line-height: 1.55;
  animation: pacing-fadein 0.3s ease;
}
@keyframes pacing-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pacing-message-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  padding: 0 3px;
}
.pacing-message-close:hover {
  color: var(--text, #1a1a1a);
}

/* T6: Post-pathway nudge banner (page 7 top) */
.pacing-nudge {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-alt, #f5f4f0);
  border-left: 3px solid var(--accent, #b45309);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text, #1a1a1a);
  line-height: 1.5;
}
.pacing-nudge[style*="flex"] {
  display: flex;
}
.pacing-nudge-close {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  padding: 0 2px;
  align-self: center;
}
.pacing-nudge-close:hover {
  color: var(--text, #1a1a1a);
}

/* T9: Sidebar brand — empty div takes no space */
.sidebar-brand:empty {
  display: none;
}

/* ==========================================================
   UPGRADE INTENT POPUP (.uip-*)
   Shown after 3 min of tool use, once per non-premium user
   ========================================================== */
.uip-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 32px);
  animation: uip-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes uip-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.uip-card {
  background: #fff;
  border: 1px solid var(--gray-light, #e0e0e0);
  border-radius: 10px;
  padding: 20px 20px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  position: relative;
}
.uip-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-mid, #767676);
  padding: 2px 4px;
  line-height: 1;
}
.uip-close:hover { color: var(--black, #111); }
.uip-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--black, #111);
  margin-bottom: 8px;
  padding-right: 20px;
}
.uip-body {
  font-size: 13px;
  color: var(--gray-dark, #444);
  line-height: 1.55;
  margin: 0 0 12px;
}
.uip-input {
  width: 100%;
  font-size: 13px;
  margin-bottom: 12px;
  resize: vertical;
  min-height: 68px;
}
.uip-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.uip-send {
  font-size: 13px;
  padding: 8px 16px;
  flex-shrink: 0;
}
.uip-skip {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray-mid, #767676);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.uip-skip:hover { color: var(--gray-dark, #444); }
.uip-thanks {
  display: block;
  font-size: 12px;
  color: var(--gray-mid, #767676);
  margin-top: 10px;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .uip-wrap { bottom: 16px; right: 16px; left: 16px; width: auto; }
}
body.pdf-export-mode .uip-wrap { display: none !important; }

/* =========================================================
   FOREIGNER REALITY CHECK PANEL (.fr-*)
   Premium panel on page 4 — country + path-specific
   ========================================================= */
.fr-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}
.fr-panel-header {
  background: var(--black);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  letter-spacing: 0.01em;
}
.fr-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}
.fr-section:last-child { border-bottom: none; }
.fr-section--scrutiny { background: #f5f5ff; }
.fr-section--miss { background: #fff8f0; }
.fr-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.fr-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fr-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fr-badge--high   { background: #fde8e8; color: #b91c1c; }
.fr-badge--medium { background: #fef3cd; color: #92400e; }
.fr-badge--low    { background: #d1fae5; color: #065f46; }
.fr-section-body {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 5px 0;
}
.fr-timeline {
  color: var(--gray-500);
  font-style: italic;
}
.fr-detail-row {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  margin-top: 7px;
  line-height: 1.5;
}
.fr-detail-label {
  font-weight: 600;
  color: var(--black);
  min-width: 140px;
  flex-shrink: 0;
  font-size: 12px;
}
.fr-detail-val {
  color: var(--gray-600);
}
.fr-nav-links {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.fr-nav-link {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--gray-300);
  cursor: pointer;
}
.fr-nav-link:hover { text-decoration-color: var(--black); }
.fr-no-data {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 14px;
  margin: 0;
}
@media (max-width: 480px) {
  .fr-detail-row { flex-direction: column; gap: 2px; }
  .fr-detail-label { min-width: unset; }
}

/* =========================================================
   HOUSING REQUIREMENTS PANEL (.hr-*)
   Premium panel on page 5 — what landlords require
   ========================================================= */
.hr-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}
.hr-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}
.hr-section:last-of-type { border-bottom: none; }
.hr-section--warn { background: #fff8f0; }
.hr-section--path { background: #f0f4ff; }
.hr-doc-list {
  margin: 5px 0 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.65;
}
.hr-doc-list li { margin-bottom: 3px; }
.hr-section--warn .hr-doc-list { color: #92400e; }
body.pdf-export-mode .fr-panel,
body.pdf-export-mode .hr-panel { display: none !important; }

/* ==========================================================
   START PLANNING FLOW — spo-* components
   ========================================================== */
.start-plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 20, 30, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.spo-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.spo-dots {
  display: flex;
  gap: 6px;
}
.spo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background 0.2s;
}
.spo-dot.done  { background: #1e3a5f; }
.spo-dot.current { background: #2563eb; }
.spo-step-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.spo-step { display: none; }
.spo-step.active { display: block; }
.spo-question {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.3;
}
.spo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.spo-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spo-option {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.spo-option:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}
.spo-option.selected {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
}
.spo-option-full {
  grid-column: 1 / -1;
}
.spo-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  padding: 8px 0 0;
  margin-top: 4px;
  text-decoration: underline;
  align-self: center;
}
.spo-skip:hover { color: #64748b; }

/* Output screen */
.spo-output-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}
.spo-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.spo-summary-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.spo-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 16px 0 8px;
}
.spo-recommended-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.spo-page-chip {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d4ed8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.spo-page-chip:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}
.spo-steps-list {
  margin: 0 0 4px;
  padding-left: 18px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
}
.spo-steps-list li { margin-bottom: 6px; }
.spo-warning {
  background: #fff8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  color: #92400e;
  margin-top: 16px;
  line-height: 1.55;
}
.spo-disclaimer {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 16px 0 12px;
  line-height: 1.5;
}
.spo-continue-btn {
  width: 100%;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.spo-continue-btn:hover { background: #0f2444; }

@media (max-width: 540px) {
  .spo-box { padding: 24px 20px 20px; }
  .spo-question { font-size: 17px; }
  .spo-options-grid { grid-template-columns: 1fr 1fr; }
  .spo-option { font-size: 13px; padding: 10px 11px; }
}

/* ==========================================================
   MOBILE FONT FLOOR — v1
   Raises all sub-12px elements to 12px on screens ≤ 768px.
   Desktop is completely unaffected.
   PDF export mode is excluded so print output is unchanged.
   ========================================================== */

@media (max-width: 768px) {

  /* --- 9px elements --- */
  body:not(.pdf-export-mode) .mode-row-label,
  body:not(.pdf-export-mode) .p9-past-date-notice__badge,
  body:not(.pdf-export-mode) .premium-badge,
  body:not(.pdf-export-mode) .sidebar-move-date__badge,
  body:not(.pdf-export-mode) .sidebar-section-label.section-done::after,
  body:not(.pdf-export-mode) .tool-chip::before { font-size: 12px; }

  /* --- 9.5px elements --- */
  body:not(.pdf-export-mode) .admin-field .field-label,
  body:not(.pdf-export-mode) .mode-row-change,
  body:not(.pdf-export-mode) .section-label { font-size: 12px; }

  /* --- 10px elements --- */
  body:not(.pdf-export-mode) .abroad-focus-prompt-label,
  body:not(.pdf-export-mode) .app-card-field .field-label,
  body:not(.pdf-export-mode) .budget-ccy,
  body:not(.pdf-export-mode) .budget-col-head,
  body:not(.pdf-export-mode) .fpath-tag,
  body:not(.pdf-export-mode) .locked-preview-label,
  body:not(.pdf-export-mode) .p18-provider-badge,
  body:not(.pdf-export-mode) .seq-tag,
  body:not(.pdf-export-mode) .sidebar-legal-links,
  body:not(.pdf-export-mode) .sidebar-nav-item .page-num,
  body:not(.pdf-export-mode) .sidebar-section-label,
  body:not(.pdf-export-mode) .tool-chip,
  body:not(.pdf-export-mode) .version-badge,
  body:not(.pdf-export-mode) .visa-result-label { font-size: 12px; }

  /* --- 10.5px elements --- */
  body:not(.pdf-export-mode) .badge,
  body:not(.pdf-export-mode) .card-label,
  body:not(.pdf-export-mode) .fr-badge,
  body:not(.pdf-export-mode) .missed-items-label,
  body:not(.pdf-export-mode) .page-footer,
  body:not(.pdf-export-mode) .premium-col-label,
  body:not(.pdf-export-mode) .section-tag { font-size: 12px; }

  /* --- 11px with !important (legal footer block) --- */
  body:not(.pdf-export-mode) .legal-block-footer { font-size: 12px !important; }

}

/* ----------------------------------------------------------
   RETURN REMINDER TOAST
   Shown once (localStorage) when user reaches page 3.
   Fixed bottom-centre, slides up with spring easing.
   ---------------------------------------------------------- */
.return-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 900;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.return-toast.return-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.return-toast.return-toast--gone {
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  pointer-events: none;
}
.return-toast-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.return-toast-msg {
  font-size: 13.5px;
  line-height: 1.45;
  color: #f1f5f9;
  margin: 0;
}
.return-toast-email {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.return-toast-email:hover { color: #bfdbfe; }
.return-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #94a3b8;
  padding: 2px 4px;
  align-self: flex-start;
}
.return-toast-close:hover { color: #f8fafc; }
@media (max-width: 768px) {
  .return-toast { bottom: 16px; }
}

/* ==========================================================
   LANDING PAGE — wazoin.com homepage
   ========================================================== */

/* --- Nav / topbar (landing page variant) --- */
.topbar-landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 52px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --- Page wrapper --- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --- Hero --- */
.hero {
  padding: 64px 0 48px;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 18px;
  max-width: 600px;
}
.hero-sub {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 12px;
}
.hero-stats {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-reassurance {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.hero-email-self {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
}
.hero-trust {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}
.hero-visual {
  margin-top: 28px;
  border-radius: 8px;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* --- Shared section styles --- */
.section {
  padding: 48px 0;
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.section-headline {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 16px;
}
.section-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 560px;
}

/* --- Buttons (landing page scale) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  border-radius: 6px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--black);
}

/* --- Breakdown grid (what's inside) --- */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.breakdown-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}
.breakdown-card-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.breakdown-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
}
.breakdown-card-body {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* --- Who it's for (bullet list) --- */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullet-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}
.bullet-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--black);
  margin-top: 9px;
}
.bullet-list strong {
  color: var(--black);
}

/* --- Stats --- */
.stats-section {
  padding: 40px 0;
}
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 120px;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.45;
}

/* --- Offers / pricing grid --- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.offer-card {
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
}
.offer-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
}
.offer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.offer-body {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

/* --- Employer / support section --- */
.support {
  padding: 40px 0;
}
.support-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* --- Bottom CTA --- */
.cta {
  padding: 48px 0 16px;
  text-align: left;
}
.cta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.cta-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal {
  font-size: 12px;
  color: var(--gray-400);
}
.footer-version {
  font-size: 11px;
  color: var(--gray-300);
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* --- Landing page mobile --- */
@media (max-width: 600px) {
  .page {
    padding: 0 16px 60px;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  .offers-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 24px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-visual {
    display: none;
  }
}

/* --- Landing page desktop — widen content area --- */
@media (min-width: 900px) {
  #main-content {
    max-width: 1080px;
    padding: 0 56px 80px;
  }
  .hero-headline {
    max-width: 820px;
    font-size: clamp(36px, 4vw, 52px);
  }
  .hero-sub {
    max-width: 700px;
    font-size: 18px;
  }
  .hero-visual img {
    height: 340px;
  }
  .section-body {
    max-width: 700px;
  }
  .cta-text {
    max-width: 600px;
  }
  .breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-row {
    gap: 64px;
  }
  .stat-num {
    font-size: 48px;
  }
}

/* =========================================================
   PREMIUM STICKY BAR
   Shown after 2 modal dismissals without purchase.
   ========================================================= */
#premium-sticky-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 150;
  font-size: 13px;
  line-height: 1.4;
  border-top: 1px solid #333;
}
@media (max-width: 767px) {
  #premium-sticky-bar { left: 0; }
}
.premium-sticky-text { flex: 1; }
.premium-sticky-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
}
.premium-sticky-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.premium-sticky-close:hover { color: #fff; }

/* =========================================================
   COMPLETION BLOCK — shown at end of page 18 (Health Insurance)
   ========================================================= */
.completion-block {
  background: #f7f6f4;
  border-radius: 8px;
  border-left: 3px solid #111;
  padding: 24px;
  margin: 32px 0 0;
}
.completion-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.3;
}
.completion-sub {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin: 0 0 20px;
}
.completion-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   PREMIUM CONFIRM MODAL — post-activation panel
   ========================================================= */

.premium-confirm-box {
  max-width: 400px;
  text-align: center;
}

.premium-confirm-tick {
  font-size: 28px;
  line-height: 1;
  color: #1a7a3c;
  margin: 0 0 10px;
  font-weight: 700;
}

.premium-confirm-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 4px;
}

.premium-confirm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e8e6e2);
  border-radius: var(--radius-md, 6px);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black, #111);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.premium-confirm-link:hover {
  background: var(--gray-100, #f0efed);
  border-color: var(--gray-400, #bbb);
}

.premium-confirm-dismiss {
  display: block;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-500, #777);
  cursor: pointer;
  padding: 8px 0 2px;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin: 0 auto;
}

.premium-confirm-dismiss:hover {
  color: var(--black, #111);
}

/* Premium modal social proof line */
.premium-modal-social-proof {
  font-size: 12px;
  color: var(--gray-600, #555);
  line-height: 1.5;
  border-top: 1px solid var(--gray-100, #f0efed);
  padding-top: 10px;
  margin-top: 2px;
  font-style: italic;
}

/* =========================================================
   WELCOME-BACK CALLOUT (cover page, returning users)
   ========================================================= */
#wb-callout {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gray-100, #f5f5f4);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wb-meta {
  font-size: 12px;
  color: var(--gray-500, #767676);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wb-continue-btn {
  background: var(--black, #111);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--font, 'Inter', sans-serif);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}
.wb-continue-btn:hover { background: #333; }

/* =========================================================
   BRIDGE CALLOUT (page 6, Program check — premium preview)
   ========================================================= */
.p6-bridge-callout {
  display: none;
  background: var(--gray-100, #f5f5f4);
  border-left: 3px solid var(--black, #111);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 14px 0 10px;
  font-size: 13px;
  color: var(--gray-600, #555);
  line-height: 1.55;
}
.p6-bridge-callout strong {
  color: var(--black, #111);
  font-weight: 600;
}

/* =========================================================
   UPGRADE TRIGGERS (contextual premium nudges inside tool)
   ========================================================= */
.upgrade-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #111;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}
.ut-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #767676;
  flex-shrink: 0;
}
.ut-text {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  flex: 1;
  min-width: 180px;
}
.ut-btn {
  background: #111;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--font, 'Inter', sans-serif);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
  transition: background 0.15s;
}
.ut-btn:hover { background: #333; }

/* =========================================================
   PAIN SECTION (landing page)
   ========================================================= */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
}
.pain-list li {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  padding: 3px 0 3px 16px;
  position: relative;
}
.pain-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #555;
  font-weight: 700;
}
.pain-resolution {
  font-size: 16px;
  font-weight: 600;
  color: #0d0d0d;
  margin: 0;
}

/* =========================================================
   PREMIUM MODAL — new copy elements
   ========================================================= */
.pm-subtext {
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 12px;
}
.pm-core-value {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  background: #f8f8f8;
  border-radius: 5px;
  padding: 9px 12px;
  margin: 0 0 14px;
}
.premium-modal-list-top {
  margin: 0 0 14px !important;
}
.premium-modal-list-top li {
  font-size: 13.5px !important;
}
.pm-final-push {
  font-size: 13px;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* =========================================================
   CONSULTATION PAGE — boundary note
   ========================================================= */
.session-boundary-note {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  background: #f4f4f4;
  border-radius: 5px;
  padding: 9px 12px;
  margin: 0 0 16px;
}

/* =========================================================
   FUNDED PATHWAYS — collapsible details wrapper
   ========================================================= */
.fpath-details {
  margin: 12px 0 4px;
  border-radius: 7px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  overflow: hidden;
}
.fpath-details[open] {
  border-color: #c8c8c8;
  background: #fff;
}
.fpath-details-summary {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: 0.01em;
}
.fpath-details-summary::marker,
.fpath-details-summary::-webkit-details-marker { display: none; }
.fpath-details-summary::before {
  content: '▶ ';
  font-size: 10px;
  color: #888;
  transition: transform 0.15s;
  display: inline-block;
}
.fpath-details[open] .fpath-details-summary::before { content: '▼ '; }
.fpath-details-summary:hover { color: #0d0d0d; }
.fpath-details .fpath-guide {
  padding: 0 0 4px;
  border-top: 1px solid #e8e8e8;
}

/* =========================================================
   REFLECTION SEPARATOR — page 2 section break
   ========================================================= */
.reflection-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
}
.reflection-sep::before,
.reflection-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.reflection-sep-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================================================
   WAZO FACT STRIPE — engagement callout
   ========================================================= */
.wazo-fact {
  background: #fdf8f0;
  border-left: 3px solid #e6a817;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 10px 0 14px;
  font-size: 12.5px;
  color: #5a4a1a;
  line-height: 1.55;
  font-style: italic;
}

/* =========================================================
   FOUNDER NOTE — personal callout, distinct from data facts
   ========================================================= */
.founder-note {
  background: #f7f6f4;
  border-left: 3px solid #111;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 14px 0 16px;
  font-size: 12.5px;
  color: #333;
  line-height: 1.6;
}
.founder-note-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: 6px;
}

/* =========================================================
   SIDEBAR SAVE PROMPT
   ========================================================= */
.sidebar-save-prompt {
  display: block;
  margin: 10px 12px 4px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0d0d0d;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar-save-prompt:hover {
  background: #ebebeb;
  border-color: #bbb;
  color: #0d0d0d;
}

/* =========================================================
   EARLY WIN PANEL
   ========================================================= */
.early-win-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0faf4;
  border: 1.5px solid #b6e4c8;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0 8px;
}
.ew-icon {
  font-size: 18px;
  color: #2a9d5c;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}
.ew-body { flex: 1; min-width: 0; }
.ew-heading {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 4px;
}
.ew-msg {
  font-size: 13px;
  color: #444;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   TIMED FEEDBACK NUDGE
   ========================================================= */
#timed-nudge {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.tn-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #0d0d0d;
}
.tn-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tn-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  color: #0d0d0d;
}
.tn-btn:hover { border-color: #0d0d0d; }
.tn-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.tn-close:hover { color: #555; }
@keyframes nudge-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* =========================================================
   PUSH NOTIFICATION OPT-IN BANNER
   ========================================================= */
#push-optin {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 890;
  background: #0d0d0d;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.po-text { flex: 1; min-width: 0; }
.po-title {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
}
.po-sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
  display: block;
}
.po-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.po-accept {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #0d0d0d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.po-decline {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1.5px solid #444;
  background: none;
  color: #aaa;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.po-accept:hover { background: #f0f0f0; }
.po-decline:hover { color: #fff; border-color: #888; }
@media (max-width: 480px) {
  #timed-nudge { padding: 10px 14px; }
  #push-optin  { padding: 12px 14px; }
  .po-btns { width: 100%; }
}

/* =========================================================
   GUIDE PAGES — identity guides, country guides, topic pages
   ========================================================= */
.guide-header {
  padding: 14px 24px;
  border-bottom: 1px solid #e8e7e5;
  background: #fff;
}
.guide-home-link {
  font-size: 13px;
  color: #4a4846;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.guide-home-link:hover { color: #0d0d0d; }

.guide-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.guide-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9b9893;
  margin-bottom: 10px;
}
.guide-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #0d0d0d;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.guide-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #4a4846;
  margin-bottom: 32px;
}

.guide-toc {
  background: #f5f5f4;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 40px;
}
.guide-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9b9893;
  margin-bottom: 8px;
}
.guide-toc-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-toc-list a {
  font-size: 13.5px;
  color: #2e2c2b;
  text-decoration: none;
  line-height: 1.5;
}
.guide-toc-list a:hover { text-decoration: underline; }

.guide-section {
  margin-bottom: 48px;
}
.guide-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.guide-subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: #2e2c2b;
  margin-top: 20px;
  margin-bottom: 8px;
}
.guide-body {
  font-size: 15px;
  line-height: 1.75;
  color: #2e2c2b;
  margin-bottom: 14px;
}
.guide-list {
  font-size: 15px;
  line-height: 1.75;
  color: #2e2c2b;
  padding-left: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guide-callout {
  background: #f7f6f4;
  border-left: 3px solid #111;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.65;
}
.guide-callout p { margin: 0; }

.guide-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.guide-fact-card {
  background: #f5f5f4;
  border-radius: 8px;
  padding: 14px 16px;
}
.guide-fact-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 6px;
}
.guide-fact-card-body {
  font-size: 13px;
  line-height: 1.6;
  color: #4a4846;
  margin: 0;
}

.guide-tier {
  margin-bottom: 24px;
}
.guide-tier-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.guide-tier-strong { background: #e8f4ec; color: #1c6b3a; }
.guide-tier-caution { background: #fdf8f0; color: #7a5c10; }
.guide-tier-nuanced { background: #f0f0f0; color: #4a4846; }

.guide-country-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guide-country-block {
  border-top: 1px solid #e8e7e5;
  padding-top: 16px;
}
.guide-country-name {
  font-size: 16px;
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 6px;
}
.guide-country-body {
  font-size: 14px;
  line-height: 1.7;
  color: #4a4846;
  margin-bottom: 6px;
}

.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-faq-item {
  border-bottom: 1px solid #e8e7e5;
}
.guide-faq-q {
  font-size: 15px;
  font-weight: 600;
  color: #0d0d0d;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}
.guide-faq-q::-webkit-details-marker { display: none; }
.guide-faq-q::before { content: '+ '; color: #9b9893; }
details[open] .guide-faq-q::before { content: '− '; }
.guide-faq-a {
  font-size: 14px;
  line-height: 1.75;
  color: #4a4846;
  padding: 0 0 14px 0;
  margin: 0;
}

.guide-cta-section {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  margin-top: 48px;
}
.guide-cta-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.guide-cta-body {
  font-size: 14px;
  color: #9b9893;
  line-height: 1.65;
  margin-bottom: 20px;
}
.guide-cta-btn {
  display: inline-block;
  background: #fff;
  color: #0d0d0d;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.guide-cta-btn:hover { opacity: 0.88; }

.guide-cross-links {
  margin-top: 24px;
}
.guide-cross-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6966;
  margin-bottom: 8px;
}
.guide-cross-link {
  display: inline-block;
  font-size: 13px;
  color: #9b9893;
  text-decoration: none;
  margin: 4px 10px 4px 0;
  transition: color 0.15s;
}
.guide-cross-link:hover { color: #fff; }

.guide-footer {
  border-top: 1px solid #e8e7e5;
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #9b9893;
}
.guide-footer a { color: #9b9893; text-decoration: none; }
.guide-footer a:hover { color: #0d0d0d; }

@media (max-width: 600px) {
  .guide-main { padding: 32px 16px 60px; }
  .guide-cta-section { padding: 24px 18px; }
  .guide-fact-grid { grid-template-columns: 1fr; }
}


/* =================================================================
   WAZOIN — EIA Design Override   (append-only · non-breaking)
   Cream · Coral · Teal · Instrument Serif
   ================================================================= */

/* 1. New design tokens */
:root {
  --wz-cream:    #F6F1E8;
  --wz-cream-dk: #EDE8DD;
  --wz-coral:    #E46F51;
  --wz-coral-dk: #C85A3F;
  --wz-teal:     #1E6F72;
  --wz-teal-dk:  #165557;
  --wz-navy:     #102A43;
  --wz-border:   #D5CDB8;
  --font-serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 2. Page background */
body { background: var(--wz-cream); font-family: var(--font); }

/* 3. Tool shell + main area */
.shell  { background: var(--wz-cream); }
.main-area { background: var(--wz-cream); }

/* 4. Tool topbar */
.topbar {
  background: #FDFAF4;
  border-bottom-color: var(--wz-border);
}

/* 5. Sidebar */
.sidebar {
  background: #FDFAF4;
  border-right-color: var(--wz-border);
}
.sidebar-nav-item:hover {
  background: var(--wz-cream);
  color: var(--wz-navy);
}
.sidebar-nav-item.active {
  background: var(--wz-teal);
  color: #fff;
}
.sidebar-nav-item.active .page-num { opacity: 0.8; }
.sidebar-nav-item.active .sidebar-pro-badge {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}

/* 6. Primary buttons → coral */
.btn-primary {
  background: var(--wz-coral);
  border-color: var(--wz-coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--wz-coral-dk);
  border-color: var(--wz-coral-dk);
  color: #fff;
}

/* 7. Cover page */
.cover-wrap { border-left-color: var(--wz-coral); }

.cover-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.3px;
  color: var(--wz-navy);
}

.cover-eyebrow { color: var(--wz-coral); font-weight: 600; }
.cover-subtitle { color: #4a5568; }

.cover-begin-btn {
  background: var(--wz-coral);
  color: #fff;
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0;
}
.cover-begin-btn:hover { background: var(--wz-coral-dk); }

.cover-concern-btn {
  background: #fff;
  border: 1.5px solid var(--wz-border);
  color: var(--wz-navy);
}
.cover-concern-btn:hover {
  border-color: var(--wz-coral);
  color: var(--wz-coral);
  background: #FDF3F0;
}
.cover-concern-btn.active {
  border-color: var(--wz-coral);
  background: var(--wz-coral);
  color: #fff;
}
.cover-destination-input:focus {
  border-color: var(--wz-teal);
  box-shadow: 0 0 0 3px rgba(30,111,114,0.12);
}

/* 8. Tool page headings */
.content-body h1,
.content-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* 9. Unlock / premium modal */
.unlock-email-cta { background: var(--wz-coral); }
.unlock-email-cta:hover { background: var(--wz-coral-dk); }

/* 10. Session cost card (pages 11–12) */
.session-cost-card {
  border-left-color: var(--wz-teal);
  background: var(--wz-cream-dk);
}
.session-cost-btn { background: var(--wz-coral); }
.session-cost-btn:hover { background: var(--wz-coral-dk); }

/* 11. Page-nav next/prev */
.page-nav .btn-primary {
  background: var(--wz-coral);
  border-color: var(--wz-coral);
}
.page-nav .btn-primary:hover {
  background: var(--wz-coral-dk);
  border-color: var(--wz-coral-dk);
}

/* 12. Section headings in tool */
.p2-section-heading,
.p3-section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
}
