/* ═════════════════════════════════════════════════════════════════
   CV GURU — 10 NEW TEMPLATES (v2) — RICH DESIGN VERSION
   Each template has a GENUINELY DIFFERENT layout + rich SVG
   illustrations + decorative ornaments + patterns.

   Photo rule: ALL photos are SMALL (≤80px) inside decorative
   frames. NEVER a full-bleed cover image.

   Padding rule: every template keeps PDF-safe outer padding
   (24px) so content never touches the PDF page edges.

   1. Executive  — Serif masthead, gold corner flourishes, monogram
   2. Editorial   — Magazine: vertical VOL.01 sidebar, drop cap, pull quote
   3. Gradient    — Gradient banner header, blob shapes, mesh pattern
   4. Noir        — Terminal window: traffic lights, scanlines, ASCII art
   5. Banner      — Decorative geometric header (NO full-bleed photo)
   6. Split       — Diagonal split, zigzag pattern, triangle shapes
   7. Card        — Polaroid cards on cork-board with tape, stickers, doodles
   8. Bento       — Apple-style bento grid with orbs and SVG icons
   9. Mono        — Code editor: file tab, line numbers, syntax highlighting
   10. Diamond    — Hexagonal photo frame, sacred geometry, gem SVGs
   ═════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════
   PDF-SAFE OUTER PADDING (critical — applied to every template)
   Ensures content never touches the PDF page edges on export.

   Templates with full-bleed decorative headers (Executive, Editorial,
   Gradient, Noir, Banner, Split, Mono, Diamond) intentionally use
   `padding: 0` on .cv-p so their header bands bleed to the edge;
   their inner content sections have their own ≥28px padding.

   Templates without full-bleed headers (Card, Bento) get the global
   24px outer padding here.

   When printing / exporting to PDF, force 28px on ALL templates
   (overriding the full-bleed `padding: 0`) so the PDF page edge
   always has breathing room.
   ═════════════════════════════════════════════════════════════════ */
.cv-p { box-sizing: border-box; }

/* Templates with full-bleed headers — leave their padding:0 alone on screen,
   but enforce PDF-safe padding when printing */
@media print {
  .cv-p { padding: 28px !important; }
}

/* Templates WITHOUT full-bleed headers — apply 24px padding on screen too */
.cv-p.t-card, .cv-p.t-bento { padding: 24px; }

/* ═════════════════════════════════════════════════════════════════
   1. EXECUTIVE — Centered serif masthead, gold ornaments, monogram
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-exe {
  --exe-navy: #1a2238;
  --exe-gold: #b8945f;
  --exe-gold-soft: #d9c79a;
  --exe-cream: #faf8f3;
  background: var(--exe-cream);
  color: var(--exe-navy);
  font-family: 'Playfair Display', 'Georgia', serif;
  padding: 0;
  position: relative;
  border: 1px solid var(--exe-gold-soft);
}
/* Gold double-rule frame */
.cv-p.t-exe::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--exe-gold); pointer-events: none;
}
.cv-p.t-exe::after {
  content: ""; position: absolute; inset: 12px;
  border: 0.5px solid var(--exe-gold-soft); pointer-events: none;
}
/* Corner flourishes */
.cv-p.t-exe .exe-corner {
  position: absolute; width: 28px; height: 28px;
  color: var(--exe-gold); z-index: 2; pointer-events: none;
}
.cv-p.t-exe .exe-corner.tl { top: 6px; left: 6px; }
.cv-p.t-exe .exe-corner.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.cv-p.t-exe .exe-corner.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.cv-p.t-exe .exe-corner.br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
.cv-p.t-exe .exe-ornament-top {
  text-align: center; padding: 24px 0 0; line-height: 0;
  position: relative; z-index: 1;
}
.cv-p.t-exe .exe-ornament-top svg { width: 100px; height: 28px; }
.cv-p.t-exe .exe-masthead {
  text-align: center; padding: 18px 44px 22px;
  position: relative; z-index: 1;
}
.cv-p.t-exe .exe-masthead::before,
.cv-p.t-exe .exe-masthead::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px; background: var(--exe-gold);
}
.cv-p.t-exe .exe-masthead::before { top: 4px; }
.cv-p.t-exe .exe-masthead::after  { bottom: 4px; width: 75%; }
/* Monogram letter behind name */
.cv-p.t-exe .exe-monogram {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 90pt; font-weight: 900; color: var(--exe-gold);
  opacity: 0.08; z-index: 0; line-height: 1; pointer-events: none;
  letter-spacing: -4px;
}
.cv-p.t-exe .exe-photo {
  width: 78px; height: 78px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--exe-gold);
  box-shadow: 0 0 0 1px var(--exe-cream), 0 0 0 3px var(--exe-gold);
  background: #e8dfc7; position: relative; z-index: 1;
}
.cv-p.t-exe .exe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-p.t-exe h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28pt; font-weight: 900; letter-spacing: 4px;
  margin: 4px 0 2px; text-transform: uppercase;
  position: relative; z-index: 1;
}
.cv-p.t-exe .exe-title {
  font-style: italic; font-size: 12pt; color: var(--exe-gold);
  letter-spacing: 2px; margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  position: relative; z-index: 1;
}
.cv-p.t-exe .cc {
  justify-content: center; gap: 16px; font-size: 8.5pt; color: #555;
  font-family: 'Georgia', serif;
  position: relative; z-index: 1;
}
.cv-p.t-exe .cc i { color: var(--exe-gold); margin-right: 4px; }
.cv-p.t-exe .exe-body {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
  padding: 26px 44px 32px; position: relative; z-index: 1;
}
.cv-p.t-exe .exe-body::before {
  content: ""; position: absolute; top: 22px; bottom: 30px;
  left: 60%; width: 1px; background: var(--exe-gold); opacity: 0.5;
}
.cv-p.t-exe .exe-main { padding-right: 10px; }
.cv-p.t-exe .exe-side { padding-left: 10px; }
.cv-p.t-exe h2 {
  font-family: 'Playfair Display', serif;
  font-size: 11pt; font-weight: 700; letter-spacing: 3px;
  color: var(--exe-navy); text-transform: uppercase;
  margin: 22px 0 12px; text-align: center;
  display: flex; align-items: center; gap: 10px;
}
.cv-p.t-exe h2:first-child { margin-top: 0; }
.cv-p.t-exe h2::before, .cv-p.t-exe h2::after {
  content: ""; flex: 1; height: 1px; background: var(--exe-gold);
}
.cv-p.t-exe .exe-ornament { text-align: center; margin: 18px 0; line-height: 0; }
.cv-p.t-exe .exe-ornament svg { width: 40px; height: 14px; opacity: 0.75; }
.cv-p.t-exe .cei { margin-bottom: 14px; text-align: left; }
.cv-p.t-exe .cer { font-weight: 700; font-size: 11pt; font-family: 'Playfair Display', serif; }
.cv-p.t-exe .cec { font-style: italic; color: var(--exe-gold); font-size: 9.5pt; }
.cv-p.t-exe .ced { font-size: 8.5pt; color: #777; font-style: italic; }
.cv-p.t-exe .cede { font-size: 9pt; color: #333; line-height: 1.55; margin-top: 4px; font-family: 'Georgia', serif; }
.cv-p.t-exe .csum { font-size: 9.5pt; line-height: 1.65; color: #333; font-style: italic; text-align: left; font-family: 'Georgia', serif; }
.cv-p.t-exe .csl { text-align: left; }
.cv-p.t-exe .csb {
  display: inline-block; background: #fff; border: 1px solid var(--exe-gold);
  color: var(--exe-navy); padding: 3px 11px; margin: 2px;
  font-size: 8pt; font-family: 'Georgia', serif; letter-spacing: 0.5px;
}
.cv-p.t-exe .clang { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted #c9b88a; font-size: 9pt; text-align: left; }
.cv-p.t-exe .clang-l { font-weight: 700; }
.cv-p.t-exe .clang-v { color: var(--exe-gold); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   2. EDITORIAL — Magazine with rotated VOL.01 sidebar, drop cap, pull quote
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-edi {
  --edi-ink: #0a0a0a;
  --edi-red: #d62828;
  --edi-bg: #fefefe;
  background: var(--edi-bg); color: var(--edi-ink);
  font-family: 'Inter', sans-serif;
  padding: 0; position: relative; overflow: hidden;
}
.cv-p.t-edi .edi-masthead {
  display: grid; grid-template-columns: 1fr auto;
  align-items: stretch; border-bottom: 6px solid var(--edi-ink);
  position: relative;
}
/* Kicker text above name */
.cv-p.t-edi .edi-kicker {
  font-size: 7.5pt; letter-spacing: 3.5px; font-weight: 700;
  color: var(--edi-red); text-transform: uppercase;
  margin-bottom: 8px;
}
.cv-p.t-edi .edi-kicker::before { content: "— "; }
.cv-p.t-edi .edi-kicker::after { content: " —"; }
.cv-p.t-edi .edi-name-box { padding: 26px 32px 18px; }
.cv-p.t-edi .edi-issue {
  background: var(--edi-ink); color: #fff;
  padding: 0 18px; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 8pt; letter-spacing: 5px; font-weight: 700;
}
.cv-p.t-edi h1 {
  font-family: 'Inter', sans-serif;
  font-size: 38pt; font-weight: 900; line-height: 0.92;
  letter-spacing: -2.5px; margin: 0; text-transform: uppercase;
}
.cv-p.t-edi .edi-sub-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 12px 32px 16px; border-bottom: 1px solid #ccc;
}
.cv-p.t-edi .edi-title { font-size: 13pt; color: var(--edi-red); font-style: italic; font-weight: 500; }
.cv-p.t-edi .edi-photo {
  width: 70px; height: 70px; border-radius: 0;
  border: 2px solid var(--edi-ink); overflow: hidden;
  position: relative; flex-shrink: 0; max-width: 70px; max-height: 70px;
}
.cv-p.t-edi .edi-photo::after {
  content: "01"; position: absolute; top: -10px; right: -10px;
  background: var(--edi-red); color: #fff; font-size: 8pt; font-weight: 800;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid #fff;
}
.cv-p.t-edi .edi-photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-p.t-edi .cc { gap: 16px; font-size: 8.5pt; color: #555; padding: 10px 32px 0; }
.cv-p.t-edi .cc span { display: inline-flex; align-items: center; gap: 5px; }
.cv-p.t-edi .cc span:not(:last-child)::after {
  content: "/"; margin-left: 16px; color: #bbb; font-weight: 700;
}
.cv-p.t-edi .edi-content { padding: 24px 36px 32px; position: relative; }
/* Column rule on the left */
.cv-p.t-edi .edi-content::before {
  content: ""; position: absolute; left: 16px; top: 18px; bottom: 28px;
  width: 1px; background: var(--edi-ink); opacity: 0.1;
}
.cv-p.t-edi h2 {
  font-family: 'Inter', sans-serif;
  font-size: 13pt; font-weight: 900; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 26px 0 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.cv-p.t-edi h2:first-child { margin-top: 0; }
.cv-p.t-edi h2 .edi-num {
  font-size: 26pt; font-weight: 900; color: var(--edi-red);
  line-height: 1; font-family: 'Inter', sans-serif; letter-spacing: -1px;
}
.cv-p.t-edi h2 .edi-line { flex: 1; height: 1px; background: var(--edi-ink); align-self: center; }
.cv-p.t-edi .cei { margin-bottom: 14px; padding-left: 0; }
.cv-p.t-edi .ceh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-p.t-edi .cer { font-weight: 800; font-size: 11pt; text-transform: uppercase; letter-spacing: 0.5px; }
.cv-p.t-edi .cec { color: #666; font-size: 9.5pt; font-style: italic; }
.cv-p.t-edi .ced { font-size: 8.5pt; color: var(--edi-red); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.cv-p.t-edi .cede { font-size: 9.5pt; color: #333; line-height: 1.6; margin-top: 5px; }
.cv-p.t-edi .csum { font-size: 11pt; line-height: 1.6; color: #222; margin-bottom: 4px; }
.cv-p.t-edi .csum::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 48pt; font-weight: 900; color: var(--edi-ink);
  float: left; line-height: 0.85; padding: 6px 8px 0 0;
}
/* Pull quote */
.cv-p.t-edi .edi-pullquote {
  border-left: 4px solid var(--edi-red); padding: 10px 16px;
  margin: 14px 0; font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 13pt; color: var(--edi-ink); line-height: 1.4;
  background: #fafafa;
}
.cv-p.t-edi .edi-pullquote::before { content: "\201C"; font-size: 24pt; color: var(--edi-red); line-height: 0.5; vertical-align: -8pt; margin-right: 4px; }
.cv-p.t-edi .csl { display: block; }
.cv-p.t-edi .csb {
  display: inline; background: transparent; border: none;
  color: var(--edi-ink); padding: 0; margin: 0;
  font-size: 10pt; font-weight: 500;
}
.cv-p.t-edi .csb::after { content: " · "; color: #bbb; font-weight: 700; }
.cv-p.t-edi .csb:last-child::after { content: ""; }
.cv-p.t-edi .clang { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee; font-size: 9.5pt; }
.cv-p.t-edi .clang-l { font-weight: 700; }
.cv-p.t-edi .clang-v { color: var(--edi-red); font-style: italic; }
/* Page number footer */
.cv-p.t-edi .edi-footer {
  text-align: center; padding: 14px; border-top: 1px solid #ccc;
  font-size: 8pt; letter-spacing: 4px; color: #888; text-transform: uppercase;
}
.cv-p.t-edi .edi-footer span { color: var(--edi-red); font-weight: 700; }

/* ═════════════════════════════════════════════════════════════════
   3. GRADIENT — Full-width gradient banner, blob shapes, mesh pattern
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-gra {
  --gra-start: #6366f1;
  --gra-mid: #a855f7;
  --gra-end: #ec4899;
  background: #fff; color: #1f2937;
  font-family: 'Inter', sans-serif;
  padding: 0; position: relative; overflow: hidden;
}
/* Mesh pattern background */
.cv-p.t-gra::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gra-mid) 0, transparent 50px),
    radial-gradient(circle at 80% 70%, var(--gra-end) 0, transparent 60px),
    radial-gradient(circle at 50% 50%, var(--gra-start) 0, transparent 80px);
}
.cv-p.t-gra .gra-banner {
  background: linear-gradient(135deg, var(--gra-start) 0%, var(--gra-mid) 50%, var(--gra-end) 100%);
  padding: 36px 36px 50px; color: #fff; position: relative; overflow: hidden;
}
.cv-p.t-gra .gra-banner::before {
  content: ""; position: absolute; top: -40px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.12); border-radius: 50%; filter: blur(2px);
}
.cv-p.t-gra .gra-banner::after {
  content: ""; position: absolute; bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08); border-radius: 50%; filter: blur(2px);
}
/* Floating triangle decoration */
.cv-p.t-gra .gra-tri {
  position: absolute; top: 24px; right: 100px;
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid rgba(255,255,255,0.15);
  transform: rotate(15deg); z-index: 1;
}
.cv-p.t-gra .gra-banner-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; }
.cv-p.t-gra .gra-photo {
  width: 80px; height: 80px; border-radius: 50%;
  padding: 3px; background: linear-gradient(135deg, #fff, rgba(255,255,255,0.4));
  flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.cv-p.t-gra .gra-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.cv-p.t-gra .gra-banner-text { flex: 1; }
.cv-p.t-gra .gra-banner h1 {
  color: #fff; font-size: 28pt; font-weight: 900;
  letter-spacing: -1px; margin: 0 0 4px; line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cv-p.t-gra .gra-banner .gra-title {
  font-size: 13pt; color: rgba(255,255,255,0.95); font-weight: 500;
  margin-bottom: 12px; letter-spacing: 0.5px;
}
.cv-p.t-gra .gra-banner .cc { gap: 10px; flex-wrap: wrap; }
.cv-p.t-gra .gra-banner .cc span {
  color: rgba(255,255,255,0.95); font-size: 8.5pt;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 16px;
  backdrop-filter: blur(8px);
}
.cv-p.t-gra .gra-banner .cc i { color: #fff; }
.cv-p.t-gra .gra-body { padding: 28px 36px 32px; position: relative; z-index: 1; }
.cv-p.t-gra h2 {
  font-size: 12pt; font-weight: 800; color: var(--gra-start);
  letter-spacing: 2px; text-transform: uppercase;
  margin: 24px 0 14px; padding-bottom: 8px; position: relative;
  display: inline-block;
}
.cv-p.t-gra h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gra-start), var(--gra-mid), var(--gra-end));
  border-radius: 2px;
}
.cv-p.t-gra h2:first-child { margin-top: 0; }
.cv-p.t-gra .cei { margin-bottom: 14px; padding-left: 16px; border-left: 3px solid var(--gra-mid); position: relative; }
.cv-p.t-gra .cei::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 11px; height: 11px; background: var(--gra-mid); border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
}
.cv-p.t-gra .cer { font-weight: 700; font-size: 11pt; color: #1f2937; }
.cv-p.t-gra .cec { color: var(--gra-end); font-size: 9.5pt; font-weight: 600; }
.cv-p.t-gra .ced { font-size: 8.5pt; color: #888; font-weight: 600; }
.cv-p.t-gra .cede { font-size: 9.5pt; color: #555; line-height: 1.55; margin-top: 4px; }
.cv-p.t-gra .csum { font-size: 10pt; line-height: 1.6; color: #444; }
.cv-p.t-gra .csl { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-p.t-gra .csb {
  display: inline-block; padding: 6px 14px; margin: 0;
  font-size: 8.5pt; font-weight: 600; border-radius: 18px;
  background: linear-gradient(135deg, var(--gra-start), var(--gra-end));
  color: #fff; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}
.cv-p.t-gra .clang { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 9pt; }
.cv-p.t-gra .clang-l { font-weight: 700; color: #1f2937; }
.cv-p.t-gra .clang-v { color: var(--gra-end); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   4. NOIR — Terminal window chrome, scanlines, ASCII art, progress bars
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-noir {
  --noir-bg: #0f1419;
  --noir-panel: #1a2027;
  --noir-cyan: #06b6d4;
  --noir-green: #10b981;
  --noir-text: #e5e7eb;
  background: var(--noir-bg); color: var(--noir-text);
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  padding: 0; min-height: 100%; position: relative; overflow: hidden;
}
.cv-p.t-noir::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(
    0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 3px
  );
}
.cv-p.t-noir .noir-titlebar {
  background: #2a323c; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #3a4250;
}
.cv-p.t-noir .noir-traffic { display: flex; gap: 6px; }
.cv-p.t-noir .noir-traffic span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.cv-p.t-noir .noir-traffic .r { background: #ff5f56; }
.cv-p.t-noir .noir-traffic .y { background: #ffbd2e; }
.cv-p.t-noir .noir-traffic .g { background: #27c93f; }
.cv-p.t-noir .noir-titlebar .noir-fname {
  flex: 1; text-align: center; color: #94a3b8; font-size: 9pt;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-noir .noir-body { padding: 24px 28px 32px; font-size: 9pt; line-height: 1.55; }
/* ASCII art header */
.cv-p.t-noir .noir-ascii {
  color: var(--noir-cyan); font-size: 7pt; line-height: 1.05;
  white-space: pre; margin-bottom: 16px; opacity: 0.6;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-noir .noir-photo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.cv-p.t-noir .noir-photo-img {
  width: 70px; height: 70px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--noir-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6), 0 0 0 3px rgba(6, 182, 212, 0.15);
  flex-shrink: 0;
}
.cv-p.t-noir .noir-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-p.t-noir h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22pt; font-weight: 700; color: var(--noir-cyan);
  margin: 0 0 4px; letter-spacing: -0.5px; line-height: 1.1;
}
.cv-p.t-noir h1::before { content: "> "; color: var(--noir-green); }
.cv-p.t-noir h1::after {
  content: "▋"; color: var(--noir-cyan);
  animation: noir-blink 1s steps(2, end) infinite;
  margin-left: 4px; font-weight: 400;
}
@keyframes noir-blink { 50% { opacity: 0; } }
.cv-p.t-noir .noir-title {
  font-size: 10pt; color: #94a3b8; font-style: italic; margin-bottom: 8px;
}
.cv-p.t-noir .noir-title::before { content: "// "; color: var(--noir-green); }
.cv-p.t-noir .cc {
  flex-direction: column; gap: 4px; align-items: flex-start;
  font-size: 8.5pt; font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-noir .cc span { display: flex; align-items: center; gap: 8px; color: #cbd5e1; }
.cv-p.t-noir .cc span::before { content: "$"; color: var(--noir-green); font-weight: 700; }
.cv-p.t-noir .cc i { display: none; }
.cv-p.t-noir h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11pt; font-weight: 700; color: var(--noir-cyan);
  margin: 22px 0 10px; padding-bottom: 4px;
  border-bottom: 1px dashed #3a4250; text-transform: lowercase;
}
.cv-p.t-noir h2::before { content: "## "; color: var(--noir-green); }
.cv-p.t-noir h2:first-child { margin-top: 0; }
.cv-p.t-noir .noir-divider {
  text-align: center; color: #3a4250; font-size: 8pt;
  margin: 14px 0; letter-spacing: 1px;
}
.cv-p.t-noir .cei {
  margin-bottom: 12px; padding-left: 14px;
  border-left: 2px solid var(--noir-cyan); position: relative;
}
.cv-p.t-noir .ceh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-p.t-noir .cer { font-weight: 700; font-size: 10pt; color: #fff; }
.cv-p.t-noir .cer::before { content: "▸ "; color: var(--noir-cyan); }
.cv-p.t-noir .cec { color: var(--noir-cyan); font-size: 9pt; }
.cv-p.t-noir .cec::before { content: "@"; }
.cv-p.t-noir .ced { font-size: 8pt; color: #94a3b8; font-style: italic; }
.cv-p.t-noir .cede { font-size: 8.5pt; color: #cbd5e1; line-height: 1.55; margin-top: 4px; }
.cv-p.t-noir .csum {
  font-size: 9pt; line-height: 1.55; color: #cbd5e1;
  background: rgba(6, 182, 212, 0.05); border-left: 3px solid var(--noir-green);
  padding: 10px 14px; border-radius: 4px; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.cv-p.t-noir .csum::before { content: "/* profile */"; display: block; color: var(--noir-green); font-size: 8pt; margin-bottom: 4px; }
.cv-p.t-noir .csl { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-p.t-noir .csb {
  display: inline-block; background: transparent;
  border: 1px solid var(--noir-cyan); color: var(--noir-cyan);
  padding: 3px 10px; margin: 0; font-size: 8pt;
  font-family: 'JetBrains Mono', monospace; border-radius: 2px;
}
.cv-p.t-noir .csb::before { content: "["; color: var(--noir-green); }
.cv-p.t-noir .csb::after { content: "]"; color: var(--noir-green); }
.cv-p.t-noir .clang {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px dashed #3a4250; font-size: 8.5pt;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-noir .clang-l { color: #fff; font-weight: 700; }
.cv-p.t-noir .clang-l::before { content: "▸ "; color: var(--noir-cyan); }
.cv-p.t-noir .clang-v { color: var(--noir-green); }
.cv-p.t-noir .noir-statusbar {
  background: #2a323c; color: #64748b; font-size: 8pt;
  padding: 6px 14px; display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid #3a4250;
}

/* ═════════════════════════════════════════════════════════════════
   5. BANNER — Decorative geometric header (NO full-bleed photo),
      small circular framed photo, corner brackets, zigzag pattern
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-ban {
  --ban-ink: #0a0a0a;
  --ban-cream: #f8f4ea;
  --ban-red: #c53030;
  --ban-paper: #fffdf6;
  background: var(--ban-cream); color: var(--ban-ink);
  font-family: 'Inter', sans-serif;
  padding: 0; position: relative; overflow: hidden;
}
/* Paper background pattern (subtle dots) */
.cv-p.t-ban::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: radial-gradient(circle, var(--ban-ink) 1px, transparent 1px);
  background-size: 16px 16px;
}
.cv-p.t-ban .ban-header {
  background: var(--ban-ink); color: #fff;
  padding: 36px 36px 32px; position: relative; overflow: hidden;
}
/* Zigzag pattern decoration in header */
.cv-p.t-ban .ban-header::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    linear-gradient(135deg, var(--ban-cream) 25%, transparent 25%) -7px 0/14px 14px,
    linear-gradient(225deg, var(--ban-cream) 25%, transparent 25%) -7px 0/14px 14px;
  background-color: var(--ban-ink);
}
/* Diagonal stripe accent in top-right */
.cv-p.t-ban .ban-header::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(197, 48, 48, 0.3) 6px, rgba(197, 48, 48, 0.3) 12px);
  transform: rotate(45deg);
}
.cv-p.t-ban .ban-header-row {
  display: flex; align-items: center; gap: 22px; position: relative; z-index: 1;
}
.cv-p.t-ban .ban-photo {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--ban-red), #fbbf24);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.cv-p.t-ban .ban-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.cv-p.t-ban .ban-header-text { flex: 1; }
.cv-p.t-ban .ban-stamp {
  display: inline-block; background: var(--ban-red); color: #fff;
  padding: 6px 12px; font-size: 7.5pt; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: 1.5px solid #fff; transform: rotate(-3deg);
  font-family: 'Inter', sans-serif; line-height: 1.3; text-align: center;
  margin-bottom: 10px;
}
.cv-p.t-ban .ban-stamp small {
  display: block; font-size: 6pt; letter-spacing: 1.5px; margin-top: 2px;
  font-weight: 600; opacity: 0.9;
}
.cv-p.t-ban h1 {
  font-family: 'Inter', sans-serif;
  font-size: 30pt; font-weight: 900; letter-spacing: -1px;
  margin: 0 0 4px; line-height: 0.95; text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.cv-p.t-ban .ban-title {
  font-size: 13pt; font-style: italic; color: #fef3c7;
  font-weight: 500; letter-spacing: 1px;
}
.cv-p.t-ban .ban-contact-row { padding: 18px 36px 0; position: relative; z-index: 1; }
.cv-p.t-ban .ban-contact-row .cc { gap: 12px; flex-wrap: wrap; }
.cv-p.t-ban .ban-contact-row .cc span {
  font-size: 8.5pt; color: #444; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--ban-paper); border-radius: 14px;
  border: 1px solid #e2d8b8;
}
.cv-p.t-ban .ban-contact-row .cc i { color: var(--ban-red); }
.cv-p.t-ban .ban-body {
  padding: 28px 36px 32px;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px;
  position: relative; z-index: 1;
}
.cv-p.t-ban .ban-side { border-left: 2px solid var(--ban-ink); padding-left: 18px; }
.cv-p.t-ban h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12pt; font-weight: 900; color: var(--ban-ink);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 22px 0 12px; padding-bottom: 4px;
  border-bottom: 2px solid var(--ban-red);
  display: inline-block;
}
.cv-p.t-ban h2:first-child { margin-top: 0; }
.cv-p.t-ban .cei { margin-bottom: 14px; padding-left: 16px; border-left: 3px solid var(--ban-red); }
.cv-p.t-ban .cer { font-weight: 800; font-size: 11pt; text-transform: uppercase; letter-spacing: 0.5px; }
.cv-p.t-ban .cec { color: #666; font-size: 9.5pt; font-style: italic; }
.cv-p.t-ban .ced { font-size: 8.5pt; color: var(--ban-red); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cv-p.t-ban .cede { font-size: 9.5pt; color: #333; line-height: 1.6; margin-top: 4px; }
.cv-p.t-ban .csum { font-size: 11pt; line-height: 1.6; color: #222; font-family: 'Georgia', serif; }
.cv-p.t-ban .csum::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 44pt; font-weight: 900; color: var(--ban-red);
  float: left; line-height: 0.85; padding: 4px 8px 0 0;
}
.cv-p.t-ban .csl { display: block; }
.cv-p.t-ban .csb {
  display: inline; background: transparent; border: none;
  color: var(--ban-ink); padding: 0; margin: 0;
  font-size: 10pt; font-weight: 600;
}
.cv-p.t-ban .csb::after { content: " • "; color: var(--ban-red); font-weight: 700; }
.cv-p.t-ban .csb:last-child::after { content: ""; }
.cv-p.t-ban .clang { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #e2e8f0; font-size: 9.5pt; }
.cv-p.t-ban .clang-l { font-weight: 700; }
.cv-p.t-ban .clang-v { color: var(--ban-red); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   6. SPLIT — True 45° diagonal split, zigzag pattern, triangle shapes
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-spl {
  --spl-dark: #1e293b;
  --spl-light: #f8fafc;
  --spl-orange: #f97316;
  background: var(--spl-light); color: var(--spl-dark);
  font-family: 'Inter', sans-serif;
  padding: 0; position: relative; overflow: hidden;
}
.cv-p.t-spl .spl-top {
  background: var(--spl-dark); color: #fff;
  padding: 36px 36px 60px; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  min-height: 220px;
}
.cv-p.t-spl .spl-top::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 4px;
  background: var(--spl-orange);
}
/* Triangle decoration in top-right */
.cv-p.t-spl .spl-tri {
  position: absolute; top: 18px; right: 18px;
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid var(--spl-orange);
  opacity: 0.7; z-index: 0;
}
.cv-p.t-spl .spl-tri2 {
  position: absolute; top: 36px; right: 60px;
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(249, 115, 22, 0.5);
  z-index: 0;
}
.cv-p.t-spl .spl-top-content {
  display: flex; align-items: center; gap: 22px; position: relative; z-index: 1;
}
.cv-p.t-spl .spl-photo {
  width: 80px; height: 80px; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
  border: 3px solid var(--spl-orange);
  background: var(--spl-orange);
  overflow: hidden;
}
.cv-p.t-spl .spl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-p.t-spl .spl-top-text { flex: 1; }
.cv-p.t-spl h1 {
  font-family: 'Inter', sans-serif;
  font-size: 26pt; font-weight: 900; letter-spacing: -0.5px;
  margin: 0 0 4px; color: #fff; line-height: 1.05;
}
.cv-p.t-spl .spl-title {
  font-size: 12pt; color: var(--spl-orange); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.cv-p.t-spl .spl-contact-row { margin-top: 14px; position: relative; z-index: 1; }
.cv-p.t-spl .spl-contact-row .cc { gap: 12px; flex-wrap: wrap; }
.cv-p.t-spl .spl-contact-row .cc span {
  color: #cbd5e1; font-size: 8.5pt;
  display: inline-flex; align-items: center; gap: 6px;
}
.cv-p.t-spl .spl-contact-row .cc i { color: var(--spl-orange); }
.cv-p.t-spl .spl-body { padding: 26px 36px 32px; position: relative; }
/* Zigzag pattern accent at top of body */
.cv-p.t-spl .spl-body::before {
  content: ""; position: absolute; top: 0; left: 36px; width: 80px; height: 8px;
  background:
    linear-gradient(135deg, var(--spl-orange) 25%, transparent 25%) -4px 0/8px 8px,
    linear-gradient(225deg, var(--spl-orange) 25%, transparent 25%) -4px 0/8px 8px;
  background-color: transparent;
}
.cv-p.t-spl h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12pt; font-weight: 800; color: var(--spl-dark);
  letter-spacing: 2px; text-transform: uppercase;
  margin: 24px 0 12px; padding-bottom: 4px;
  display: inline-block; position: relative;
  padding-top: 14px;
}
.cv-p.t-spl h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px; background: var(--spl-orange);
  transform: skewX(-20deg); transform-origin: left;
}
.cv-p.t-spl h2:first-child { margin-top: 14px; }
.cv-p.t-spl .cei { margin-bottom: 12px; padding-left: 18px; position: relative; }
.cv-p.t-spl .cei::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; background: var(--spl-orange);
  transform: rotate(45deg);
}
.cv-p.t-spl .cer { font-weight: 700; font-size: 10.5pt; }
.cv-p.t-spl .cec { color: var(--spl-orange); font-size: 9.5pt; font-weight: 600; }
.cv-p.t-spl .ced { font-size: 8.5pt; color: #888; font-weight: 600; }
.cv-p.t-spl .cede { font-size: 9pt; color: #555; line-height: 1.55; margin-top: 4px; }
.cv-p.t-spl .csum { font-size: 10pt; line-height: 1.6; color: #444; }
.cv-p.t-spl .csl { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-p.t-spl .csb {
  display: inline-block; padding: 5px 12px; margin: 0;
  font-size: 8.5pt; font-weight: 600;
  background: var(--spl-dark); color: #fff;
  transform: skewX(-12deg); border-left: 3px solid var(--spl-orange);
}
.cv-p.t-spl .csb > span { display: inline-block; transform: skewX(12deg); }
.cv-p.t-spl .clang { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #e2e8f0; font-size: 9pt; }
.cv-p.t-spl .clang-l { font-weight: 700; }
.cv-p.t-spl .clang-v { color: var(--spl-orange); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   7. CARD — Polaroid cards on cork-board with tape, stickers, doodles
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-card {
  --card-cork: #d4a574;
  --card-paper: #fefefe;
  --card-ink: #1f2937;
  --card-tape: #fef3c7;
  --card-tape2: #fbcfe8;
  --card-tape3: #bbf7d0;
  background:
    radial-gradient(circle at 20% 30%, rgba(180, 130, 80, 0.4) 0, transparent 50px),
    radial-gradient(circle at 80% 70%, rgba(180, 130, 80, 0.3) 0, transparent 40px),
    radial-gradient(circle at 50% 50%, rgba(120, 80, 40, 0.15) 0, transparent 100px),
    var(--card-cork);
  color: var(--card-ink);
  font-family: 'Inter', sans-serif;
  padding: 28px 26px 32px; position: relative;
}
/* Cork-board pin holes texture */
.cv-p.t-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, rgba(80,50,20,0.12) 0, rgba(80,50,20,0.12) 1.5px, transparent 2.5px),
    radial-gradient(circle at 76% 18%, rgba(80,50,20,0.1) 0, rgba(80,50,20,0.1) 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 78%, rgba(80,50,20,0.12) 0, rgba(80,50,20,0.12) 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 88%, rgba(80,50,20,0.1) 0, rgba(80,50,20,0.1) 1.5px, transparent 2.5px),
    radial-gradient(circle at 60% 12%, rgba(80,50,20,0.1) 0, rgba(80,50,20,0.1) 1.5px, transparent 2.5px),
    radial-gradient(circle at 12% 60%, rgba(80,50,20,0.1) 0, rgba(80,50,20,0.1) 1.5px, transparent 2.5px);
}
/* Pushpin SVG decoration */
.cv-p.t-card .card-pushpin {
  position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none;
}
.cv-p.t-card .card-pushpin svg { width: 100%; height: 100%; }
.cv-p.t-card .card-pinboard {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
  position: relative; z-index: 1;
}
.cv-p.t-card .card-pol {
  background: var(--card-paper);
  padding: 16px 18px 22px;
  box-shadow: 0 6px 14px rgba(60, 30, 10, 0.25), 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  border-radius: 2px;
}
/* Washi tape variants */
.cv-p.t-card .card-pol.tape-y::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 60px; height: 22px; background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cv-p.t-card .card-pol.tape-p::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(4deg);
  width: 60px; height: 22px; background: rgba(251, 207, 232, 0.85);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cv-p.t-card .card-pol.tape-g::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 60px; height: 22px; background: rgba(187, 247, 208, 0.85);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cv-p.t-card .card-pol.tilt-l { transform: rotate(-1.2deg); }
.cv-p.t-card .card-pol.tilt-r { transform: rotate(1.2deg); }
.cv-p.t-card .card-pol.tilt-l3 { transform: rotate(-0.6deg); }
.cv-p.t-card .card-pol.tilt-r3 { transform: rotate(0.6deg); }
.cv-p.t-card .card-header {
  background: var(--card-paper);
  padding: 18px 20px 18px;
  box-shadow: 0 6px 14px rgba(60, 30, 10, 0.25), 0 2px 4px rgba(0,0,0,0.1);
  position: relative; border-radius: 2px;
  margin-bottom: 22px;
  transform: rotate(-0.5deg);
}
.cv-p.t-card .card-header::before {
  content: ""; position: absolute; top: -10px; left: 30px; transform: rotate(8deg);
  width: 60px; height: 22px; background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cv-p.t-card .card-header::after {
  content: ""; position: absolute; top: -10px; right: 30px; transform: rotate(-12deg);
  width: 60px; height: 22px; background: rgba(251, 207, 232, 0.85);
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Sticker badge */
.cv-p.t-card .card-sticker {
  position: absolute; top: -12px; right: -8px; z-index: 3;
  width: 50px; height: 50px;
  background: var(--card-tape2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 7pt; font-weight: 800;
  color: #be185d; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: rotate(15deg);
  border: 2px dashed #be185d;
  text-align: center; line-height: 1.1;
}
.cv-p.t-card .card-header-row { display: flex; align-items: center; gap: 16px; }
.cv-p.t-card .card-photo {
  width: 70px; height: 70px; flex-shrink: 0;
  padding: 4px; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
}
.cv-p.t-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-p.t-card .card-header-text { flex: 1; }
.cv-p.t-card h1 {
  font-family: 'Inter', sans-serif;
  font-size: 20pt; font-weight: 800; letter-spacing: -0.5px;
  margin: 0 0 2px; color: var(--card-ink);
}
.cv-p.t-card .card-title {
  font-size: 11pt; color: #b45309; font-weight: 600;
  margin-bottom: 6px; font-style: italic;
}
.cv-p.t-card .cc { gap: 10px; flex-wrap: wrap; }
.cv-p.t-card .cc span {
  font-size: 8pt; color: #64748b; display: inline-flex; align-items: center; gap: 4px;
}
.cv-p.t-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 10pt; font-weight: 800; color: #b45309;
  letter-spacing: 2px; text-transform: uppercase;
  margin: 0 0 10px; padding-bottom: 5px;
  border-bottom: 1px dashed #cbd5e1;
}
.cv-p.t-card .cei { margin-bottom: 10px; padding-left: 12px; border-left: 3px solid #fbbf24; }
.cv-p.t-card .cer { font-weight: 700; font-size: 10pt; }
.cv-p.t-card .cec { color: #b45309; font-size: 9pt; font-weight: 600; }
.cv-p.t-card .ced { font-size: 8pt; color: #888; }
.cv-p.t-card .cede { font-size: 8.5pt; color: #555; line-height: 1.5; margin-top: 3px; }
.cv-p.t-card .csum { font-size: 9pt; line-height: 1.55; color: #444; font-style: italic; }
.cv-p.t-card .csl { display: flex; flex-wrap: wrap; gap: 4px; }
.cv-p.t-card .csb {
  display: inline-block; background: #fef3c7; color: #92400e;
  padding: 3px 10px; margin: 0; font-size: 8pt; font-weight: 700;
  border-radius: 12px; border: 1px dashed #d97706;
  transform: rotate(-1deg);
}
.cv-p.t-card .csb:nth-child(even) { transform: rotate(1deg); background: #fee2e2; color: #991b1b; border-color: #dc2626; }
.cv-p.t-card .csb:nth-child(3n) { background: #d1fae5; color: #065f46; border-color: #10b981; }
.cv-p.t-card .clang { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #cbd5e1; font-size: 8.5pt; }
.cv-p.t-card .clang-l { font-weight: 700; }
.cv-p.t-card .clang-v { color: #b45309; font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   8. BENTO — Apple-style bento grid with orbs and SVG icons
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-bento {
  --bento-bg: #f8fafc;
  --bento-ink: #0f172a;
  --bento-blue: #3b82f6;
  --bento-purple: #8b5cf6;
  --bento-pink: #ec4899;
  --bento-amber: #f59e0b;
  --bento-green: #10b981;
  background: var(--bento-bg); color: var(--bento-ink);
  font-family: 'Inter', sans-serif;
  padding: 24px;
}
.cv-p.t-bento .bento-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  grid-template-areas:
    "name   photo   photo"
    "summary summary contact"
    "exp     exp    skills"
    "exp     exp    langs"
    "edu    edu    edu";
}
.cv-p.t-bento .bento-box {
  background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  position: relative; overflow: hidden;
}
/* Decorative orb in each box */
.cv-p.t-bento .bento-box::after {
  content: ""; position: absolute; top: -25px; right: -25px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.cv-p.t-bento .bento-name { grid-area: name; background: var(--bento-ink); color: #fff; }
.cv-p.t-bento .bento-name::after {
  background: radial-gradient(circle, var(--bento-blue), transparent 70%); opacity: 0.4;
  width: 100px; height: 100px; bottom: -30px; right: -30px; top: auto;
}
.cv-p.t-bento .bento-photo {
  grid-area: photo; padding: 10px; background: linear-gradient(135deg, var(--bento-purple), var(--bento-pink));
  display: flex; align-items: center; justify-content: center; min-height: 0;
}
.cv-p.t-bento .bento-photo-img {
  width: 70px; height: 70px; max-width: 70px; max-height: 70px;
  object-fit: cover; display: block;
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cv-p.t-bento .bento-photo-fallback {
  width: 70px; height: 70px; max-width: 70px; max-height: 70px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28pt; font-weight: 800;
  background: rgba(255,255,255,0.15); border: 3px solid #fff;
  border-radius: 50%;
}
.cv-p.t-bento .bento-summary { grid-area: summary; background: linear-gradient(135deg, #fff, #f1f5f9); border-left: 5px solid var(--bento-amber); }
.cv-p.t-bento .bento-contact { grid-area: contact; background: var(--bento-blue); color: #fff; }
.cv-p.t-bento .bento-contact::after { background: rgba(255,255,255,0.15); }
.cv-p.t-bento .bento-exp { grid-area: exp; background: #fff; border-left: 5px solid var(--bento-purple); }
.cv-p.t-bento .bento-skills { grid-area: skills; background: linear-gradient(135deg, var(--bento-green), #059669); color: #fff; }
.cv-p.t-bento .bento-skills::after { background: rgba(255,255,255,0.15); width: 80px; height: 80px; }
.cv-p.t-bento .bento-langs { grid-area: langs; background: var(--bento-ink); color: #fff; }
.cv-p.t-bento .bento-langs::after { background: rgba(245, 158, 11, 0.15); width: 60px; height: 60px; }
.cv-p.t-bento .bento-edu { grid-area: edu; background: #fff; border-left: 5px solid var(--bento-pink); }
/* Decorative SVG icon in each box corner */
.cv-p.t-bento .bento-icon {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; opacity: 0.4; z-index: 1;
}
.cv-p.t-bento .bento-icon svg { width: 100%; height: 100%; }
.cv-p.t-bento h1 {
  font-family: 'Inter', sans-serif;
  font-size: 22pt; font-weight: 800; letter-spacing: -0.5px;
  margin: 0 0 4px; line-height: 1.05; position: relative; z-index: 1;
}
.cv-p.t-bento .bento-title {
  font-size: 11pt; color: var(--bento-amber); font-weight: 600;
  letter-spacing: 0.5px; position: relative; z-index: 1;
}
.cv-p.t-bento .bento-contact .cc { flex-direction: column; gap: 8px; align-items: flex-start; }
.cv-p.t-bento .bento-contact .cc span {
  font-size: 8.5pt; display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.95); position: relative; z-index: 1;
}
.cv-p.t-bento .bento-contact .cc i { color: #fff; }
.cv-p.t-bento h2 {
  font-family: 'Inter', sans-serif;
  font-size: 9pt; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 10px;
  opacity: 0.7; position: relative; z-index: 1;
}
.cv-p.t-bento .cei { margin-bottom: 10px; padding-left: 12px; border-left: 2px solid #cbd5e1; position: relative; z-index: 1; }
.cv-p.t-bento .cei:last-child { margin-bottom: 0; }
.cv-p.t-bento .cer { font-weight: 700; font-size: 10pt; }
.cv-p.t-bento .cec { color: var(--bento-purple); font-size: 9pt; font-weight: 600; }
.cv-p.t-bento .ced { font-size: 8pt; color: #888; }
.cv-p.t-bento .cede { font-size: 8.5pt; color: #555; line-height: 1.5; margin-top: 3px; }
.cv-p.t-bento .csum { font-size: 9pt; line-height: 1.55; color: #444; position: relative; z-index: 1; }
.cv-p.t-bento .csl { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 1; }
.cv-p.t-bento .csb {
  display: inline-block; background: rgba(255,255,255,0.2);
  color: #fff; padding: 4px 10px; margin: 0; font-size: 8pt;
  font-weight: 600; border-radius: 8px;
}
.cv-p.t-bento .bento-langs .clang {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 8.5pt;
  position: relative; z-index: 1;
}
.cv-p.t-bento .bento-langs .clang-l { font-weight: 700; color: #fff; }
.cv-p.t-bento .bento-langs .clang-v { color: var(--bento-amber); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   9. MONO — Code editor with line numbers, file tab, syntax highlighting
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-mono {
  --mono-bg: #1e1e1e;
  --mono-panel: #252526;
  --mono-text: #d4d4d4;
  --mono-keyword: #569cd6;
  --mono-string: #ce9178;
  --mono-comment: #6a9955;
  --mono-fn: #dcdcaa;
  --mono-num: #b5cea8;
  --mono-line: #858585;
  --mono-class: #4ec9b0;
  background: var(--mono-bg); color: var(--mono-text);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  padding: 0; min-height: 100%; position: relative;
}
.cv-p.t-mono .mono-tabs {
  background: #2d2d2d; padding: 6px 0 0;
  display: flex; gap: 0; border-bottom: 1px solid #1e1e1e;
}
.cv-p.t-mono .mono-tab {
  padding: 8px 18px; background: var(--mono-bg); color: var(--mono-text);
  font-size: 9pt; border-top: 1px solid #3c3c3c;
  border-left: 1px solid #3c3c3c; border-right: 1px solid #3c3c3c;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 8px;
}
.cv-p.t-mono .mono-tab::before {
  content: ""; width: 10px; height: 10px; background: var(--mono-keyword);
  border-radius: 2px;
}
.cv-p.t-mono .mono-tab-close {
  margin-left: 8px; color: #888; font-size: 10pt;
}
.cv-p.t-mono .mono-editor {
  display: grid; grid-template-columns: 50px 1fr; min-height: 500px;
}
.cv-p.t-mono .mono-lines {
  background: var(--mono-bg); color: var(--mono-line);
  text-align: right; padding: 16px 10px 16px 0;
  font-size: 9pt; line-height: 1.6; user-select: none;
  font-family: 'JetBrains Mono', monospace;
  border-right: 1px solid #3c3c3c;
}
.cv-p.t-mono .mono-lines span { display: block; }
.cv-p.t-mono .mono-lines span.cur { color: var(--mono-fn); }
.cv-p.t-mono .mono-code {
  padding: 16px 20px; font-size: 9pt; line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
  white-space: pre-wrap; word-break: break-word;
}
.cv-p.t-mono .mono-photo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  padding: 10px; background: var(--mono-panel); border-radius: 4px;
  border-left: 3px solid var(--mono-keyword);
}
.cv-p.t-mono .mono-photo-img {
  width: 56px; height: 56px; border-radius: 4px; overflow: hidden;
  border: 1px solid #3c3c3c; flex-shrink: 0;
}
.cv-p.t-mono .mono-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-p.t-mono .mono-photo-text { flex: 1; }
.cv-p.t-mono h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18pt; font-weight: 700; color: var(--mono-class);
  margin: 0 0 2px; letter-spacing: -0.5px;
}
.cv-p.t-mono h1::before { content: "class "; color: var(--mono-keyword); }
.cv-p.t-mono h1::after { content: " {"; color: var(--mono-text); }
.cv-p.t-mono .mono-title {
  color: var(--mono-string); font-size: 9pt;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-mono .mono-title::before { content: "// "; color: var(--mono-comment); }
.cv-p.t-mono .cc {
  flex-direction: column; gap: 4px; align-items: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 8.5pt;
  padding: 8px 12px; background: var(--mono-panel); border-radius: 4px;
  border-left: 3px solid var(--mono-comment);
}
.cv-p.t-mono .cc::before {
  content: "const contact = {"; color: var(--mono-keyword);
  display: block; margin-bottom: 4px; font-size: 9pt;
}
.cv-p.t-mono .cc::after {
  content: "};"; color: var(--mono-text);
  display: block; margin-top: 4px; font-size: 9pt;
}
.cv-p.t-mono .cc span { color: var(--mono-text); display: flex; align-items: baseline; gap: 6px; }
.cv-p.t-mono .cc span::before {
  content: attr(data-key) ; color: var(--mono-keyword); font-weight: 700;
}
.cv-p.t-mono .cc i { display: none; }
.cv-p.t-mono h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11pt; font-weight: 700; color: var(--mono-fn);
  margin: 18px 0 8px; letter-spacing: 0;
}
.cv-p.t-mono h2::before { content: "// "; color: var(--mono-comment); }
.cv-p.t-mono h2::after { content: "() {"; color: var(--mono-text); }
.cv-p.t-mono .cei {
  margin-bottom: 10px; padding-left: 14px;
  border-left: 2px solid #3c3c3c; position: relative;
}
.cv-p.t-mono .cei::after {
  content: "}"; color: var(--mono-text); display: block;
  margin-top: 4px; padding-left: 14px; font-size: 9pt;
}
.cv-p.t-mono .ceh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-p.t-mono .cer { font-weight: 700; font-size: 10pt; color: var(--mono-fn); }
.cv-p.t-mono .cer::before { content: "▸ "; color: var(--mono-keyword); }
.cv-p.t-mono .cec { color: var(--mono-string); font-size: 9pt; }
.cv-p.t-mono .cec::before { content: "@"; color: var(--mono-keyword); }
.cv-p.t-mono .ced { font-size: 8pt; color: var(--mono-num); }
.cv-p.t-mono .cede { font-size: 8.5pt; color: var(--mono-text); line-height: 1.5; margin-top: 3px; }
.cv-p.t-mono .csum {
  font-size: 9pt; line-height: 1.55; color: var(--mono-text);
  background: rgba(106, 153, 85, 0.1); border-left: 3px solid var(--mono-comment);
  padding: 8px 12px; border-radius: 2px;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.cv-p.t-mono .csum::before { content: '""" '; color: var(--mono-string); }
.cv-p.t-mono .csum::after { content: ' """'; color: var(--mono-string); }
.cv-p.t-mono .csl { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; background: var(--mono-panel); border-radius: 4px; border-left: 3px solid var(--mono-class); }
.cv-p.t-mono .csl::before {
  content: "const skills = ["; color: var(--mono-keyword);
  display: block; width: 100%; margin-bottom: 4px; font-size: 9pt;
}
.cv-p.t-mono .csl::after {
  content: "];"; color: var(--mono-text);
  display: block; width: 100%; margin-top: 4px; font-size: 9pt;
}
.cv-p.t-mono .csb {
  display: inline-block; background: transparent; color: var(--mono-string);
  padding: 0; margin: 0; font-size: 8.5pt;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-mono .csb::before { content: '"'; color: var(--mono-comment); }
.cv-p.t-mono .csb::after { content: '", '; color: var(--mono-comment); }
.cv-p.t-mono .csb:last-child::after { content: '"'; color: var(--mono-comment); }
.cv-p.t-mono .clang {
  display: flex; justify-content: space-between; padding: 4px 0;
  border-bottom: 1px solid #3c3c3c; font-size: 8.5pt;
  font-family: 'JetBrains Mono', monospace;
}
.cv-p.t-mono .clang-l { color: var(--mono-fn); font-weight: 700; }
.cv-p.t-mono .clang-l::before { content: "▸ "; color: var(--mono-keyword); }
.cv-p.t-mono .clang-v { color: var(--mono-num); }
.cv-p.t-mono .mono-statusbar {
  background: var(--mono-panel); color: var(--mono-line);
  font-size: 8pt; padding: 5px 14px;
  display: flex; justify-content: space-between; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid #3c3c3c;
}
.cv-p.t-mono .mono-statusbar .mono-right { display: flex; gap: 12px; }
.cv-p.t-mono .mono-statusbar .mono-branch::before { content: "⎇ "; color: var(--mono-string); }

/* ═════════════════════════════════════════════════════════════════
   10. DIAMOND — Hexagonal photo, sacred geometry, gem SVGs, radiating lines
   ═════════════════════════════════════════════════════════════════ */
.cv-p.t-dia {
  --dia-rose: #be185d;
  --dia-soft: #fdf2f8;
  --dia-ink: #1f2937;
  --dia-bg: #fff;
  background: var(--dia-bg); color: var(--dia-ink);
  font-family: 'Inter', sans-serif;
  padding: 0; position: relative; overflow: hidden;
}
/* Sacred geometry pattern background */
.cv-p.t-dia::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    linear-gradient(60deg, var(--dia-rose) 1px, transparent 1px),
    linear-gradient(-60deg, var(--dia-rose) 1px, transparent 1px),
    linear-gradient(0deg, var(--dia-rose) 1px, transparent 1px);
  background-size: 22px 38px, 22px 38px, 22px 38px;
}
/* Sacred circles in corners */
.cv-p.t-dia::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    radial-gradient(circle at 0% 0%, var(--dia-rose) 0, transparent 80px),
    radial-gradient(circle at 100% 100%, var(--dia-rose) 0, transparent 80px);
}
.cv-p.t-dia .dia-masthead {
  text-align: center; padding: 36px 36px 22px;
  position: relative; z-index: 1;
}
/* Radiating lines from photo */
.cv-p.t-dia .dia-radiate {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 220px; z-index: 0; pointer-events: none;
}
.cv-p.t-dia .dia-radiate svg { width: 100%; height: 100%; opacity: 0.25; }
.cv-p.t-dia .dia-photo {
  width: 72px; height: 72px; margin: 0 auto 16px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--dia-rose), #f472b6);
  padding: 3px; position: relative;
  filter: drop-shadow(0 4px 10px rgba(190, 24, 93, 0.3));
}
.cv-p.t-dia .dia-photo-inner {
  width: 100%; height: 100%; overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #fff;
}
.cv-p.t-dia .dia-photo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Gem sparkle decoration */
.cv-p.t-dia .dia-sparkle {
  position: absolute; width: 24px; height: 24px; opacity: 0.5; z-index: 0;
  pointer-events: none;
}
.cv-p.t-dia .dia-sparkle.s1 { top: 60px; left: 80px; }
.cv-p.t-dia .dia-sparkle.s2 { top: 100px; right: 80px; }
.cv-p.t-dia .dia-sparkle.s3 { top: 30px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; }
.cv-p.t-dia .dia-sparkle svg { width: 100%; height: 100%; }
.cv-p.t-dia h1 {
  font-family: 'Inter', sans-serif;
  font-size: 26pt; font-weight: 900; letter-spacing: -1px;
  margin: 0 0 4px; line-height: 1.05; position: relative;
  display: inline-block;
}
.cv-p.t-dia h1::before, .cv-p.t-dia h1::after {
  content: "◆"; color: var(--dia-rose); font-size: 10pt;
  vertical-align: middle; margin: 0 10px;
}
.cv-p.t-dia .dia-title {
  font-size: 12pt; color: var(--dia-rose); font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.cv-p.t-dia .dia-contact { padding: 0 36px; position: relative; z-index: 1; }
.cv-p.t-dia .dia-contact .cc { justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.cv-p.t-dia .dia-contact .cc span {
  font-size: 8.5pt; color: #555; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--dia-soft); border-radius: 20px;
  border: 1px solid #fbcfe8;
}
.cv-p.t-dia .dia-contact .cc i { color: var(--dia-rose); }
.cv-p.t-dia .dia-body { padding: 20px 36px 32px; position: relative; z-index: 1; }
.cv-p.t-dia h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11pt; font-weight: 800; color: var(--dia-ink);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 26px 0 12px; display: flex; align-items: center; gap: 10px;
}
.cv-p.t-dia h2:first-child { margin-top: 0; }
.cv-p.t-dia h2::before {
  content: ""; width: 14px; height: 14px; background: var(--dia-rose);
  transform: rotate(45deg); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--dia-soft);
}
.cv-p.t-dia h2::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--dia-rose), transparent);
}
.cv-p.t-dia .cei { margin-bottom: 12px; padding-left: 22px; position: relative; }
.cv-p.t-dia .cei::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 10px; height: 10px; background: var(--dia-rose);
  transform: rotate(45deg);
}
.cv-p.t-dia .cei::after {
  content: ""; position: absolute; left: 8px; top: 16px;
  width: 2px; bottom: -10px; background: var(--dia-soft);
}
.cv-p.t-dia .cei:last-child::after { display: none; }
.cv-p.t-dia .cer { font-weight: 700; font-size: 10.5pt; }
.cv-p.t-dia .cec { color: var(--dia-rose); font-size: 9.5pt; font-weight: 600; }
.cv-p.t-dia .ced { font-size: 8.5pt; color: #888; font-weight: 600; }
.cv-p.t-dia .cede { font-size: 9pt; color: #555; line-height: 1.55; margin-top: 4px; }
.cv-p.t-dia .csum { font-size: 9.5pt; line-height: 1.6; color: #444; }
.cv-p.t-dia .csl { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-p.t-dia .csb {
  display: inline-block; background: var(--dia-soft);
  color: var(--dia-rose); padding: 5px 12px; margin: 0;
  font-size: 8pt; font-weight: 600; border-radius: 16px;
  border: 1px solid #fbcfe8; position: relative;
}
.cv-p.t-dia .csb::before {
  content: "◆"; color: var(--dia-rose); margin-right: 6px; font-size: 6pt;
  vertical-align: middle;
}
.cv-p.t-dia .clang { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--dia-soft); font-size: 9pt; }
.cv-p.t-dia .clang-l { font-weight: 700; }
.cv-p.t-dia .clang-v { color: var(--dia-rose); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════
   PRINT — keep template colors when exporting to PDF
   ═════════════════════════════════════════════════════════════════ */
@media print {
  .cv-p.t-gra, .cv-p.t-noir, .cv-p.t-ban, .cv-p.t-spl,
  .cv-p.t-card, .cv-p.t-bento, .cv-p.t-mono, .cv-p.t-dia,
  .cv-p.t-exe, .cv-p.t-edi {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .cv-p.t-noir::before, .cv-p.t-dia::before, .cv-p.t-dia::after,
  .cv-p.t-gra::after, .cv-p.t-ban::before,
  .cv-p.t-exe::before, .cv-p.t-exe::after {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ═════════════════════════════════════════════════════════════════
   LANDING SCREEN — "Edit existing CV" vs "Start over"
   Beautiful, modern, gradient-rich design with animations.
   ═════════════════════════════════════════════════════════════════ */
.landing {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; max-width: 800px; margin: 0 auto;
  text-align: center; min-height: 70vh;
}
.landing-head { margin-bottom: 48px; animation: fade-in-up 0.5s ease; }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in-up-delayed { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.landing-head h2 {
  font-size: 34pt; font-weight: 900; margin: 0 0 14px; letter-spacing: -1.5px;
  background-color: white;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.landing-head p {
  font-size: 14pt; color: var(--fg2, #64748b); line-height: 1.5;
  max-width: 560px; margin: 0 auto; font-weight: 400;
}
.landing-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  width: 100%; max-width: 720px;
}
@media (max-width: 640px) { .landing-cards { grid-template-columns: 1fr; gap: 20px; } }

/* Edit card — animated entrance */
.landing-card.edit { animation: fade-in-up-delayed 0.5s ease 0.1s both; }
.landing-card.new { animation: fade-in-up-delayed 0.5s ease 0.2s both; }

.landing-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 44px 32px; border-radius: 24px; cursor: pointer;
  background: var(--card, #fff); border: 2px solid var(--border, #e5e7eb);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center; position: relative; overflow: hidden;
}
/* Gradient border glow on hover */
.landing-card::after {
  content: ""; position: absolute; inset: -2px; border-radius: 24px;
  padding: 2px; opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; z-index: -1;
}
.landing-card.edit::after {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.landing-card.new::after {
  background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.landing-card::before {
  content: ""; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.landing-card.edit::before {
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(236,72,153,0.05) 100%);
}
.landing-card.new::before {
  background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, rgba(52,211,153,0.05) 100%);
}
.landing-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 24px 56px rgba(0,0,0,0.12);
}
.landing-card.edit:hover {
  box-shadow: 0 24px 56px rgba(99, 102, 241, 0.3);
}
.landing-card.new:hover {
  box-shadow: 0 24px 56px rgba(16, 185, 129, 0.3);
}
.landing-card:hover::before { opacity: 1; }
.landing-card:hover::after { opacity: 1; }

/* Icon circles with gradient backgrounds + glow */
.landing-card .lc-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34pt; color: #fff; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.landing-card.edit .lc-icon {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}
.landing-card.new .lc-icon {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}
.landing-card:hover .lc-icon {
  transform: scale(1.15) rotate(-5deg);
}
.landing-card.edit:hover .lc-icon {
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
}
.landing-card.new:hover .lc-icon {
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.5);
}

.landing-card h3 {
  font-size: 18pt; font-weight: 800; margin: 0;
  color: var(--fg, #1f2937); letter-spacing: -0.5px;
}
.landing-card p {
  font-size: 11pt; color: var(--fg2, #64748b); line-height: 1.55;
  margin: 0; max-width: 280px;
}

/* File format badges — pill-shaped with border */
.landing-card .lc-formats {
  display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center;
}
.landing-card .lc-format {
  padding: 4px 12px; border-radius: 8px; font-size: 8pt; font-weight: 800;
  background: rgba(99, 102, 241, 0.1); color: #6366f1;
  letter-spacing: 1px; border: 1px solid rgba(99, 102, 241, 0.2);
}
.landing-card.new .lc-format {
  background: rgba(16, 185, 129, 0.1); color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

/* Upload status box */
.landing-upload-status {
  margin-top: 32px; padding: 16px 24px; border-radius: 14px;
  font-size: 11pt; font-weight: 600; display: none;
  align-items: center; gap: 10px; justify-content: center;
  transition: all 0.3s ease;
  max-width: 720px;
}
.landing-upload-status.show { display: flex; animation: fade-in-up 0.3s ease; }
.landing-upload-status:not(.error):not(.success) {
  background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.2); color: #6366f1;
}
.landing-upload-status.error {
  background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.25); color: #dc2626;
}
.landing-upload-status.success {
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25); color: #10b981;
}

/* Dark theme */
:root[data-theme="dark"] .landing-head p { color: #94a3b8; }
:root[data-theme="dark"] .landing-card {
  background: #1e293b; border-color: #334155;
}
:root[data-theme="dark"] .landing-card h3 { color: #f1f5f9; }
:root[data-theme="dark"] .landing-card p { color: #94a3b8; }
:root[data-theme="dark"] .landing-card .lc-format {
  background: rgba(129, 140, 248, 0.15); color: #818cf8;
  border-color: rgba(129, 140, 248, 0.25);
}
:root[data-theme="dark"] .landing-card.new .lc-format {
  background: rgba(52, 211, 153, 0.15); color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}
:root[data-theme="dark"] .landing-upload-status:not(.error):not(.success) {
  background: rgba(129, 140, 248, 0.1); border-color: rgba(129, 140, 248, 0.25); color: #818cf8;
}

/* ═════════════════════════════════════════════════════════════════
   INLINE EDITING — visual hints for [data-edit] elements
   Double-click any text in the CV preview to edit it directly.
   ═════════════════════════════════════════════════════════════════ */
.cv-p [data-edit] {
  cursor: text;
  border-radius: 2px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.cv-p [data-edit]:hover {
  background-color: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}
.cv-p [data-edit][contenteditable="true"] {
  background-color: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 0 0 2px #6366f1 !important;
  outline: none;
}

/* ═════════════════════════════════════════════════════════════════
   CV FIELD POPOVER — appears next to the field being edited
   Theme-aware: adapts to light/dark mode automatically.
   ═════════════════════════════════════════════════════════════════ */
.cv-field-popover {
  position: fixed; z-index: 9999;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 12px 14px 10px;
  font-family: 'Inter', sans-serif; font-size: 9pt;
  min-width: 280px; max-width: 360px;
  display: none;
  animation: pop-in 0.15s ease;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cv-field-popover.show { display: block; }
.cv-field-popover .pop-title {
  font-weight: 800; color: #1f2937; font-size: 8pt;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
  padding-right: 18px;
}
.cv-field-popover .pop-title .pop-field-name { color: #6366f1; font-weight: 800; text-transform: none; letter-spacing: 0; }
.cv-field-popover .pop-close {
  position: absolute; top: 6px; right: 8px; cursor: pointer; color: #94a3b8;
  font-size: 14pt; line-height: 1; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; border-radius: 4px;
}
.cv-field-popover .pop-close:hover { background: #f1f5f9; color: #1f2937; }
.cv-field-popover .pop-row { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.cv-field-popover .pop-row:last-child { margin-bottom: 0; }
.cv-field-popover .pop-label {
  font-weight: 700; color: #64748b; font-size: 7pt;
  text-transform: uppercase; letter-spacing: 0.6px; min-width: 36px;
}
.cv-field-popover .pop-sw {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px #cbd5e1;
  transition: transform 0.1s ease;
}
.cv-field-popover .pop-sw:hover { transform: scale(1.18); }
.cv-field-popover .pop-sw.active { box-shadow: 0 0 0 2px #6366f1, 0 0 0 4px rgba(99,102,241,0.25); }
.cv-field-popover .pop-sw-custom {
  position: relative; overflow: hidden;
  background: conic-gradient(from 0deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.cv-field-popover .pop-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cv-field-popover .pop-sel {
  padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 5px;
  font-size: 8.5pt; flex: 1; background: #fff; color: #1f2937;
  font-family: 'Inter', sans-serif; cursor: pointer;
}
.cv-field-popover .pop-btn {
  padding: 4px 9px; border: 1px solid #cbd5e1; border-radius: 5px;
  background: #fff; cursor: pointer; font-size: 9pt;
  min-width: 26px; font-weight: 600; color: #1f2937; font-family: 'Inter', sans-serif;
  transition: background 0.1s ease, color 0.1s ease;
}
.cv-field-popover .pop-btn:hover { background: #f1f5f9; }
.cv-field-popover .pop-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.cv-field-popover .pop-btn.danger { color: #dc2626; border-color: #fecaca; }
.cv-field-popover .pop-btn.danger:hover { background: #fee2e2; }
.cv-field-popover .pop-size-val { min-width: 32px; text-align: center; font-size: 9pt; font-weight: 700; color: #1f2937; }

/* DARK THEME — popover adapts when data-theme="dark" */
:root[data-theme="dark"] .cv-field-popover {
  background: #1e293b; border-color: #475569; color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] .cv-field-popover .pop-title { color: #fff; }
:root[data-theme="dark"] .cv-field-popover .pop-title .pop-field-name { color: #818cf8; }
:root[data-theme="dark"] .cv-field-popover .pop-close { color: #94a3b8; }
:root[data-theme="dark"] .cv-field-popover .pop-close:hover { background: #334155; color: #fff; }
:root[data-theme="dark"] .cv-field-popover .pop-label { color: #94a3b8; }
:root[data-theme="dark"] .cv-field-popover .pop-sw { box-shadow: 0 0 0 1px #475569; }
:root[data-theme="dark"] .cv-field-popover .pop-sw.active { box-shadow: 0 0 0 2px #818cf8, 0 0 0 4px rgba(129,140,248,0.3); }
:root[data-theme="dark"] .cv-field-popover .pop-sel { background: #334155; color: #e2e8f0; border-color: #475569; }
:root[data-theme="dark"] .cv-field-popover .pop-sel option { background: #1e293b; color: #e2e8f0; }
:root[data-theme="dark"] .cv-field-popover .pop-btn { background: #334155; color: #e2e8f0; border-color: #475569; }
:root[data-theme="dark"] .cv-field-popover .pop-btn:hover { background: #475569; }
:root[data-theme="dark"] .cv-field-popover .pop-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }
:root[data-theme="dark"] .cv-field-popover .pop-btn.danger { color: #f87171; border-color: #7f1d1d; }
:root[data-theme="dark"] .cv-field-popover .pop-btn.danger:hover { background: #450a0a; }
:root[data-theme="dark"] .cv-field-popover .pop-size-val { color: #fff; }

/* ═════════════════════════════════════════════════════════════════
   CV ANALYSIS PANEL — live score, smart tips, ATS scanner, job match
   Appears below the CV preview. Drives downloads via gamification.
   ═════════════════════════════════════════════════════════════════ */
.cv-analysis {
  background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; padding: 20px; margin-top: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06); font-family: 'Inter', sans-serif;
}
.cv-analysis-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.cv-analysis-header h3 { font-size: 13pt; font-weight: 800; margin: 0; color: var(--fg, #1f2937); }
.cv-analysis-header .ai-badge {
  font-size: 7pt; font-weight: 800; padding: 2px 8px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
}

/* Score meter — circular animated */
.score-meter-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.score-meter {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22pt; font-weight: 900; position: relative;
  background: conic-gradient(var(--score-color, #6366f1) calc(var(--score, 0) * 1%), #e5e7eb 0);
  transition: background 0.5s ease;
}
.score-meter::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--card, #fff);
}
.score-meter span { position: relative; z-index: 1; color: var(--score-color, #6366f1); }
.score-info { flex: 1; }
.score-label { font-size: 10pt; font-weight: 700; color: var(--fg, #1f2937); margin-bottom: 2px; }
.score-sub { font-size: 8.5pt; color: var(--fg2, #64748b); line-height: 1.4; }
.score-bars { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.score-bar-row { display: flex; align-items: center; gap: 8px; }
.score-bar-label { font-size: 7.5pt; font-weight: 600; color: var(--fg2, #64748b); min-width: 90px; }
.score-bar-track { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease, background 0.3s ease; }

/* Smart tips */
.tips-section { margin-top: 14px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.tips-title { font-size: 9pt; font-weight: 800; color: var(--fg2, #64748b); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.tip-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px;
  border-radius: 8px; margin-bottom: 5px; font-size: 9pt; line-height: 1.4;
  transition: background 0.2s ease;
}
.tip-item.warning { background: rgba(251, 191, 36, 0.1); color: #92400e; }
.tip-item.success { background: rgba(16, 185, 129, 0.1); color: #065f46; }
.tip-item.danger { background: rgba(239, 68, 68, 0.08); color: #991b1b; }
.tip-item .tip-icon { font-size: 11pt; flex-shrink: 0; line-height: 1.2; }

/* Tabs */
.analysis-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.analysis-tab {
  padding: 6px 14px; border-radius: 8px; font-size: 8.5pt; font-weight: 700;
  cursor: pointer; border: 1px solid #e5e7eb; background: var(--card, #fff);
  color: var(--fg2, #64748b); transition: all 0.2s ease;
}
.analysis-tab:hover { background: #f8fafc; }
.analysis-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* Analyze button */
.analyze-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; margin-bottom: 12px; font-size: 10pt; font-weight: 700;
  border: 2px solid #6366f1; border-radius: 10px; cursor: pointer;
  background: rgba(99, 102, 241, 0.08); color: #6366f1;
  font-family: 'Inter', sans-serif; transition: all 0.2s ease;
}
.analyze-btn:hover { background: #6366f1; color: #fff; transform: scale(1.01); }

/* ATS Scanner */
.ats-view {
  background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 14px;
  font-family: 'Courier New', monospace; font-size: 8pt; line-height: 1.5;
  max-height: 200px; overflow-y: auto; white-space: pre-wrap;
  border: 1px solid #334155;
}
.ats-view .ats-label { color: #94a3b8; font-weight: 700; }
.ats-view .ats-field { color: #fbbf24; }
.ats-view .ats-value { color: #4ade80; }

/* Job Match */
.job-match-area textarea {
  width: 100%; min-height: 60px; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 8px 10px; font-size: 8.5pt; font-family: 'Inter', sans-serif;
  resize: vertical; background: var(--card, #fff); color: var(--fg, #1f2937);
}
.job-match-result { margin-top: 10px; }
.match-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.match-score { font-size: 16pt; font-weight: 900; color: var(--match-color, #6366f1); }
.match-bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 4px; background: var(--match-color, #6366f1); transition: width 0.5s ease; }
.match-keywords { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.match-keyword { font-size: 7.5pt; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.match-keyword.found { background: rgba(16, 185, 129, 0.15); color: #059669; }
.match-keyword.missing { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Download teaser */
.download-teaser {
  margin-top: 14px; padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff;
  text-align: center; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-teaser:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.download-teaser .teaser-score { font-size: 24pt; font-weight: 900; margin-bottom: 4px; }
.download-teaser .teaser-text { font-size: 9pt; opacity: 0.9; line-height: 1.4; }

/* Dark theme */
:root[data-theme="dark"] .cv-analysis { background: #1e293b; border-color: #334155; }
:root[data-theme="dark"] .cv-analysis-header h3 { color: #f1f5f9; }
:root[data-theme="dark"] .score-meter::before { background: #1e293b; }
:root[data-theme="dark"] .score-bar-track { background: #334155; }
:root[data-theme="dark"] .analysis-tab { background: #1e293b; border-color: #334155; color: #94a3b8; }
:root[data-theme="dark"] .analysis-tab:hover { background: #334155; }
:root[data-theme="dark"] .analyze-btn { background: rgba(129, 140, 248, 0.1); color: #818cf8; border-color: #818cf8; }
:root[data-theme="dark"] .analyze-btn:hover { background: #6366f1; color: #fff; }
:root[data-theme="dark"] .job-match-area textarea { background: #334155; color: #e2e8f0; border-color: #475569; }
:root[data-theme="dark"] .tip-item.warning { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
:root[data-theme="dark"] .tip-item.success { background: rgba(16, 185, 129, 0.12); color: #34d399; }
:root[data-theme="dark"] .tip-item.danger { background: rgba(239, 68, 68, 0.12); color: #f87171; }
