:root {
  /* Bảng "Indigo + Acid Lime". QUY TẮC NGỮ NGHĨA — không phá vỡ khi thêm CSS mới:
     - Indigo (--accent): màu chính cho MỌI THỨ liên quan AI/thao tác chung (nút, link,
       toggle, logo, giá tiền...).
     - Lime (--lime): CHỈ dùng cho phần liên quan HIỆU SUẤT/KẾT QUẢ — điểm SEO, nút "Cải
       thiện SEO", badge kiểu "đạt chuẩn". Không dùng cho nút/nền chung chung. */
  --bg: #fafaf8;
  --bg-soft: #edebff;
  --card: #ffffff;
  --text: #19191d;
  --muted: #6b6d7a;
  --accent: #5546e8;
  --accent-dark: #4536c4;
  --accent-light: #edebff;
  --accent-blob: #8a7cf5;
  --lime: #b7f34a;
  --lime-light: #e8ffc7;
  --lime-text: #4f6b12;
  --border: #e6e7ec;
  --ok: #20a875;
  --ok-bg: #e7f9f1;
  --ok-border: #bfead9;
  --warn: #f5a524;
  --warn-text: #8a5a10;
  --warn-bg: #fff6e5;
  --warn-border: #fbdfa8;
  --err: #e5484d;
  --err-bg: #fceaeb;
  --err-border: #f6c4c6;
  --shadow: 0 1px 3px rgba(25, 25, 29, 0.04), 0 8px 24px rgba(25, 25, 29, 0.05);
  --shadow-hover: 0 4px 14px rgba(85, 70, 232, 0.18), 0 16px 36px rgba(25, 25, 29, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: "Be Vietnam Pro", sans-serif; font-weight: 700; letter-spacing: -0.01em; }

/* ---- nền động: vài khối indigo mờ trôi nhẹ phía sau (thuần trang trí, không phải khu vực
   hiệu suất nên KHÔNG dùng lime ở đây, theo đúng quy tắc màu) ---- */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
body::before {
  width: 420px; height: 420px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
body::after {
  width: 480px; height: 480px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, var(--accent-blob), transparent 70%);
  animation-delay: -8s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -24px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(250, 250, 248, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  /* Phải CAO HƠN z-index của .container (=1) — .container nằm sau .topbar trong HTML nên
     nếu trùng z-index, nội dung trang sẽ đè lên thanh header lúc cuộn, làm nút Đăng nhập/
     Dùng thử miễn phí không bấm được (lỗi thật đã xảy ra, không phải giả định). */
  z-index: 50;
}

.brand {
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.topbar nav a:hover { color: var(--accent-dark); }
.topbar nav a.btn, .topbar nav a.btn:hover { color: #fff; }

/* Màn hình điện thoại hẹp: "Content Factory" + 3 link (Tạo content/Nạp tiền/Đăng xuất) không
   đủ chỗ trên 1 dòng -> tự vỡ xuống 3 dòng, làm thanh header (sticky) cao bất thường và che
   mất nội dung trang lúc cuộn (lỗi thật, thấy trên trang /topup/pending). Bớt cỡ chữ/khoảng
   cách + ẩn chữ thương hiệu (giữ lại logo) để mọi thứ vừa gọn 1 dòng. */
@media (max-width: 480px) {
  .topbar { padding: 12px 14px; }
  .brand-text { display: none; }
  /* 4 link lúc đăng nhập (Trang chủ/Tạo content/Nạp tiền/Đăng xuất) cần chật hơn 2 link lúc
     chưa đăng nhập -> thu gọn thêm khoảng cách/cỡ chữ so với bản trước để vẫn vừa 1 dòng. */
  .topbar nav a { margin-left: 9px; font-size: 0.78rem; white-space: nowrap; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 18px 70px;
}
.container.container-wide { max-width: 980px; }

/* ---- landing page ---- */
.hero { text-align: center; padding: 50px 10px 30px; animation: rise 0.5s ease both; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 16px;
}
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section-title { text-align: center; font-size: 1.5rem; margin: 60px 0 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card .emoji { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: step; }
.step { text-align: center; padding: 10px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.example-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.example-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark);
  background: var(--bg-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.example-card pre { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: 0.95rem; }

/* ---- carousel ví dụ ---- */
.carousel { max-width: 560px; margin: 0 auto; overflow: hidden; border-radius: 16px; }
.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carousel-slide { flex: 0 0 100%; min-width: 0; padding: 2px; display: flex; }
.carousel-slide .example-card { flex: 1; display: flex; flex-direction: column; }
.carousel-slide .example-card pre { flex: 1; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.carousel-arrow {
  margin: 0; padding: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-size: 1.2rem; line-height: 1; box-shadow: none; display: inline-flex;
  align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: var(--bg-soft); transform: none; box-shadow: none; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  margin: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--border); box-shadow: none; cursor: pointer;
}
.carousel-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
.carousel-dot:hover { transform: none; box-shadow: none; }

.pricing-card {
  background: var(--card); border: 2px solid var(--accent); border-radius: 18px;
  padding: 30px; max-width: 420px; margin: 0 auto; text-align: center; box-shadow: var(--shadow-hover);
}
.pricing-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.pricing-row:last-of-type { border-bottom: none; }
.pricing-row strong { color: var(--accent-dark); }

.trust-list { list-style: none; padding: 0; margin: 0 auto; max-width: 480px; }
.trust-list li { padding: 10px 0 10px 30px; position: relative; color: var(--muted); }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

.testimonial-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.testimonial-card p.quote { font-style: italic; margin: 0 0 12px; }
.testimonial-card .who { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.final-cta { text-align: center; padding: 50px 10px 30px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.card:nth-of-type(2) { animation-delay: 0.06s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}

h1 { font-size: 1.55rem; margin-top: 0; }
h2 { font-size: 1.15rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; }
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.checkbox-row label { font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.checkbox-row label a { color: var(--accent-dark); }

.site-footer {
  position: relative; z-index: 1; text-align: center; padding: 24px 16px 40px;
  font-size: 0.82rem; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); text-decoration: underline; }
.site-footer span { margin: 0 8px; opacity: 0.5; }

.legal-page h2 { margin-top: 28px; }
.legal-page p { color: var(--muted); line-height: 1.65; }
.legal-page p a { color: var(--accent-dark); }

label { display: block; margin: 16px 0 7px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }

input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fffdfb;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(85, 70, 232, 0.15);
}
select { cursor: pointer; }

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

/* ---- toggle switch chọn loại content (thay cho chip) ---- */
.toggle-list {
  display: flex; flex-direction: column; border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-top: 6px;
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--card); cursor: pointer; transition: background 0.15s ease;
}
.toggle-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.toggle-row:hover { background: var(--bg-soft); }
.toggle-row-label { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.toggle-row-price { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-left: 4px; }

.toggle-switch { position: relative; display: inline-flex; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: block; width: 44px; height: 26px; border-radius: 999px;
  background: var(--border); transition: background 0.2s ease; position: relative;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(25, 25, 29, 0.3); transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-track { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(85, 70, 232, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:hover, .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
button:active, .btn:active { transform: translateY(0); }

button:disabled {
  background: #e4d9cd;
  color: #a99a89;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-secondary:hover { background: rgba(85, 70, 232, 0.08); box-shadow: none; }

/* ---- spinner khi đang chờ tạo content (JS toggle) ---- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error { color: var(--err); background: var(--err-bg); border: 1px solid var(--err-border); padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 0.92rem; }
.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-border); padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 0.92rem; }
.notice { color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 11px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 0.88rem; line-height: 1.5; }
.notice strong { color: var(--text); }

.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.quick-amount-btn {
  margin: 0; padding: 8px 16px; font-size: 0.88rem; font-weight: 600;
  background: var(--card); color: var(--accent-dark); border: 1.5px solid var(--border);
  box-shadow: none;
}
.quick-amount-btn:hover { border-color: var(--accent); background: var(--bg-soft); transform: none; box-shadow: none; }

.balance {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
}
.muted { color: var(--muted); font-size: 0.9rem; }

.result-block {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  animation: rise 0.4s ease both;
}
.result-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-soft);
}
.result-block-head h3 { margin: 0; font-size: 0.95rem; }
.result-block pre {
  white-space: pre-wrap;
  font-family: inherit;
  background: #fffdfb;
  padding: 16px;
  margin: 0;
  font-size: 0.95rem;
}
.copy-btn {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 0;
  box-shadow: none;
}
.copy-btn:hover { background: rgba(85, 70, 232, 0.12); transform: none; box-shadow: none; }

/* Khối đánh giá SEO = khu vực "hiệu suất" — dùng Lime cho trạng thái đạt, đúng quy tắc màu */
.seo-panel { padding: 14px 16px; border-top: 1px solid var(--border); }
.seo-panel.seo-ok { background: var(--lime-light); }
.seo-panel.seo-warn { background: var(--warn-bg); }
.seo-score { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.seo-panel.seo-ok .seo-score { color: var(--lime-text); }
.seo-panel.seo-warn .seo-score { color: var(--warn-text); }
.seo-compare {
  font-size: 0.88rem; font-weight: 700; color: var(--lime-text);
  background: var(--lime-light); display: inline-block; padding: 4px 10px;
  border-radius: 8px; margin-bottom: 10px;
}
.seo-added { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.seo-checks { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.seo-checks li { font-size: 0.82rem; }
.seo-check-ok { color: var(--lime-text); }
.seo-check-warn { color: var(--warn-text); }
/* Nút "Cải thiện SEO" — đúng khu vực hiệu suất nên dùng Lime (không dùng ở đâu khác) */
.seo-improve-btn {
  margin: 8px 0 0; padding: 8px 16px; font-size: 0.85rem;
  background: var(--lime); color: var(--lime-text); box-shadow: none;
}
.seo-improve-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(183, 243, 74, 0.4); }

/* ---- ví dụ trên landing page dùng chung style seo-panel nhưng đơn giản hơn (không nút) ---- */
.example-card .seo-panel { border-radius: 10px; border-top: none; margin-top: 14px; }

.history-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 4px 0 16px;
}
.history-filters input[type=text] { flex: 1 1 200px; width: auto; padding: 9px 12px; }
.history-filters select { flex: 0 1 190px; width: auto; padding: 9px 10px; font-size: 0.88rem; }
.history-filters button { margin-top: 0; padding: 9px 18px; font-size: 0.88rem; flex-shrink: 0; }
.history-filters .btn-secondary { padding: 9px 16px; font-size: 0.88rem; }

.info-tip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-soft); color: var(--muted);
  font-size: 0.72rem; font-weight: 700; font-style: normal; cursor: pointer;
  vertical-align: middle;
}
/* Bubble tự làm bằng JS lúc bấm/chạm — KHÔNG dùng thuộc tính title/hover vì hover không
   hoạt động trên điện thoại (không có khái niệm hover khi chạm màn hình). */
.info-tip-bubble {
  position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
  width: 220px; max-width: 70vw; background: var(--text); color: #fff;
  padding: 8px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 400;
  line-height: 1.4; white-space: normal; box-shadow: var(--shadow); z-index: 20;
  cursor: default;
}

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px;
}
.pagination .btn { margin-top: 0; padding: 8px 16px; font-size: 0.88rem; }

/* ---- form tạo CV (đặc thù CV Nhanh, không có bên content-factory-web) ---- */
.form-section-title { margin: 24px 0 10px; font-size: 1.05rem; }
.form-subcard {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.form-subcard-title { font-weight: 700; margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.template-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.template-option {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 0.9rem;
  background: var(--card); transition: border-color 0.15s ease;
}
.template-option:has(input:checked) { border-color: var(--accent); background: var(--accent-light); }
.template-option input { accent-color: var(--accent); }

/* ---- render CV — khung dùng chung cho cả 3 mẫu, style riêng từng mẫu nằm ở
   templates/cv/{professional,modern,creative}.html ---- */
.cv-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cv-actions .btn { margin-top: 0; }
.cv-page {
  background: #fff; max-width: 210mm; margin: 0 auto; padding: 18mm 16mm;
  box-shadow: var(--shadow); border-radius: 4px; color: #1a1a1a;
}
/* Mặc định "biến mất" khỏi layout — chỉ mẫu creative (2 cột) mới bật lại thành khối thật. */
.cv-main, .cv-sidebar { display: contents; }
.cv-header { margin-bottom: 20px; }
.cv-name { font-size: 1.8rem; margin: 0 0 4px; }
.cv-job-title { font-size: 1.05rem; margin: 0 0 6px; color: #555; }
.cv-contact { font-size: 0.85rem; color: #666; margin: 0; }
.cv-section { margin-bottom: 18px; }
.cv-section h2 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em;
  margin: 0 0 10px; padding-bottom: 4px; border-bottom: 1.5px solid #ddd;
}
.cv-summary { font-size: 0.92rem; line-height: 1.6; margin: 0; }
.cv-exp-item { margin-bottom: 14px; }
.cv-exp-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.cv-exp-role { font-size: 0.92rem; }
.cv-exp-duration { font-size: 0.82rem; color: #777; white-space: nowrap; }
.cv-bullets { margin: 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.55; }
.cv-bullets li { margin-bottom: 3px; }
.cv-edu-item { font-size: 0.9rem; margin-bottom: 6px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill-tag { background: #f1f1f1; border-radius: 6px; padding: 4px 10px; font-size: 0.82rem; }
.cv-cover-letter {
  white-space: pre-wrap; font-family: inherit; font-size: 0.92rem; line-height: 1.6;
  background: var(--bg-soft); padding: 16px; border-radius: 10px; margin: 0 0 12px;
}

@media print {
  .topbar, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; padding: 0; margin: 0; }
  .cv-page { box-shadow: none; margin: 0; max-width: 100%; }
}

.table-scroll { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td:first-child { white-space: nowrap; font-weight: 600; }

code {
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
