/* ===================== ROOT & RESET ===================== */
:root {
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --mid: #64748b;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --font: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

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

input,
textarea,
select {
  font-family: var(--font);
}

/* ===================== LANDING PAGE ===================== */
body.landing-page {
  background: #05080f;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.btn-nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 64px 60px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  gap: 48px;
  overflow: hidden;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.18);
  top: -100px;
  left: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.14);
  bottom: -80px;
  right: 200px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3), 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-xl {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.stat span {
  font-size: 0.78rem;
  color: #64748b;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Mockup */
.hero-mockup {
  flex: 0 0 420px;
  position: relative;
  z-index: 2;
}

.mockup-browser {
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.mockup-bar {
  background: #0f172a;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.r {
  background: #ef4444;
}

.dot.y {
  background: #f59e0b;
}

.dot.g {
  background: #22c55e;
}

.mockup-content {
  padding: 12px;
  background: #fff;
}

.mock-resume {
  padding: 16px;
}

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

.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  flex-shrink: 0;
}

.mock-name-bar {
  height: 10px;
  width: 140px;
  background: #1e293b;
  border-radius: 4px;
  margin-bottom: 6px;
}

.mock-title-bar {
  height: 7px;
  width: 100px;
  background: #64748b;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-contact-row {
  display: flex;
  gap: 8px;
}

.mock-contact-item {
  height: 6px;
  width: 60px;
  background: #cbd5e1;
  border-radius: 3px;
}

.mock-section-title {
  height: 8px;
  width: 80px;
  background: #2563eb;
  border-radius: 4px;
  margin: 12px 0 8px;
}

/* Mockup Specifics for Professional Template */
.tp-professional {
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.tp-prof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.tp-prof-name {
  height: 10px;
  width: 60px;
  background: #3b82f6;
  border-radius: 2px;
  margin-bottom: 4px;
}

.tp-prof-role {
  height: 6px;
  width: 40px;
  background: #93c5fd;
  border-radius: 2px;
}

.tp-prof-avatar {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  border-radius: 50%;
}

.tp-prof-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tp-prof-label {
  width: 30px;
  height: 6px;
  background: #3b82f6;
  border-radius: 1px;
  flex-shrink: 0;
}

.tp-prof-main {
  flex: 1;
}


.mock-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 5px;
}

.mock-line.w80 {
  width: 80%;
}

.mock-line.w60 {
  width: 60%;
}

.mock-line.w90 {
  width: 90%;
}

.mock-line.w70 {
  width: 70%;
}

.mock-line.w50 {
  width: 50%;
}

.mock-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mock-skill-tag {
  height: 18px;
  width: 56px;
  background: #eff6ff;
  border-radius: 4px;
}

.mock-skill-tag.w-sm {
  width: 42px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Section labels */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* Features */
.features-section {
  padding: 100px 0;
  background: #05080f;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Templates Section */
.templates-section {
  padding: 100px 0;
  background: #07090f;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.template-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(37, 99, 235, 0.2);
  z-index: 10;
}

.template-card.featured {
  border-color: rgba(37, 99, 235, 0.4);
}

.template-preview {
  background: #fff;
  height: 220px;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.template-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.template-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.template-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.template-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.template-badge.popular {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.btn-template {
  display: block;
  margin: 8px 16px 16px;
  padding: 10px;
  text-align: center;
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-template:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Template preview elements */
.tp-line {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 5px;
}

.tp-line.w75 {
  width: 75%;
}

.tp-line.w55 {
  width: 55%;
}

.tp-line.w80 {
  width: 80%;
}

.tp-line.w65 {
  width: 65%;
}

.tp-line.w85 {
  width: 85%;
}

.tp-line.w60 {
  width: 60%;
}

.tp-line.w70 {
  width: 70%;
}

.tp-line.w50 {
  width: 50%;
}

.tp-sec-title {
  height: 7px;
  border-radius: 3px;
  margin: 10px 0 7px;
  width: 60px;
}

.tp-st-blue {
  background: #2563eb;
}

.tp-st-accent {
  background: #7c3aed;
}

.tp-st-cr {
  background: #f43f5e;
}

.tp-st-min {
  background: #0f172a;
}

.tp-st-exec {
  background: #065f46;
}

.tp-st-tech {
  background: #1e40af;
}

.tp-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tp-tag {
  height: 14px;
  width: 44px;
  background: #eff6ff;
  border-radius: 3px;
}

.tp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #bfdbfe;
  margin-right: 8px;
  flex-shrink: 0;
}

.tp-info {
  flex: 1;
}

.tp-name {
  height: 8px;
  width: 90px;
  background: #1e293b;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tp-role {
  height: 6px;
  width: 65px;
  background: #94a3b8;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Classic template preview */
.tp-classic .tp-header {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #2563eb;
  margin-bottom: 8px;
}

/* Modern template preview */
.tp-modern {
  display: flex;
  gap: 12px;
}

.tp-sidebar {
  width: 60px;
  background: #1e293b;
  border-radius: 4px;
  flex-shrink: 0;
}

.tp-main-col {
  flex: 1;
}

.tp-name-mod {
  height: 9px;
  width: 100%;
  background: #1e293b;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tp-role-mod {
  height: 6px;
  width: 70%;
  background: #7c3aed;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Creative */
.tp-creative-header {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  padding: 12px;
  border-radius: 6px 6px 0 0;
  margin: -16px -16px 10px;
}

.tp-name-cr {
  height: 9px;
  width: 110px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  margin-bottom: 5px;
}

.tp-role-cr {
  height: 6px;
  width: 75px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

/* Minimal */
.tp-minimal {
  padding-top: 8px;
}

.tp-name-min {
  height: 10px;
  width: 120px;
  background: #0f172a;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tp-divider-min {
  height: 2px;
  background: #0f172a;
  width: 100%;
  margin: 8px 0;
}

.tp-role-min {
  height: 5px;
  width: 80px;
  background: #64748b;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Executive */
.tp-exec-top {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.tp-name-exec {
  height: 10px;
  width: 120px;
  background: #065f46;
  border-radius: 4px;
  margin: 0 auto 5px;
}

.tp-role-exec {
  height: 6px;
  width: 80px;
  background: #94a3b8;
  border-radius: 3px;
  margin: 0 auto 6px;
}

.tp-exec-line {
  height: 2px;
  background: #065f46;
  width: 100%;
}

.tp-two-col {
  display: flex;
  gap: 10px;
}

.tp-left-col,
.tp-right-col {
  flex: 1;
}

/* Tech */
.tp-tech-header {
  background: #0f172a;
  padding: 12px;
  margin: -16px -16px 10px;
  border-radius: 4px 4px 0 0;
  border-bottom: 3px solid #1e40af;
}

.tp-tech-name {
  height: 9px;
  width: 110px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 5px;
}

.tp-tech-role {
  height: 6px;
  width: 75px;
  background: #60a5fa;
  border-radius: 3px;
  margin-bottom: 8px;
}

.tp-tech-tags {
  display: flex;
  gap: 5px;
}

.tp-tech-tag {
  height: 12px;
  width: 36px;
  background: #1e40af;
  border-radius: 3px;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  background: #05080f;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05080f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: #475569;
  font-size: 0.85rem;
}

/* ===================== PROFESSIONAL LANDING REFRESH ===================== */
body.landing-page {
  background:
    linear-gradient(180deg, #f4f8ff 0%, #f7f9fc 42%, #eef4f8 100%);
  color: #102033;
}

body.landing-page .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.landing-page .nav-inner {
  max-width: 1200px;
}

body.landing-page .logo {
  color: #102033;
}

body.landing-page .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #102033;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

body.landing-page .nav-links a {
  color: #526173;
  font-weight: 600;
}

body.landing-page .nav-links a:hover {
  color: #102033;
}

body.landing-page .btn-nav-cta {
  background: linear-gradient(135deg, #102033, #1d4ed8);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.18);
}

body.landing-page .btn-nav-cta:hover {
  background: #24364a !important;
}

body.landing-page .hero {
  min-height: 88vh;
  max-width: 1240px;
  padding: 112px 48px 76px;
  gap: 64px;
  overflow: visible;
}

body.landing-page .hero::before {
  content: "";
  position: absolute;
  inset: 64px 24px 28px;
  z-index: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(16, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

body.landing-page .hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 96px;
  width: 52%;
  height: 68%;
  z-index: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.14));
  clip-path: polygon(18% 0, 100% 14%, 84% 100%, 0 82%);
}

body.landing-page .hero-content,
body.landing-page .hero-mockup {
  position: relative;
  z-index: 1;
}

body.landing-page .hero-content {
  max-width: 620px;
}

body.landing-page .hero-badge {
  background: #fff;
  border: 1px solid #d9e1ea;
  color: #526173;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.landing-page .hero-title {
  color: #102033;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

body.landing-page .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

body.landing-page .hero-subtitle {
  color: #526173;
  font-size: 1.08rem;
  max-width: 560px;
}

body.landing-page .hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

body.landing-page .hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d9e1ea;
  color: #415166;
  font-size: 0.82rem;
  font-weight: 700;
}

body.landing-page .hero-checks span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
}

body.landing-page .btn-primary {
  background: linear-gradient(135deg, #102033, #1d4ed8);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.22);
}

body.landing-page .btn-primary:hover {
  background: #24364a;
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.18);
}

body.landing-page .btn-ghost {
  background: #fff;
  border-color: #d9e1ea;
  color: #102033;
  border-radius: 8px;
}

body.landing-page .btn-ghost:hover {
  background: #f1f5f9;
  border-color: #b8c4d2;
  color: #102033;
}

body.landing-page .hero-stats {
  align-items: stretch;
  gap: 0;
  border: 1px solid #d9e1ea;
  background: rgba(255, 255, 255, 0.86);
  width: fit-content;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.08);
}

body.landing-page .stat {
  padding: 14px 18px;
}

body.landing-page .stat strong {
  color: #102033;
  font-size: 1.15rem;
}

body.landing-page .stat span {
  color: #637185;
}

body.landing-page .stat-divider {
  height: auto;
  background: #d9e1ea;
}

body.landing-page .hero-mockup {
  flex-basis: 450px;
  perspective: 1200px;
}

body.landing-page .mockup-browser {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(16, 32, 51, 0.18);
  animation: none;
  position: relative;
  transform: rotateY(-7deg) rotateX(2deg);
  transform-origin: center;
}

body.landing-page .mockup-floating-card {
  position: absolute;
  right: -34px;
  top: 72px;
  z-index: 3;
  width: 150px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dfe7ef;
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.18);
}

body.landing-page .floating-label {
  display: block;
  color: #637185;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

body.landing-page .mockup-floating-card strong {
  color: #102033;
  font-size: 0.98rem;
}

body.landing-page .mockup-bar {
  background: #102033;
}

body.landing-page .mockup-content {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #eef2f7;
}

body.landing-page .mock-resume {
  min-height: 520px;
  background: #fff;
  border: 1px solid #e5ebf2;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.1);
}

body.landing-page .mock-avatar {
  background: linear-gradient(135deg, #d6e2ef, #93c5fd);
}

body.landing-page .mock-section-title {
  background: #1d4ed8;
}

body.landing-page .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 20px;
  color: #637185;
  font-size: 0.82rem;
}

body.landing-page .hero-trust strong {
  color: #102033;
  font-weight: 800;
}

body.landing-page .features-section,
body.landing-page .templates-section,
body.landing-page .process-section,
body.landing-page .cta-section,
body.landing-page .footer {
  background: transparent;
}

body.landing-page .features-section,
body.landing-page .templates-section {
  padding: 88px 0;
}

body.landing-page .section-label {
  color: #526173;
}

body.landing-page .section-title {
  color: #102033;
  letter-spacing: 0;
}

body.landing-page .section-subtitle {
  color: #637185;
  max-width: 700px;
}

body.landing-page .features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.landing-page .feature-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
  position: relative;
  overflow: hidden;
}

body.landing-page .feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #14b8a6);
}

body.landing-page .feature-card:hover {
  background: #fff;
  border-color: #bdc8d6;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.1);
}

body.landing-page .feature-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  background: transparent;
  color: #1d4ed8;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

body.landing-page .process-section {
  padding: 36px 0 88px;
}

body.landing-page .process-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

body.landing-page .process-copy {
  background: linear-gradient(135deg, #102033, #1e3a8a);
  border-radius: 12px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 22px 48px rgba(16, 32, 51, 0.18);
}

body.landing-page .process-copy .section-label {
  color: #bfdbfe;
}

body.landing-page .process-copy .section-title {
  color: #fff;
  margin-bottom: 0;
}

body.landing-page .process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.landing-page .process-step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.07);
}

body.landing-page .process-step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 18px;
}

body.landing-page .process-step strong {
  display: block;
  color: #102033;
  margin-bottom: 8px;
}

body.landing-page .process-step p {
  color: #637185;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.landing-page .feature-card h3 {
  color: #102033;
}

body.landing-page .feature-card p {
  color: #637185;
}

body.landing-page .templates-section {
  border-top: 1px solid #e5ebf2;
  background: rgba(255, 255, 255, 0.34);
}

body.landing-page .template-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
  overflow: hidden;
}

body.landing-page .template-card:hover {
  border-color: #bdc8d6;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.12);
}

body.landing-page .template-preview {
  border-bottom: 1px solid #e5ebf2;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

body.landing-page .template-name {
  color: #102033;
}

body.landing-page .btn-template {
  background: #f1f5f9;
  color: #102033;
  border-color: #d9e1ea;
  border-radius: 8px;
}

body.landing-page .btn-template:hover {
  background: #102033;
  color: #fff;
  border-color: #102033;
}

body.landing-page .cta-section {
  padding: 88px 0;
  border-top: 1px solid #e5ebf2;
}

body.landing-page .cta-glow {
  display: none;
}

body.landing-page .cta-content h2 {
  color: #102033;
  letter-spacing: 0;
}

body.landing-page .cta-content p {
  color: #637185;
}

body.landing-page .footer {
  border-top: 1px solid #e5ebf2;
}

/* ===================== EDITOR PAGE ===================== */
body.editor-page {
  background: #0f172a;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.editor-header {
  height: 60px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 50;
}

.editor-logo .logo-text {
  font-size: 1rem;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  min-width: 0; /* Allow flex children to shrink/overflow */
}

.template-toolbar-group {
  position: relative;
  overflow: visible;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.toolbar-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.template-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: #fff;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.template-toggle-icon,
.template-toggle-chevron {
  color: #334155;
  font-size: 1rem;
  line-height: 1;
}

.template-toggle-chevron {
  margin-left: 4px;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.template-toolbar-group.is-collapsed .template-toggle-chevron {
  transform: rotate(180deg);
}

.template-selector {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 70;
  display: flex;
  gap: 16px;
  width: min(920px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: #fff;
  padding: 12px 16px 14px;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  transform: translateX(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.template-selector::-webkit-scrollbar {
  height: 9px;
}

.template-selector::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.template-selector::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}

.template-toolbar-group.is-collapsed .template-selector {
  opacity: 0;
  transform: translate(-50%, 8px);
  visibility: hidden;
  pointer-events: none;
}

.tmpl-btn {
  width: 144px;
  padding: 0;
  border: none;
  background: transparent;
  color: #111827;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.tmpl-btn:hover {
  transform: translateY(-1px);
}

.tmpl-name {
  font-size: 0.95rem;
  line-height: 1.1;
  color: #020617;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmpl-thumb {
  position: relative;
  width: 144px;
  aspect-ratio: 0.72;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.16);
}

.tmpl-btn.active .tmpl-thumb {
  border: 2px solid #4f46e5;
  box-shadow: 0 0 0 1px #4f46e5, 0 10px 22px rgba(79, 70, 229, 0.2);
}

.tmpl-thumb .thumbnail-page {
  width: 794px;
  min-height: 1122px;
  transform: scale(0.1814);
  transform-origin: top left;
  box-shadow: none;
  pointer-events: none;
}

.tmpl-thumb::before,
.tmpl-thumb::after {
  display: none;
}

.tmpl-thumb::before {
  background:
    linear-gradient(#111827, #111827) 16px 18px / 58px 9px no-repeat,
    linear-gradient(#2563eb, #2563eb) 78px 25px / 22px 3px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 16px 40px / 94px 3px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) 16px 52px / 112px 3px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 16px 76px / 52px 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e1e7ef 14px 17px, transparent 17px 25px) 16px 92px / 112px 96px no-repeat;
}

.thumb-classic::before {
  background:
    linear-gradient(#111827, #111827) 16px 18px / 70px 10px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 16px 39px / 108px 3px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) 16px 52px / 108px 3px no-repeat,
    linear-gradient(#2563eb, #2563eb) 16px 78px / 42px 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 13px, #e5e7eb 13px 16px, transparent 16px 24px) 16px 94px / 108px 88px no-repeat;
}

.thumb-modern::before {
  background:
    linear-gradient(#f1f5f9, #f1f5f9) left 0 / 42px 100% no-repeat,
    radial-gradient(circle at 22px 28px, #e2e8f0 0 13px, transparent 14px),
    linear-gradient(#2563eb, #2563eb) 54px 18px / 58px 6px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 54px 38px / 72px 3px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) 54px 52px / 72px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #dbe3ec 14px 17px, transparent 17px 25px) 54px 78px / 74px 108px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 15px, #cbd5e1 15px 17px, transparent 17px 28px) 12px 68px / 18px 98px no-repeat;
}

.thumb-creative::before {
  background:
    linear-gradient(#7c3aed, #7c3aed) left 0 / 100% 38px no-repeat,
    linear-gradient(#fff, #fff) 16px 18px / 60px 7px no-repeat,
    linear-gradient(#f3e8ff, #f3e8ff) 16px 30px / 42px 3px no-repeat,
    linear-gradient(#111827, #111827) 16px 58px / 52px 5px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 16px 80px / 112px 100px no-repeat;
}

.thumb-minimal::before {
  background:
    linear-gradient(#111827, #111827) 28px 26px / 82px 8px no-repeat,
    linear-gradient(#d1d5db, #d1d5db) 34px 47px / 70px 3px no-repeat,
    linear-gradient(#111827, #111827) 18px 78px / 46px 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 16px, transparent 16px 25px) 18px 95px / 108px 82px no-repeat;
}

.thumb-executive::before {
  background:
    linear-gradient(#0f172a, #0f172a) left 0 / 40px 100% no-repeat,
    linear-gradient(#334155, #334155) 0 0 / 100% 34px no-repeat,
    linear-gradient(#fff, #fff) 52px 15px / 56px 6px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 52px 44px / 72px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 52px 66px / 76px 116px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 16px, rgba(255,255,255,0.55) 16px 18px, transparent 18px 28px) 12px 58px / 16px 100px no-repeat;
}

.thumb-tech::before {
  background:
    linear-gradient(#111827, #111827) 0 0 / 100% 100% no-repeat,
    linear-gradient(#facc15, #facc15) 16px 24px / 72px 7px no-repeat,
    linear-gradient(#475569, #475569) 16px 48px / 96px 3px no-repeat,
    linear-gradient(#334155, #334155) 16px 60px / 86px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #334155 14px 17px, transparent 17px 25px) 16px 86px / 110px 92px no-repeat;
}

.thumb-elegant::before {
  background:
    linear-gradient(#2b2d35, #2b2d35) left 0 / 44px 100% no-repeat,
    linear-gradient(#9cc4c8, #9cc4c8) 44px 0 / 100px 38px no-repeat,
    radial-gradient(circle at 22px 28px, #f8fafc 0 13px, transparent 14px),
    linear-gradient(#fff, #fff) 58px 17px / 58px 6px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 58px 55px / 70px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 58px 78px / 70px 104px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 16px, rgba(255,255,255,0.55) 16px 18px, transparent 18px 28px) 12px 68px / 18px 98px no-repeat;
}

.thumb-bold::before {
  background:
    linear-gradient(#a92e22, #a92e22) left 0 / 48px 100% no-repeat,
    radial-gradient(circle at 24px 30px, #f8fafc 0 14px, transparent 15px),
    linear-gradient(#111827, #111827) 62px 18px / 58px 8px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 62px 42px / 70px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 62px 68px / 68px 110px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, rgba(255,255,255,0.7) 14px 16px, transparent 16px 24px) 14px 72px / 20px 96px no-repeat;
}

.thumb-startup::before {
  background:
    linear-gradient(#0b3fa8, #0b3fa8) left 0 / 48px 100% no-repeat,
    linear-gradient(#fff, #fff) 12px 22px / 24px 5px no-repeat,
    linear-gradient(#111827, #111827) 62px 18px / 62px 8px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 62px 42px / 68px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 62px 68px / 68px 110px no-repeat;
}

.thumb-corporate::before {
  background:
    linear-gradient(#eef2f7, #eef2f7) left 0 / 42px 100% no-repeat,
    radial-gradient(circle at 22px 28px, #dbe3ec 0 13px, transparent 14px),
    linear-gradient(#111827, #111827) 58px 20px / 40px 6px no-repeat,
    linear-gradient(#2563eb, #2563eb) 98px 28px / 28px 3px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 58px 42px / 74px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 58px 68px / 72px 110px no-repeat;
}

.thumb-professional::before {
  background:
    linear-gradient(#f8fafc, #f8fafc) 0 0 / 100% 100% no-repeat,
    linear-gradient(#111827, #111827) 16px 18px / 58px 9px no-repeat,
    linear-gradient(#2563eb, #2563eb) 78px 25px / 22px 3px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 16px 44px / 98px 4px no-repeat,
    linear-gradient(#e2e8f0, #e2e8f0) 16px 58px / 112px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 15px, #cfd8e3 15px 18px, transparent 18px 26px) 16px 84px / 112px 92px no-repeat;
}

.thumb-modern-dark::before {
  background:
    linear-gradient(#111827, #111827) 0 0 / 100% 100% no-repeat,
    linear-gradient(#facc15, #facc15) 16px 24px / 72px 7px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) 16px 48px / 80px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #374151 14px 17px, transparent 17px 25px) 16px 78px / 112px 96px no-repeat;
}

.thumb-classic-blue::before {
  background:
    linear-gradient(#1e3a8a, #1e3a8a) left 0 / 100% 48px no-repeat,
    linear-gradient(#fff, #fff) 16px 20px / 76px 8px no-repeat,
    linear-gradient(#bfdbfe, #bfdbfe) 16px 34px / 58px 3px no-repeat,
    linear-gradient(#111827, #111827) 16px 72px / 52px 5px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 16px 92px / 112px 88px no-repeat;
}

.thumb-minimal-formal::before {
  background:
    linear-gradient(#111827, #111827) 24px 22px / 88px 8px no-repeat,
    linear-gradient(#d1d5db, #d1d5db) 32px 42px / 72px 3px no-repeat,
    linear-gradient(#111827, #111827) 18px 70px / 46px 4px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) 18px 86px / 108px 2px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 15px, #e5e7eb 15px 17px, transparent 17px 26px) 18px 105px / 108px 76px no-repeat;
}

.thumb-traditional-serif::before {
  background:
    linear-gradient(#111827, #111827) 26px 24px / 84px 9px no-repeat,
    linear-gradient(#d1d5db, #d1d5db) 26px 44px / 84px 2px no-repeat,
    linear-gradient(#111827, #111827) 18px 72px / 48px 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #dedede 14px 16px, transparent 16px 25px) 18px 94px / 108px 84px no-repeat;
}

.thumb-europass::before {
  background:
    linear-gradient(#003399, #003399) left 0 / 46px 100% no-repeat,
    linear-gradient(#facc15, #facc15) 12px 24px / 22px 4px no-repeat,
    linear-gradient(#111827, #111827) 60px 20px / 60px 8px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 60px 42px / 70px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 60px 68px / 68px 110px no-repeat;
}

.thumb-modern-right::before {
  background:
    linear-gradient(#0f172a, #0f172a) right 0 / 42px 100% no-repeat,
    linear-gradient(#111827, #111827) 16px 18px / 60px 8px no-repeat,
    linear-gradient(#2563eb, #2563eb) 16px 38px / 40px 3px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 14px, #e5e7eb 14px 17px, transparent 17px 25px) 16px 66px / 72px 112px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 16px, rgba(255,255,255,0.55) 16px 18px, transparent 18px 28px) right 12px top 58px / 18px 104px no-repeat;
}

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

#accent-color {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid #334155;
  padding: 2px;
  cursor: pointer;
  background: none;
}

.editor-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost-sm {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost-sm:hover {
  background: #1e293b;
  color: #fff;
}

.editor-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Form Panel */
.form-panel {
  width: 380px;
  background: #0f172a;
  border-right: 1px solid #1e293b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.form-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 16px;
}

.form-scroll::-webkit-scrollbar {
  width: 4px;
}

.form-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.form-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.form-section {
  background: #1e293b;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #334155;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.section-header:hover {
  background: #283448;
}

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

.section-icon {
  font-size: 1rem;
}

.section-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.collapse-icon {
  color: #64748b;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.collapse-icon.collapsed {
  transform: rotate(-90deg);
}

.section-body {
  padding: 16px;
  border-top: 1px solid #334155;
}

.section-body.hidden {
  display: none;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 7px;
  color: #e2e8f0;
  padding: 9px 12px;
  font-size: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #475569;
}

.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px dashed #334155;
}

.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #64748b;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-upload {
  display: inline-block;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-upload:hover {
  background: #1d4ed8;
}

.btn-remove-photo {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-remove-photo:hover {
  border-color: #ef4444;
  color: #fff;
  background: rgba(239, 68, 68, 0.16);
}

.btn-remove-photo.hidden {
  display: none;
}

.photo-upload-info p {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

/* Form Panel Width */
.form-panel {
  width: 520px; /* Even wider as requested */
  background: #0f172a;
  border-right: 1px solid #1e293b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.form-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.form-section {
  background: #1e293b;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid #334155;
  overflow: hidden;
}

.section-header {
  padding: 16px 20px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid transparent;
}

.section-header:hover {
  background: #283448;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 1.2rem;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.section-body {
  padding: 20px;
  background: #0f172a; /* Darker inside the section */
}

/* Entry Cards */
.entry-card {
  background: #1e293b;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #334155;
  transition: all 0.2s;
  color: #e2e8f0;
}

.entry-card.collapsed {
  cursor: pointer;
  padding: 16px 20px;
}

.entry-card.collapsed:hover {
  background: #283448;
  border-color: #4f46e5;
}

.entry-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.entry-summary-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.btn-edit-entry {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #475569;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.btn-edit-entry:hover {
  border-color: #4f46e5;
  color: #fff;
  background: rgba(79, 70, 229, 0.1);
}

.entry-form {
  padding: 24px;
}

.entry-card.expanded {
  border: 2px solid #4f46e5;
  background: #1e293b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row > .form-group {
  flex: 1;
  min-width: 0;
}

.form-group {
  margin-bottom: 16px;
}

/* Rich Text Toolbar Repair */
.rt-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  background: #283448;
  border: 1px solid #334155;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.rt-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
}

.rt-btn:hover {
  background: #334155;
  color: #fff;
}

.rt-divider {
  width: 1px;
  height: 18px;
  background: #334155;
  margin: 0 4px;
}

.btn-ai-spark {
  width: auto !important;
  padding: 0 10px !important;
  font-size: 0.75rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
  height: 28px !important;
  margin-left: auto;
}

.rt-area {
  border-radius: 0 0 10px 10px !important;
}

/* Date Dropdowns Grid */
.date-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.date-select-row select {
  width: 100%;
}

.present-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
}

/* Switch Styling Fix */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4f46e5;
}

input:checked + .slider:before {
  transform: translateX(16px);
}



.form-group label {
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-size: 0.9rem !important;
  width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: #4f46e5 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

.entry-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #334155;
}

.btn-done {
  background: #4f46e5;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-done:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-delete-card {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #334155;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-card:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: rgba(79, 70, 229, 0.08);
  border: 2px dashed rgba(79, 70, 229, 0.3);
  border-radius: 14px;
  color: #a5b4fc;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  margin-top: 12px;
  cursor: pointer;
}

.btn-add:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: #4f46e5;
  color: #fff;
  border-style: solid;
}

.preview-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #070c16;
  overflow: hidden;
}

.preview-toolbar {
  height: 44px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-btn {
  width: 26px;
  height: 26px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.zoom-btn:hover {
  background: #334155;
  color: #fff;
}

#zoom-level {
  font-size: 0.8rem;
  color: #94a3b8;
  min-width: 42px;
  text-align: center;
}

.preview-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 32px 24px;
}

.preview-scroll::-webkit-scrollbar {
  width: 6px;
}

.preview-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.preview-page-wrapper {
  transition: transform 0.2s;
  transform-origin: top center;
}

.resume-page {
  --resume-page-bg: #ffffff;
  width: 794px;
  min-height: 1122px;
  background: var(--resume-page-bg);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden; /* Clips the spacer to the paper edges */
  overflow-wrap: anywhere;
  word-break: break-word;
  display: flex;
  flex-direction: column;
}

/* Template layout wrappers that should stretch to fill the printed page */
.tmpl-modern-right .mr-container,
.tmpl-portfolio .pf-shell,
.tmpl-clean-sidebar .cs-layout {
  flex: 1;
}

.pdf-export-root {
  position: absolute;
  left: 0;
  top: 0;
  width: 794px;
  min-height: 1122px;
  background: #fff;
  overflow: visible;
  transform: none !important;
  z-index: 2147483647;
  pointer-events: none;
}

.is-pdf-exporting .preview-page-wrapper,
.is-pdf-exporting .resume-page {
  transform: none !important;
}

.resume-page.pdf-exporting {
  width: 794px !important;
  min-height: 1122px;
  max-width: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.resume-page.pdf-exporting *,
.resume-page.pdf-exporting *::before,
.resume-page.pdf-exporting *::after {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.resume-page.pdf-exporting img {
  max-width: none;
}

.resume-page.pdf-exporting .r-avatar,
.resume-page.pdf-exporting .m-avatar,
.resume-page.pdf-exporting .prof-img,
.resume-page.pdf-exporting .cb-avatar,
.resume-page.pdf-exporting .mf-avatar,
.resume-page.pdf-exporting .ts-avatar,
.resume-page.pdf-exporting .ep-avatar,
.resume-page.pdf-exporting .mr-avatar,
.resume-page.pdf-exporting .nx-avatar,
.resume-page.pdf-exporting .pf-avatar {
  object-fit: cover;
  flex-shrink: 0;
}

.resume-page.pdf-exporting .r-section,
.resume-page.pdf-exporting .m-section,
.resume-page.pdf-exporting .md-section,
.resume-page.pdf-exporting .mf-section,
.resume-page.pdf-exporting .ep-section,
.resume-page.pdf-exporting .tl-item,
.resume-page.pdf-exporting .cp-item,
.resume-page.pdf-exporting .ed-section,
.resume-page.pdf-exporting .r-summary,
.resume-page.pdf-exporting .m-summary,
.resume-page.pdf-exporting .md-summary-text {
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-page .resume-page-spacer {
  display: block;
  flex: 0 0 auto;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  background: none;
}

/* Render all gap visuals as an absolute overlay attached directly to the root paper. 
   This guarantees it crosses the entire paper width (including sidebars). */
.resume-page .resume-page-gap-visual {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--spacer-y);
  /* height is set inline via JS */
  z-index: 5;
  pointer-events: none;
  
  background: 
    /* 1. Dashed line */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 4px, transparent 4px, transparent 8px) 
      0 calc(var(--resume-page-remainder, 0) + (var(--resume-page-gap, 14px) / 2)) / 100% 1px no-repeat,
      
    /* 2. Top shadow (cast from bottom of page 1) */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent) 
      0 var(--resume-page-remainder, 0) / 100% 12px no-repeat,
      
    /* 3. Bottom shadow (cast from top of page 2) */
    linear-gradient(to top, rgba(0, 0, 0, 0.06), transparent) 
      0 calc(var(--resume-page-remainder, 0) + var(--resume-page-gap, 14px) - 8px) / 100% 8px no-repeat,
      
    /* 4. The dark gap itself */
    linear-gradient(to bottom, #070c16, #070c16) 
      0 var(--resume-page-remainder, 0) / 100% var(--resume-page-gap, 14px) no-repeat;
}

.resume-page.pdf-exporting .resume-page-gap-visual {
  display: none;
}

/* ===================== RESUME TEMPLATES ===================== */

.r-icon-svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
  overflow: visible;
  color: var(--resume-accent, #2563eb);
}

/* Generic Template Elements */
.r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.r-skill {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: inherit;
}

/* ---- CLASSIC TEMPLATE ---- */
.tmpl-classic {
  font-family: 'Lato', sans-serif;
  color: #1e293b;
  padding: 48px;
}

.tmpl-classic .r-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--resume-accent, #2563eb);
  margin-bottom: 24px;
}

.tmpl-classic .r-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tmpl-classic .r-avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.tmpl-classic .r-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: #0f172a;
}

.tmpl-classic .r-title {
  font-size: 1rem;
  color: var(--resume-accent, #2563eb);
  font-weight: 600;
  margin-bottom: 8px;
}

.tmpl-classic .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmpl-classic .r-contact-item {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tmpl-classic .r-section {
  margin-bottom: 22px;
}

.tmpl-classic .r-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--resume-accent, #2563eb);
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.tmpl-classic .r-item {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--resume-accent-light, #bfdbfe);
}

.tmpl-classic .r-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.tmpl-classic .r-item-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 4px;
}

.tmpl-classic .r-item-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
}

.tmpl-classic .r-summary {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
}

.tmpl-classic .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmpl-classic .r-skill {
  background: var(--resume-accent-light, #eff6ff);
  color: var(--resume-accent, #2563eb);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tmpl-classic .r-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---- MODERN TEMPLATE (sidebar) ---- */
/* ---- MODERN TEMPLATE (Alex Simson style) ---- */
.tmpl-modern {
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff;
  min-height: 1122px;
}

.tmpl-modern .m-container {
  padding: 50px;
}

.tmpl-modern .m-header {
  display: flex;
  align-items: center;
  border-bottom: 3px solid #000;
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.tmpl-modern .m-avatar-wrap {
  margin-right: 30px;
}

.tmpl-modern .m-avatar,
.tmpl-modern .m-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tmpl-modern .m-header-info {
  flex: 1;
}

.tmpl-modern .m-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.tmpl-modern .m-contact {
  font-size: 0.95rem;
  color: #555;
}

.tmpl-modern .m-body {
  display: block;
}

.tmpl-modern .m-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin-bottom: 30px;
}

.tmpl-modern .m-section-left {
  display: contents;
}

.tmpl-modern .m-section-title {
  grid-column: 1;
  padding-right: 20px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.05em;
}

.tmpl-modern .m-section-right {
  display: contents;
}

.tmpl-modern .m-summary {
  grid-column: 2;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.tmpl-modern .m-item-row {
  display: contents;
}

.tmpl-modern .m-item-date {
  grid-column: 1;
  padding-right: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  padding-top: 10px;
}

.tmpl-modern .m-item-details {
  grid-column: 2;
  padding-top: 10px;
  padding-bottom: 20px;
}

.tmpl-modern .m-item-title-row {
  margin-bottom: 6px;
}

.tmpl-modern .m-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000;
}

.tmpl-modern .m-item-sub {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
  margin-bottom: 6px;
}

.tmpl-modern .m-item-loc {
  font-size: 0.9rem;
  color: #666;
  float: right;
}

.tmpl-modern .m-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.tmpl-modern .m-item-desc li {
  margin-bottom: 4px;
  margin-left: 18px;
}

.tmpl-modern .m-skills-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.tmpl-modern .m-skill-item {
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.tmpl-modern .m-skill-name {
  font-weight: 600;
  color: #000;
}

.tmpl-modern .m-skill-level {
  color: #666;
}

.tmpl-modern .m-ref-item {
  grid-column: 2;
  margin-bottom: 12px;
}

.tmpl-modern .m-ref-contact {
  font-size: 0.9rem;
  color: #555;
  margin-top: 2px;
}

/* ---- CREATIVE TEMPLATE ---- */
.tmpl-creative {
  font-family: 'Roboto', sans-serif;
  color: #1e293b;
}

.tmpl-creative .r-header {
  background: linear-gradient(135deg, var(--resume-accent, #f43f5e), #ec4899);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.tmpl-creative .r-avatar,
.tmpl-creative .r-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmpl-creative .r-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tmpl-creative .r-title {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.tmpl-creative .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmpl-creative .r-contact-item {
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tmpl-creative .r-body {
  padding: 36px 48px;
}

.tmpl-creative .r-section {
  margin-bottom: 24px;
}

.tmpl-creative .r-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--resume-accent, #f43f5e);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tmpl-creative .r-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #f1f5f9;
}

.tmpl-creative .r-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.tmpl-creative .r-item-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 5px;
}

.tmpl-creative .r-item-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.6;
}

.tmpl-creative .r-item {
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--resume-accent, #f43f5e);
}

.tmpl-creative .r-summary {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
}

.tmpl-creative .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmpl-creative .r-skill {
  background: #fdf2f8;
  color: var(--resume-accent, #f43f5e);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #fecdd3;
}

/* ---- MINIMAL TEMPLATE ---- */
.tmpl-minimal {
  font-family: 'Merriweather', serif;
  color: #1e293b;
  padding: 60px;
}

.tmpl-minimal .r-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tmpl-minimal .r-title {
  font-size: 1rem;
  color: var(--resume-accent, #475569);
  font-weight: 400;
  margin-bottom: 8px;
  font-style: italic;
}

.tmpl-minimal .r-divider {
  height: 1px;
  background: #0f172a;
  margin: 16px 0;
}

.tmpl-minimal .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.tmpl-minimal .r-contact-item {
  font-size: 0.78rem;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

.tmpl-minimal .r-section {
  margin-bottom: 28px;
}

.tmpl-minimal .r-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0f172a;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.tmpl-minimal .r-item {
  margin-bottom: 16px;
}

.tmpl-minimal .r-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.tmpl-minimal .r-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.tmpl-minimal .r-item-date {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
}

.tmpl-minimal .r-item-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 4px;
  font-style: italic;
}

.tmpl-minimal .r-item-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.7;
}

.tmpl-minimal .r-summary {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.8;
}

.tmpl-minimal .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tmpl-minimal .r-skill {
  font-size: 0.8rem;
  color: #475569;
  font-family: 'Inter', sans-serif;
}

.tmpl-minimal .r-skill::after {
  content: '·';
  margin-left: 6px;
  color: #cbd5e1;
}

.tmpl-minimal .r-skill:last-child::after {
  display: none;
}

/* ---- EXECUTIVE TEMPLATE ---- */
.tmpl-executive {
  font-family: 'Lato', sans-serif;
  color: #1e293b;
  padding: 48px;
}

.tmpl-executive .r-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 3px double var(--resume-accent, #065f46);
}

.tmpl-executive .r-name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 6px;
}

.tmpl-executive .r-title {
  font-size: 0.95rem;
  color: var(--resume-accent, #065f46);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.tmpl-executive .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tmpl-executive .r-contact-item {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tmpl-executive .r-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.tmpl-executive .r-section {
  margin-bottom: 22px;
}

.tmpl-executive .r-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--resume-accent, #065f46);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--resume-accent, #065f46);
}

.tmpl-executive .r-item {
  margin-bottom: 14px;
}

.tmpl-executive .r-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.tmpl-executive .r-item-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
}

.tmpl-executive .r-item-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.6;
}

.tmpl-executive .r-summary {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
  grid-column: 1/-1;
  margin-bottom: 20px;
}

.tmpl-executive .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tmpl-executive .r-skill {
  font-size: 0.78rem;
  color: var(--resume-accent, #065f46);
  border: 1px solid var(--resume-accent, #065f46);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ---- TECH TEMPLATE ---- */
.tmpl-tech {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

.tmpl-tech .r-header {
  background: #0f172a;
  color: #fff;
  padding: 36px 48px;
  border-bottom: 4px solid var(--resume-accent, #2563eb);
}

.tmpl-tech .r-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tmpl-tech .r-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tmpl-tech .r-title {
  font-size: 0.9rem;
  color: var(--resume-accent, #60a5fa);
  font-weight: 500;
}

.tmpl-tech .r-avatar,
.tmpl-tech .r-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmpl-tech .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmpl-tech .r-contact-item {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tmpl-tech .r-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tmpl-tech .r-tech-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.tmpl-tech .r-body {
  padding: 36px 48px;
}

.tmpl-tech .r-section {
  margin-bottom: 24px;
}

.tmpl-tech .r-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--resume-accent, #2563eb);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tmpl-tech .r-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.tmpl-tech .r-item {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
}

.tmpl-tech .r-item:hover {
  border-left-color: var(--resume-accent, #2563eb);
}

.tmpl-tech .r-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.tmpl-tech .r-item-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
}

.tmpl-tech .r-item-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.6;
}

.tmpl-tech .r-summary {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
}

.tmpl-tech .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmpl-tech .r-skill {
  background: #f1f5f9;
  color: #1e293b;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

.tmpl-tech .r-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

/* ---- ELEGANT TEMPLATE ---- */
.tmpl-elegant {
  font-family: 'Playfair Display', serif;
  color: #1e293b;
  padding: 60px;
  line-height: 1.8;
}

.tmpl-elegant .r-header {
  text-align: center;
  margin-bottom: 30px;
}

.tmpl-elegant .r-avatar,
.tmpl-elegant .r-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
}

.tmpl-elegant .r-name {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tmpl-elegant .r-title {
  font-size: 1.1rem;
  color: var(--resume-accent, #2563eb);
  font-style: italic;
  margin-bottom: 12px;
}

.tmpl-elegant .r-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
}

.tmpl-elegant .r-contact-item {
  color: #475569;
  position: relative;
}

.tmpl-elegant .r-section {
  margin-bottom: 24px;
}

.tmpl-elegant .r-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  position: relative;
}

.tmpl-elegant .r-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--resume-accent, #2563eb);
}

.tmpl-elegant .r-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-family: 'Inter', sans-serif;
}

.tmpl-elegant .r-item {
  margin-bottom: 24px;
  text-align: center;
}

.tmpl-elegant .r-item-title {
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.tmpl-elegant .r-item-sub {
  font-size: 0.9rem;
  color: var(--resume-accent, #2563eb);
  font-style: italic;
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
}

.tmpl-elegant .r-item-desc {
  font-size: 0.9rem;
  color: #475569;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.tmpl-elegant .r-summary {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
  margin: 0 auto 32px;
  color: #334155;
}

.tmpl-elegant .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tmpl-elegant .r-skill {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid var(--resume-accent-light, #bfdbfe);
  padding-bottom: 2px;
}

/* ---- BOLD TEMPLATE ---- */
.tmpl-bold {
  font-family: 'Inter', sans-serif;
  display: flex;
  min-height: 1122px;
  color: #1e293b;
}

.tmpl-bold .r-sidebar {
  width: 280px;
  background: #0f172a;
  color: #fff;
  padding: 48px 32px;
  flex-shrink: 0;
}

.tmpl-bold .r-sidebar-name {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.tmpl-bold .r-sidebar-title {
  font-size: 1.1rem;
  color: var(--resume-accent, #3b82f6);
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tmpl-bold .r-avatar,
.tmpl-bold .r-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 0;
  margin-bottom: 32px;
  border: none;
  filter: grayscale(100%);
  mix-blend-mode: luminosity;
  opacity: 0.8;
}

.tmpl-bold .r-sb-section {
  margin-bottom: 32px;
}

.tmpl-bold .r-sb-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  border-left: 3px solid var(--resume-accent, #3b82f6);
  padding-left: 10px;
}

.tmpl-bold .r-sb-item {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tmpl-bold .r-sb-item .r-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}


.tmpl-bold .r-skills-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmpl-bold .r-sb-skill-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tmpl-bold .r-main {
  flex: 1;
  padding: 48px 40px;
}

.tmpl-bold .r-summary-lead {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.5;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.tmpl-bold .r-section {
  margin-bottom: 32px;
}

.tmpl-bold .r-section-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 20px;
}

.tmpl-bold .r-item {
  margin-bottom: 24px;
}

.tmpl-bold .r-item-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.tmpl-bold .r-item-sub {
  font-size: 0.9rem;
  color: var(--resume-accent, #3b82f6);
  font-weight: 600;
  margin-bottom: 8px;
}

.tmpl-bold .r-item-desc {
  font-size: 0.9rem;
  color: #475569;
}

/* Sidebar Overrides for Bold Template */
.tmpl-bold .r-sidebar .r-section-title {
  color: #ffffff;
}

.tmpl-bold .r-sidebar .r-item-title {
  color: #ffffff;
}

.tmpl-bold .r-sidebar .r-item-sub,
.tmpl-bold .r-sidebar .r-item-desc,
.tmpl-bold .r-sidebar .r-summary {
  color: rgba(255, 255, 255, 0.8);
}

.tmpl-bold .r-sidebar .r-skill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ---- STARTUP TEMPLATE ---- */
.tmpl-startup {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  padding: 40px;
  background: #f8fafc;
  min-height: 1122px;
}

.tmpl-startup .r-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  border-top: 6px solid var(--resume-accent, #10b981);
}

.tmpl-startup .r-header-content {
  flex: 1;
}

.tmpl-startup .r-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.tmpl-startup .r-title {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 12px;
}

.tmpl-startup .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmpl-startup .r-contact-item {
  font-size: 0.8rem;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.tmpl-startup .r-avatar,
.tmpl-startup .r-avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
}

.tmpl-startup .r-section-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.tmpl-startup .r-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.tmpl-startup .r-col-main .r-section,
.tmpl-startup .r-col-side .r-section {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.tmpl-startup .r-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tmpl-startup .r-section-title::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--resume-accent-light, #d1fae5);
  border: 2px solid var(--resume-accent, #10b981);
  border-radius: 4px;
}

.tmpl-startup .r-item {
  margin-bottom: 20px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 16px;
}

.tmpl-startup .r-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tmpl-startup .r-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.tmpl-startup .r-item-sub {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}

.tmpl-startup .r-item-desc {
  font-size: 0.88rem;
  color: #475569;
}

.tmpl-startup .r-summary {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

.tmpl-startup .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmpl-startup .r-skill {
  background: var(--resume-accent, #10b981);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
}

/* ---- CORPORATE TEMPLATE ---- */
.tmpl-corporate {
  font-family: 'Lato', sans-serif;
  color: #1e293b;
  padding: 48px;
}

.tmpl-corporate .r-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.tmpl-corporate .r-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: justify;
  margin-bottom: 4px;
}

.tmpl-corporate .r-title {
  font-size: 1rem;
  color: var(--resume-accent, #0f172a);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.tmpl-corporate .r-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tmpl-corporate .r-contact-item {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}

.tmpl-corporate .r-contact-sep {
  color: #cbd5e1;
  margin: 0 4px;
}

.tmpl-corporate .r-section {
  margin-bottom: 28px;
}

.tmpl-corporate .r-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
}

.tmpl-corporate .r-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.tmpl-corporate .r-item {
  margin-bottom: 16px;
}

.tmpl-corporate .r-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-block;
}

.tmpl-corporate .r-item-sub {
  font-size: 0.85rem;
  color: #334155;
  display: inline-block;
  margin-left: 6px;
  font-style: italic;
}

.tmpl-corporate .r-item-desc {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 6px;
}

.tmpl-corporate .r-summary {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

.tmpl-corporate .r-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmpl-corporate .r-skill {
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
}

/* ---- MOCKUP PREVIEWS ---- */
.tp-elegant-header {
  text-align: center;
  padding-top: 8px;
  margin-bottom: 10px;
}

.tp-elegant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #94a3b8;
  margin: 0 auto 6px;
}

.tp-elegant-name {
  height: 10px;
  width: 90px;
  background: #1e293b;
  margin: 0 auto 4px;
}

.tp-elegant-role {
  height: 6px;
  width: 70px;
  background: #64748b;
  margin: 0 auto;
}

.tp-st-el {
  background: #2563eb;
  height: 7px;
  width: 40px;
  margin: 12px auto 6px;
  border-radius: 3px;
}

.tp-bold {
  display: flex;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.tp-bold-sidebar {
  width: 40px;
  background: #0f172a;
  height: 100%;
  flex-shrink: 0;
}

.tp-bold-main {
  flex: 1;
  padding: 12px;
}

.tp-bold-name {
  height: 12px;
  width: 100%;
  background: #0f172a;
  margin-bottom: 4px;
  border-radius: 4px;
}

.tp-bold-role {
  height: 6px;
  width: 60px;
  background: #3b82f6;
  margin-bottom: 16px;
  border-radius: 3px;
}

.tp-st-bold {
  background: #0f172a;
  width: 100%;
  margin-bottom: 8px;
  height: 7px;
  border-radius: 3px;
}

.tp-startup-header {
  background: #fff;
  padding: 10px;
  border-top: 3px solid #10b981;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tp-startup-name {
  height: 8px;
  width: 80px;
  background: #1e293b;
  margin-bottom: 4px;
  border-radius: 4px;
}

.tp-startup-role {
  height: 5px;
  width: 60px;
  background: #94a3b8;
  border-radius: 3px;
}

.tp-startup-body {
  background: #f8fafc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-startup-box {
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tp-st-start {
  background: #10b981;
  width: 50px;
  height: 7px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.tp-corp-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.tp-corp-name {
  height: 10px;
  width: 120px;
  background: #0f172a;
  margin-bottom: 4px;
  border-radius: 2px;
}

.tp-corp-role {
  height: 5px;
  width: 80px;
  background: #475569;
  border-radius: 2px;
}

.tp-corp-two-col {
  display: flex;
  gap: 8px;
}

.tp-corp-left {
  flex: 2;
}

.tp-corp-right {
  flex: 1;
}

.tp-st-corp {
  background: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2px;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 2px;
}

/* ===================== PRINT ===================== */
.print-only {
  display: none;
}

@media print {
  body.editor-page {
    overflow: visible;
    height: auto;
    background: #fff;
  }

  .editor-header,
  .form-panel,
  .preview-toolbar {
    display: none !important;
  }

  .editor-layout {
    display: block;
  }

  .preview-panel {
    display: block;
    background: #fff;
  }

  .preview-scroll {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .preview-page-wrapper {
    transform: none !important;
  }

  .resume-page {
    width: 100%;
    box-shadow: none;
    min-height: auto;
  }

  @page {
    size: A4;
    margin: 0;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 100px 32px 60px;
    text-align: center;
  }

  .hero-mockup {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .form-panel {
    width: 320px;
  }
}

@media (max-width: 768px) {
  body.editor-page {
    height: 100dvh;
    overflow: hidden;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .container {
    padding: 0 20px;
  }

  .editor-header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  .template-selector {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    gap: 12px;
    padding: 10px 12px 12px;
  }

  .tmpl-btn,
  .tmpl-thumb {
    width: 118px;
  }

  .tmpl-thumb .thumbnail-page {
    transform: scale(0.1486);
  }

  .editor-layout {
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .form-panel {
    width: 100%;
    height: min(52dvh, 520px);
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid #1e293b;
  }

  .preview-panel {
    flex: 1 1 auto;
    min-height: 300px;
    height: auto;
  }

  .preview-toolbar {
    height: 42px;
    padding: 0 16px;
    flex-shrink: 0;
  }

  .preview-scroll {
    justify-content: center;
    align-items: flex-start;
    padding: 16px 12px 20px;
    overflow: auto;
  }

  .preview-page-wrapper {
    flex: 0 0 auto;
  }

  .tmpl-executive .r-body {
    grid-template-columns: 1fr;
  }

  .tmpl-tech .r-two-col {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn-nav-cta) {
    display: none;
  }
}

@media (max-width: 1024px) {
  body.landing-page .hero {
    text-align: left;
    padding: 104px 32px 64px;
  }

  body.landing-page .hero-mockup {
    flex-basis: auto;
    width: min(520px, 100%);
  }

  body.landing-page .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-page .process-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.landing-page .navbar {
    padding: 0 16px;
  }

  body.landing-page .hero {
    padding: 92px 20px 56px;
    gap: 32px;
  }

  body.landing-page .hero-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  body.landing-page .hero-actions,
  body.landing-page .hero-stats {
    width: 100%;
  }

  body.landing-page .mockup-browser {
    transform: none;
  }

  body.landing-page .mockup-floating-card {
    right: 12px;
    top: 54px;
  }

  body.landing-page .hero-stats {
    flex-direction: column;
  }

  body.landing-page .stat-divider {
    width: 100%;
    height: 1px;
  }

  body.landing-page .features-grid {
    grid-template-columns: 1fr;
  }

  body.landing-page .process-steps {
    grid-template-columns: 1fr;
  }

  body.landing-page .features-section,
  body.landing-page .templates-section,
  body.landing-page .process-section,
  body.landing-page .cta-section {
    padding: 64px 0;
  }
}

/* ===================== LANDING V3 VISUAL DIRECTION ===================== */
body.landing-page {
  background:
    linear-gradient(120deg, rgba(29, 78, 216, 0.11), transparent 34%),
    linear-gradient(300deg, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #eef5fb 45%, #f8fafc 100%);
  color: #102033;
}

body.landing-page .navbar {
  height: 72px;
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(18px);
}

body.landing-page .hero {
  min-height: 94vh;
  display: block;
  max-width: none;
  padding: 132px max(28px, calc((100vw - 1180px) / 2)) 96px;
  overflow: hidden;
  isolation: isolate;
}

body.landing-page .hero::before {
  inset: 72px 0 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(16, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0));
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.65) 42%, transparent 92%);
}

body.landing-page .hero::after {
  right: -92px;
  top: 88px;
  width: 56vw;
  height: 78vh;
  background:
    linear-gradient(145deg, rgba(15, 32, 51, 0.94), rgba(29, 78, 216, 0.76) 58%, rgba(20, 184, 166, 0.72));
  clip-path: polygon(18% 0, 100% 7%, 91% 100%, 0 88%);
  box-shadow: 0 42px 110px rgba(16, 32, 51, 0.22);
}

body.landing-page .hero-content {
  max-width: 720px;
  padding-top: 22px;
}

body.landing-page .hero-badge {
  border-color: rgba(29, 78, 216, 0.18);
  color: #1d4ed8;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.08);
}

body.landing-page .hero-title {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 0.98;
}

body.landing-page .hero-subtitle {
  max-width: 610px;
  font-size: 1.15rem;
  color: #526173;
}

body.landing-page .hero-actions {
  margin-bottom: 28px;
}

body.landing-page .hero-checks {
  margin-bottom: 24px;
}

body.landing-page .hero-stats {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(16, 32, 51, 0.09);
}

body.landing-page .hero-trust {
  margin-top: 18px;
}

body.landing-page .hero-mockup {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 132px;
  width: min(450px, 35vw);
  pointer-events: none;
}

body.landing-page .mockup-browser {
  transform: rotateY(-10deg) rotateX(4deg) rotateZ(1deg);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 42px 90px rgba(16, 32, 51, 0.32),
    -24px 24px 70px rgba(29, 78, 216, 0.22);
}

body.landing-page .mockup-browser::before,
body.landing-page .mockup-browser::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 294px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(223, 231, 239, 0.9);
  box-shadow: 0 24px 52px rgba(16, 32, 51, 0.18);
}

body.landing-page .mockup-browser::before {
  left: -150px;
  bottom: 42px;
  transform: rotate(-9deg);
  background:
    linear-gradient(#1d4ed8, #1d4ed8) 22px 24px / 92px 8px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 22px 48px / 138px 4px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 20px, #e5e7eb 20px 24px, transparent 24px 34px) 22px 82px / 164px 164px no-repeat,
    #fff;
}

body.landing-page .mockup-browser::after {
  right: -132px;
  bottom: -22px;
  transform: rotate(8deg);
  background:
    linear-gradient(#102033, #102033) left 0 / 58px 100% no-repeat,
    linear-gradient(#14b8a6, #14b8a6) 78px 24px / 86px 8px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 20px, #e5e7eb 20px 24px, transparent 24px 34px) 78px 62px / 108px 164px no-repeat,
    #fff;
}

body.landing-page .mock-resume {
  min-height: 560px;
}

body.landing-page .mockup-floating-card {
  right: auto;
  left: -76px;
  top: 88px;
}

body.landing-page .hero-mini-panel {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(16, 32, 51, 0.16);
  backdrop-filter: blur(14px);
}

body.landing-page .hero-mini-panel span {
  color: #637185;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.landing-page .hero-mini-panel strong {
  color: #102033;
  font-size: 1.08rem;
}

body.landing-page .hero-mini-panel-top {
  right: -34px;
  top: 36px;
}

body.landing-page .hero-mini-panel-bottom {
  left: -42px;
  bottom: 28px;
}

body.landing-page .features-section {
  padding-top: 96px;
}

body.landing-page .features-section .container,
body.landing-page .templates-section .container,
body.landing-page .process-inner,
body.landing-page .cta-content {
  max-width: 1180px;
}

body.landing-page .section-label {
  padding: 6px 10px;
  border: 1px solid #d9e1ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

body.landing-page .feature-card,
body.landing-page .template-card,
body.landing-page .process-step {
  backdrop-filter: blur(10px);
}

body.landing-page .feature-card {
  padding: 32px;
  border-color: rgba(217, 225, 234, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.78));
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.landing-page .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 26px 56px rgba(16, 32, 51, 0.12);
}

body.landing-page .feature-card h3 {
  font-size: 1.12rem;
}

body.landing-page .feature-icon {
  border-radius: 10px;
  background: #102033;
  color: #fff;
}

body.landing-page .process-section {
  padding-top: 10px;
}

body.landing-page .process-copy {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.28), transparent 38%),
    linear-gradient(135deg, #0f2033, #1d4ed8);
}

body.landing-page .templates-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

body.landing-page .template-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.landing-page .template-card:hover {
  transform: translateY(-7px);
  border-color: rgba(29, 78, 216, 0.24);
  box-shadow: 0 24px 54px rgba(16, 32, 51, 0.12);
}

body.landing-page .template-card.featured {
  border-color: rgba(29, 78, 216, 0.34);
}

body.landing-page .tp-nordic,
body.landing-page .tp-timeline-new,
body.landing-page .tp-mono-new,
body.landing-page .tp-compact-new,
body.landing-page .tp-portfolio-new,
body.landing-page .tp-graduate-new,
body.landing-page .tp-clean-sidebar-new,
body.landing-page .tp-editorial-new {
  padding: 18px;
  background: #fff;
}

body.landing-page .tp-new-head {
  width: 50%;
  height: 12px;
  background: #102033;
  margin-bottom: 14px;
}

body.landing-page .tp-new-row,
body.landing-page .tp-new-line {
  height: 7px;
  background: #cbd5e1;
  border-radius: 999px;
  margin-bottom: 10px;
}

body.landing-page .tp-new-row.wide {
  width: 74%;
}

body.landing-page .tp-new-line {
  width: 70%;
  margin-left: 34px;
}

body.landing-page .tp-new-line.short {
  width: 48%;
}

body.landing-page .tp-new-grid {
  height: 82px;
  background:
    linear-gradient(#102033, #102033) 0 0 / 24% 100% no-repeat,
    repeating-linear-gradient(to bottom, #e5e7eb 0 7px, transparent 7px 18px) 34% 4px / 58% 72px no-repeat;
}

body.landing-page .tp-timeline-new {
  position: relative;
  background: #f8fafc;
}

body.landing-page .tp-timeline-rail {
  position: absolute;
  left: 22px;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(#1d4ed8, #14b8a6);
}

body.landing-page .tp-mono-new {
  background: #f7f7f4;
}

body.landing-page .tp-mono-title {
  width: 60%;
  height: 12px;
  margin: 0 auto 16px;
  background: #111;
}

body.landing-page .tp-mono-rule {
  height: 7px;
  margin-bottom: 18px;
  background: repeating-linear-gradient(90deg, #111 0 14px, transparent 14px 22px);
}

body.landing-page .tp-compact-lines {
  height: 112px;
  background: repeating-linear-gradient(to bottom, #d1d5db 0 5px, transparent 5px 15px);
}

body.landing-page .tp-portfolio-new,
body.landing-page .tp-clean-sidebar-new {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  padding: 0;
}

body.landing-page .tp-new-side {
  background: #102033;
}

body.landing-page .tp-new-side.light {
  background: #e2e8f0;
}

body.landing-page .tp-new-main {
  background:
    linear-gradient(#102033, #102033) 18px 20px / 62px 9px no-repeat,
    repeating-linear-gradient(to bottom, #e5e7eb 0 6px, transparent 6px 17px) 18px 52px / 96px 92px no-repeat;
}

body.landing-page .tp-graduate-new {
  background: #fffdf7;
  text-align: center;
}

body.landing-page .tp-grad-title {
  width: 62%;
  height: 13px;
  margin: 8px auto 14px;
  background: #1f2937;
}

body.landing-page .tp-grad-rule {
  height: 5px;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 20px;
}

body.landing-page .tp-editorial-new {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  background: #fafafa;
}

body.landing-page .tp-editorial-label {
  background: #1d4ed8;
}

body.landing-page .tp-editorial-copy {
  background:
    linear-gradient(#161616, #161616) 0 8px / 82px 12px no-repeat,
    repeating-linear-gradient(to bottom, #d4d4d4 0 7px, transparent 7px 20px) 0 42px / 118px 90px no-repeat;
}

body.landing-page .cta-section {
  padding: 96px 0;
}

body.landing-page .cta-content {
  padding: 56px 36px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.96), rgba(29, 78, 216, 0.9) 58%, rgba(20, 184, 166, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 70px rgba(16, 32, 51, 0.18);
}

body.landing-page .cta-content h2,
body.landing-page .cta-content p {
  color: #fff;
}

body.landing-page .cta-content p {
  opacity: 0.86;
}

@media (max-width: 1100px) {
  body.landing-page .hero {
    min-height: auto;
    padding-top: 116px;
  }

  body.landing-page .hero-mockup {
    position: relative;
    right: auto;
    top: auto;
    width: min(520px, 100%);
    margin-top: 44px;
  }
}

@media (max-width: 768px) {
  body.landing-page .hero {
    padding: 104px 20px 64px;
  }

  body.landing-page .hero::after {
    width: 92vw;
    height: 340px;
    right: -40vw;
    top: 116px;
    opacity: 0.38;
  }

  body.landing-page .hero-title {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  body.landing-page .mockup-browser::before,
  body.landing-page .mockup-browser::after,
  body.landing-page .mockup-floating-card,
  body.landing-page .hero-mini-panel {
    display: none;
  }
}

/* ---- PROFESSIONAL TEMPLATE (High Fidelity Replication) ---- */
.tmpl-professional {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  padding: 0;
  background: #fff;
  min-height: 1122px;
}

.tmpl-professional .prof-header {
  background: #f1f5f9;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.tmpl-professional .prof-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #3b82f6;
  margin-bottom: 4px;
  line-height: 1.1;
}

.tmpl-professional .prof-job-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 12px;
}

.tmpl-professional .prof-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #475569;
}

.tmpl-professional .r-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tmpl-professional .r-prof-icon {
  color: #3b82f6;
  font-weight: 700;
}

.tmpl-professional .prof-img,
.tmpl-professional .prof-ph {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tmpl-professional .prof-body {
  padding: 40px 50px;
}

/* ---- PROFESSIONAL TEMPLATE (High Fidelity Replication) ---- */
.tmpl-professional {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  padding: 0;
  background: #fff;
  min-height: 1122px;
  position: relative;
  overflow: hidden;
}

.tmpl-professional .prof-header {
  background: #f8fafc;
  padding: 30px 50px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #e2e8f0;
}

.tmpl-professional .prof-header-content {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}

.tmpl-professional .prof-name {
  font-size: 2.6rem;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 4px;
  line-height: 1.1;
  letter-spacing: -1px;
  word-wrap: break-word;
}

.tmpl-professional .prof-job-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: #1e293b;
  margin-bottom: 12px;
}

.tmpl-professional .prof-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: #475569;
}

.tmpl-professional .r-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tmpl-professional .r-icon-svg {
  color: #3b82f6;
}

.tmpl-professional .prof-photo {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.tmpl-professional .prof-img,
.tmpl-professional .prof-ph {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.tmpl-professional .prof-body {
  padding: 40px 50px;
  position: relative;
  z-index: 2;
}

/* 
  Continuous Section-based Timeline 
  Grid: 170px (dates) | 30px (bullets) | 1fr (content)
  Center of bullets = 170 + 15 = 185px
*/
.tmpl-professional .prof-section {
  display: grid;
  grid-template-columns: 170px 30px 1fr;
  padding-bottom: 20px; /* Provides space between sections while allowing timeline to connect */
  position: relative;
  z-index: 2;
}

/* Draw timeline line for every section, connecting them via padding */
.tmpl-professional .prof-section::before {
  content: "";
  position: absolute;
  left: 185px; /* Center of the 30px middle column */
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
  z-index: 1;
}

.tmpl-professional .prof-section.prof-no-timeline::before {
  display: none;
}

.tmpl-professional .prof-section:first-child::before {
  top: 10px; /* Start line slightly below the top of the first label */
}

.tmpl-professional .prof-section:last-child::before {
  bottom: 20px; /* End line at the content, don't draw through the final padding */
}

.tmpl-professional .prof-section-label {
  grid-column: 1;
  font-weight: 700;
  color: #3b82f6;
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.tmpl-professional .prof-item-row {
  display: contents;
}

.tmpl-professional .prof-date-side {
  grid-column: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  padding-top: 2px; /* Align text vertically with title */
  padding-right: 15px; /* Prevent date from touching the line */
}

.tmpl-professional .prof-bullet-side {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px; /* Align bullet perfectly with title text */
}

.tmpl-professional .prof-sq {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 1px;
  position: relative;
  z-index: 10;
}

.tmpl-professional .prof-content-side {
  grid-column: 3;
  margin-bottom: 16px;
  padding-left: 10px; /* Space between line and content */
}

.tmpl-professional .prof-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #000;
  margin-bottom: 4px;
}

.tmpl-professional .prof-item-sub {
  font-weight: 500;
  font-size: 0.95rem;
  color: #3b82f6;
  margin-bottom: 8px;
}

.tmpl-professional .prof-item-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.tmpl-professional .prof-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  grid-column: 3;
  padding-left: 10px;
}

.tmpl-professional .prof-skill-item {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
}

.tmpl-professional .prof-hobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  grid-column: 3;
  padding-left: 10px;
}

.tmpl-professional .prof-hobby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
}

.tmpl-professional .prof-hobby-bullet {
  width: 7px;
  height: 7px;
  background: #3b82f6;
  border-radius: 1px;
}

@media print {
  .tmpl-professional .prof-header { background: #f8fafc !important; print-color-adjust: exact; }
}





/* ===================== DRAG & DROP ===================== */
.entry-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.entry-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.entry-card.drag-over {
  border-top: 3px solid var(--accent);
}

.entry-drag-handle {
  cursor: grab;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-right: 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.entry-drag-handle:hover {
  background: var(--light);
  color: var(--accent);
}

.entry-drag-handle:active {
  cursor: grabbing;
}

.entry-header {
  display: flex;
  align-items: center;
}

/* ===================== DATE SELECTS ===================== */
.date-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.date-select-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--lighter);
  color: var(--dark);
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.date-select-row select:hover {
  border-color: var(--mid);
  background-color: var(--white);
}

.date-select-row select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* ===================== SECTION DRAG & DROP ===================== */
.form-section {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-dragging {
  opacity: 0.5;
  transform: scale(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section-drag-over {
  border-top: 4px solid var(--accent);
}

.section-header[draggable="true"] {
  cursor: grab;
}

.section-header[draggable="true"]:active {
  cursor: grabbing;
}

/* ---- MODERN DARK TEMPLATE ---- */
.tmpl-modern-dark {
  --resume-page-bg: #111111;
  background: var(--resume-page-bg);
  color: #eeeeee;
  font-family: 'Inter', sans-serif;
  min-height: 1122px;
  padding: 0;
}

.tmpl-modern-dark .md-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.tmpl-modern-dark .md-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 10px
  );
  pointer-events: none;
}


.tmpl-modern-dark .md-name {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -1.5px;
  line-height: 1;
}

.tmpl-modern-dark .md-role {
  font-size: 1.15rem;
  color: #ffca28;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tmpl-modern-dark .md-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.85rem;
  color: #d1d5db;
}

.tmpl-modern-dark .md-contacts span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tmpl-modern-dark .md-icon,
.tmpl-modern-dark .r-icon-svg {
  color: #ffca28 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmpl-modern-dark .md-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  padding: 50px;
}

.tmpl-modern-dark .md-sec-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tmpl-modern-dark .md-item {
  margin-bottom: 30px;
}

.tmpl-modern-dark .md-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.tmpl-modern-dark .md-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.tmpl-modern-dark .md-item-date {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.tmpl-modern-dark .md-item-sub {
  color: #ffca28;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tmpl-modern-dark .md-item-loc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.tmpl-modern-dark .md-item-desc {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 18px;
}

.tmpl-modern-dark .md-item-desc li {
  margin-bottom: 6px;
  position: relative;
  list-style: none;
}

.tmpl-modern-dark .md-item-desc li::before {
  content: "•";
  color: #ffca28;
  position: absolute;
  left: -18px;
}

.tmpl-modern-dark .md-summary-text {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
}

.tmpl-modern-dark .md-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.tmpl-modern-dark .md-skill-name {
  flex: 1;
  font-weight: 600;
  color: #fff;
}

.tmpl-modern-dark .md-skill-dots {
  display: flex;
  gap: 6px;
  margin: 0 15px;
}

.tmpl-modern-dark .md-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.tmpl-modern-dark .md-dot.active {
  background: #ffca28 !important;
}

.tmpl-modern-dark .md-skill-level {
  font-size: 0.75rem;
  color: #666;
  width: 50px;
  text-align: right;
}

.tmpl-modern-dark .md-cert-item {
  margin-bottom: 12px;
  font-weight: 600;
  color: #bbb;
}

.tmpl-modern-dark .md-lang-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #bbb;
}

.tmpl-modern-dark .md-lang-level {
  color: #666;
  font-size: 0.85rem;
}

/* Preview Thumbnails */
.tp-modern-dark {
  background: #111;
  position: relative;
}

.tp-md-header {
  height: 30px;
  background: #1a1a1a;
  padding: 5px;
}

.tp-md-name {
  width: 40%;
  height: 6px;
  background: #fff;
  margin-bottom: 4px;
}

.tp-md-role {
  width: 25%;
  height: 4px;
  background: #ffca28;
}

.tp-md-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}

.tp-st-yellow {
  height: 5px;
  background: #ffca28;
  width: 30%;
  margin-bottom: 8px;
}

@media print {
  .tmpl-modern-dark {
    background: #111 !important;
    color: #eee !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}



/* Add Section Footer & Popover */
.add-section-footer {
  position: relative;
  padding: 20px;
  background: #1e293b;
  border-top: 1px solid #334155;
  z-index: 100;
}

.btn-add-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-add-section-toggle:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.add-section-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 20px;
  right: 20px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.add-section-popover.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

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

.popover-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-close-popover {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.btn-close-popover:hover {
  color: #f1f5f9;
}

.popover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.btn-popover-item:hover {
  background: #2d3e5a;
  border-color: #475569;
  transform: scale(1.02);
}

.btn-popover-item .item-icon {
  font-size: 1.1rem;
}

.btn-popover-item.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
  color: #60a5fa;
}

.form-section.hidden {
  display: none !important;
}

/* ============================================================
   ---- NEW TEMPLATES CSS ----
   ============================================================ */

/* ---- CLASSIC BLUE TEMPLATE ---- */
.tmpl-classic-blue {
  font-family: 'Georgia', serif;
  color: #333;
  min-height: 1122px;
  background: #fff;
}

.tmpl-classic-blue .cb-header {
  background: #1e3a8a;
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.tmpl-classic-blue .cb-avatar,
.tmpl-classic-blue .cb-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 0;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.tmpl-classic-blue .cb-header-right {
  flex: 1;
}

.tmpl-classic-blue .cb-name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.tmpl-classic-blue .cb-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.tmpl-classic-blue .cb-contact {
  font-size: 0.85rem;
  font-family: 'Helvetica', 'Arial', sans-serif;
  opacity: 0.9;
}

.tmpl-classic-blue .cb-contact a {
  color: #fff;
  text-decoration: none;
}

.tmpl-classic-blue .cb-body {
  padding: 40px;
}

.tmpl-classic-blue .r-section {
  margin-bottom: 25px;
}

.tmpl-classic-blue .r-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.tmpl-classic-blue .r-item {
  margin-bottom: 15px;
}

.tmpl-classic-blue .r-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  display: inline-block;
}

.tmpl-classic-blue .r-item-sub {
  font-size: 1rem;
  color: #444;
  display: inline-block;
}

.tmpl-classic-blue .r-item-sub::before {
  content: " — ";
}

.tmpl-classic-blue .r-item-desc {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  margin-top: 5px;
}

.tmpl-classic-blue .r-summary {
  font-size: 0.95rem;
  line-height: 1.6;
}

.tmpl-classic-blue .cb-skills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 20px;
}

.tmpl-classic-blue .cb-skill-item {
  display: flex;
  justify-content: space-between;
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.tmpl-classic-blue .cb-skill-name {
  font-weight: 700;
  color: #1e3a8a;
}

.tmpl-classic-blue .cb-skill-level {
  color: #666;
}

/* ---- MINIMAL FORMAL TEMPLATE ---- */
.tmpl-minimal-formal {
  font-family: "Times New Roman", Times, serif;
  color: #000;
  min-height: 1122px;
  padding: 50px;
  background: #fff;
  line-height: 1.4;
}

.tmpl-minimal-formal .mf-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tmpl-minimal-formal .mf-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.tmpl-minimal-formal .mf-info-col {
  flex: 1;
}

.tmpl-minimal-formal .mf-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tmpl-minimal-formal .mf-contact {
  font-size: 0.95rem;
  color: #000;
}

.tmpl-minimal-formal .mf-section {
  border-top: 2px solid #000;
  padding-top: 12px;
  margin-bottom: 25px;
}

.tmpl-minimal-formal .r-section {
  border-top: 2px solid #000;
  padding-top: 12px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 15px;
}

.tmpl-minimal-formal .r-section-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  border: none;
}

.tmpl-minimal-formal .r-item {
  grid-column: 2;
  margin-bottom: 12px;
}

.tmpl-minimal-formal .mf-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  border: none;
}

.tmpl-minimal-formal .mf-item-row {
  display: grid;
  grid-template-columns: 160px 1fr minmax(100px, max-content);
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.tmpl-minimal-formal .mf-date-col {
  font-size: 0.95rem;
}

.tmpl-minimal-formal .mf-item-title {
  font-weight: 700;
  font-size: 1rem;
}

.tmpl-minimal-formal .mf-loc-col {
  text-align: right;
  font-size: 0.95rem;
}

.tmpl-minimal-formal .r-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 6px;
  padding-left: 0;
}

.tmpl-minimal-formal .r-item-desc ul {
  margin: 0;
  padding-left: 15px;
}

.tmpl-minimal-formal .r-item-desc li {
  margin-bottom: 4px;
}

.tmpl-minimal-formal .mf-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
}

.tmpl-minimal-formal .mf-skill-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.tmpl-minimal-formal .mf-skill-name {
  font-weight: 700;
}

.tmpl-minimal-formal .mf-skill-level {
  color: #444;
}

.tmpl-minimal-formal .r-summary {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- TRADITIONAL SERIF TEMPLATE ---- */
.tmpl-traditional-serif {
  font-family: 'Times New Roman', serif;
  color: #000;
  padding: 50px;
  text-align: center;
  background: #fff;
  min-height: 1122px;
}

.tmpl-traditional-serif .ts-header {
  margin-bottom: 30px;
}

.tmpl-traditional-serif .ts-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.tmpl-traditional-serif .ts-avatar,
.tmpl-traditional-serif .ts-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.tmpl-traditional-serif .ts-contact {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.tmpl-traditional-serif .ts-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.tmpl-traditional-serif .ts-title {
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
}

.tmpl-traditional-serif .ts-body {
  text-align: left;
}

.tmpl-traditional-serif .r-section {
  margin-bottom: 25px;
}

.tmpl-traditional-serif .r-section-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 5px 0;
  margin-bottom: 20px;
}

.tmpl-traditional-serif .r-item {
  margin-bottom: 15px;
}

.tmpl-traditional-serif .r-item-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  display: inline-block;
}

.tmpl-traditional-serif .ts-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.tmpl-traditional-serif .ts-item-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: #000;
}

.tmpl-traditional-serif .ts-item-date {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
}

.tmpl-traditional-serif .ts-item-sub {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
}

.tmpl-traditional-serif .ts-item-loc {
  font-size: 0.95rem;
  color: #333;
}

.tmpl-traditional-serif .ts-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 5px;
}

.tmpl-traditional-serif .r-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.tmpl-traditional-serif .ts-skills {
  font-size: 1.05rem;
  color: #333;
}

/* ---- EUROPASS TEMPLATE ---- */
.tmpl-europass {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #333;
  min-height: 1122px;
  line-height: 1.5;
}

.tmpl-europass .ep-header {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
}

.tmpl-europass .ep-header-left {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  flex: 1;
}

.tmpl-europass .ep-avatar,
.tmpl-europass .ep-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.tmpl-europass .ep-info {
  flex: 1;
}

.tmpl-europass .ep-name {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.tmpl-europass .ep-header-line {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  width: 100%;
}

.tmpl-europass .ep-contacts {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #fff;
}

.tmpl-europass .ep-contacts strong {
  font-weight: 700;
}

.tmpl-europass .ep-contacts a {
  color: #fff;
  text-decoration: none;
}

.tmpl-europass .ep-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tmpl-europass .ep-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.tmpl-europass .ep-body {
  padding: 40px 60px 40px 100px;
}

.tmpl-europass .ep-section,
.tmpl-europass .r-section {
  margin-bottom: 35px;
  position: relative;
}

.tmpl-europass .ep-section-title,
.tmpl-europass .r-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 15px;
  position: relative;
}

.tmpl-europass .ep-section-title::before,
.tmpl-europass .r-section-title::before {
  content: "•";
  color: #a0a0a0;
  font-size: 1.8rem;
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
}

.tmpl-europass .ep-item,
.tmpl-europass .r-item {
  margin-bottom: 25px;
  border-top: 1px solid #eaeaea;
  padding-top: 10px;
}

.tmpl-europass .ep-item-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 4px;
}

.tmpl-europass .ep-item-title {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #000;
}

.tmpl-europass .ep-item-title strong {
  font-weight: 700;
  text-transform: uppercase;
}

.tmpl-europass .ep-item-company {
  text-transform: uppercase;
  color: #333;
  margin-left: 5px;
  font-weight: 400;
}

.tmpl-europass .r-item-desc,
.tmpl-europass .r-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-top: 5px;
}

.tmpl-europass .r-summary {
  padding-top: 5px;
}

.tmpl-europass .r-item-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.tmpl-europass .r-item-sub {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.tmpl-europass .ep-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  border-top: 1px solid #eaeaea;
  padding-top: 10px;
}
.tmpl-europass .ep-skill-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
}
.tmpl-europass .ep-skill-name {
  font-weight: 700;
  color: #333;
}
.tmpl-europass .ep-skill-level {
  color: #666;
}

/* ---- MODERN RIGHT TEMPLATE ---- */
.tmpl-modern-right {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  min-height: 1122px;
}

.tmpl-modern-right .mr-container {
  display: flex;
  min-height: 1122px;
}

.tmpl-modern-right .mr-main {
  flex: 1;
  background: #fff;
  padding: 50px;
}

.tmpl-modern-right .mr-sidebar {
  width: 280px;
  background: #0f172a;
  color: #fff;
  padding: 50px 30px;
  flex-shrink: 0;
}

.tmpl-modern-right .mr-header {
  margin-bottom: 40px;
}

.tmpl-modern-right .mr-name {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.1;
}

.tmpl-modern-right .mr-title {
  font-size: 1.2rem;
  color: var(--resume-accent, #3b82f6);
  font-weight: 600;
  margin-bottom: 15px;
}

.tmpl-modern-right .mr-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: #fff;
  word-break: break-all;
}

.tmpl-modern-right .mr-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.tmpl-modern-right .mr-contact-item .r-icon-svg {
  width: 16px;
  height: 16px;
}

.tmpl-modern-right .mr-sidebar-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.tmpl-modern-right .mr-sidebar-section {
  margin-bottom: 25px;
}

.tmpl-modern-right .mr-avatar,
.tmpl-modern-right .mr-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 30px;
  display: block;
}

.tmpl-modern-right .r-section {
  margin-bottom: 25px;
}

.tmpl-modern-right .r-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.mr-sidebar .r-section-title {
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

.tmpl-modern-right .r-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--resume-accent, #3b82f6);
}

.mr-sidebar .r-item-title {
  color: #fff !important;
  font-size: 0.95rem;
}

.tmpl-modern-right .r-item-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.tmpl-modern-right .r-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.mr-sidebar .r-item-sub,
.mr-sidebar .r-item-desc {
  color: rgba(255,255,255,0.8) !important;
}

.tmpl-modern-right .r-skills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmpl-modern-right .mr-sidebar .r-skill {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  padding: 4px 0;
  color: #cbd5e1;
}

@media print {
  .tmpl-classic-blue .cb-header { background: #1e3a8a !important; print-color-adjust: exact; }
  .tmpl-europass .ep-header { background: #000 !important; print-color-adjust: exact; }
  .tmpl-europass .ep-logo rect { fill: #003399 !important; print-color-adjust: exact; }
  .tmpl-modern-right .mr-sidebar { background: #0f172a !important; print-color-adjust: exact; }
}

/* ---- NORDIC TEMPLATE ---- */
.tmpl-nordic {
  --resume-page-bg: #fbfbf8;
  font-family: 'Inter', sans-serif;
  background: var(--resume-page-bg);
  color: #17211d;
  padding: 48px;
  min-height: 1122px;
}

.tmpl-nordic .nx-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid #17211d;
}

.tmpl-nordic .nx-kicker {
  color: var(--resume-accent, #2563eb);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.tmpl-nordic .nx-name {
  max-width: 560px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 0.98;
}

.tmpl-nordic .nx-avatar,
.tmpl-nordic .nx-avatar-placeholder {
  width: 118px;
  height: 118px;
  border-radius: 18px;
  object-fit: cover;
}

.tmpl-nordic .nx-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px 0 34px;
  color: #48534f;
  font-size: 0.86rem;
}

.tmpl-nordic .nx-contact span,
.tmpl-nordic .nx-contact a {
  color: inherit;
  text-decoration: none;
}

.tmpl-nordic .r-section {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.tmpl-nordic .r-section-title {
  color: #17211d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border: none;
}

.tmpl-nordic .r-section-title {
  grid-column: 1;
  grid-row: 1 / -1;
}

.tmpl-nordic .r-section > :not(.r-section-title) {
  grid-column: 2;
}

.tmpl-nordic .r-item-title {
  color: #17211d;
  font-size: 1.05rem;
  font-weight: 800;
}

.tmpl-nordic .r-item-desc,
.tmpl-nordic .r-summary {
  color: #48534f;
  line-height: 1.65;
}

/* ---- TIMELINE TEMPLATE ---- */
.tmpl-timeline {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #172033;
  padding: 46px 54px;
  min-height: 1122px;
}

.tmpl-timeline .tl-header {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.tmpl-timeline .tl-mark {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--resume-accent, #2563eb), #14b8a6);
}

.tmpl-timeline .tl-name {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1;
}

.tmpl-timeline .tl-title {
  color: var(--resume-accent, #2563eb);
  font-weight: 800;
  margin: 8px 0 14px;
}

.tmpl-timeline .tl-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #667085;
  font-size: 0.85rem;
}

.tmpl-timeline .tl-contact span,
.tmpl-timeline .tl-contact a {
  color: inherit;
  text-decoration: none;
}

.tmpl-timeline .r-section {
  position: relative;
  padding-left: 32px;
  margin-bottom: 28px;
  border-left: 2px solid #e5e7eb;
}

.tmpl-timeline .r-section::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--resume-accent, #2563eb);
}

.tmpl-timeline .r-section-title {
  color: #172033;
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  margin-bottom: 14px;
}

.tmpl-timeline .r-item-title {
  font-weight: 850;
  color: #172033;
}

/* ---- MONO TEMPLATE ---- */
.tmpl-mono {
  --resume-page-bg: #f7f7f4;
  font-family: 'Inter', sans-serif;
  background: var(--resume-page-bg);
  color: #111;
  padding: 50px;
  min-height: 1122px;
}

.tmpl-mono .mo-header {
  text-align: center;
}

.tmpl-mono .mo-name {
  font-family: 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tmpl-mono .mo-title {
  font-family: 'Courier New', monospace;
  margin-top: 8px;
  color: #444;
}

.tmpl-mono .mo-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: #444;
  font-size: 0.82rem;
}

.tmpl-mono .mo-contact a,
.tmpl-mono .mo-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-mono .mo-rule {
  height: 8px;
  margin: 34px 0;
  background: repeating-linear-gradient(90deg, #111 0 18px, transparent 18px 28px);
}

.tmpl-mono .r-section-title {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 2px solid #111;
  padding-bottom: 6px;
}

.tmpl-mono .r-item-title {
  font-weight: 900;
}

/* ---- COMPACT TEMPLATE ---- */
.tmpl-compact {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1f2937;
  padding: 34px 42px;
  min-height: 1122px;
}

.tmpl-compact .cp-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d1d5db;
  margin-bottom: 22px;
}

.tmpl-compact .cp-name {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.05;
}

.tmpl-compact .cp-title {
  color: var(--resume-accent, #2563eb);
  font-weight: 750;
  margin-top: 5px;
}

.tmpl-compact .cp-contact {
  max-width: 280px;
  display: grid;
  gap: 5px;
  color: #4b5563;
  font-size: 0.78rem;
}

.tmpl-compact .cp-contact a,
.tmpl-compact .cp-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-compact .r-section {
  margin-bottom: 16px;
}

.tmpl-compact .r-section-title {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.tmpl-compact .r-item {
  margin-bottom: 8px;
}

.tmpl-compact .r-item-desc,
.tmpl-compact .r-summary {
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ---- PORTFOLIO TEMPLATE ---- */
.tmpl-portfolio {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #172033;
  min-height: 1122px;
}

.tmpl-portfolio .pf-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 1122px;
}

.tmpl-portfolio .pf-side {
  background: #102033;
  color: #fff;
  padding: 42px 30px;
}

.tmpl-portfolio .pf-main {
  padding: 46px 50px;
}

.tmpl-portfolio .pf-avatar,
.tmpl-portfolio .pf-avatar-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 24px;
}

.tmpl-portfolio .pf-name {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
}

.tmpl-portfolio .pf-title {
  color: #7dd3fc;
  font-weight: 750;
  margin: 10px 0 22px;
}

.tmpl-portfolio .pf-contact {
  display: grid;
  gap: 9px;
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.tmpl-portfolio .pf-contact a,
.tmpl-portfolio .pf-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-portfolio .pf-side .r-section-title {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

.tmpl-portfolio .pf-side .r-item-title,
.tmpl-portfolio .pf-side .r-summary,
.tmpl-portfolio .pf-side .r-item-desc {
  color: #e2e8f0;
}

.tmpl-portfolio .r-section-title {
  color: #102033;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- GRADUATE TEMPLATE ---- */
.tmpl-graduate {
  --resume-page-bg: #fffdf7;
  font-family: 'Inter', sans-serif;
  background: var(--resume-page-bg);
  color: #1f2937;
  padding: 46px 52px;
  min-height: 1122px;
}

.tmpl-graduate .gr-header {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 4px double #1f2937;
}

.tmpl-graduate .gr-cap {
  color: var(--resume-accent, #2563eb);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tmpl-graduate .gr-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 800;
  margin-top: 8px;
}

.tmpl-graduate .gr-title {
  font-weight: 700;
  margin-top: 4px;
}

.tmpl-graduate .gr-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 0.84rem;
}

.tmpl-graduate .gr-contact a,
.tmpl-graduate .gr-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-graduate .r-section-title {
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 7px;
}

.tmpl-graduate .r-item-title {
  color: #111827;
  font-weight: 850;
}

/* ---- CLEAN SIDEBAR TEMPLATE ---- */
.tmpl-clean-sidebar {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1e293b;
  min-height: 1122px;
}

.tmpl-clean-sidebar .cs-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  min-height: 1122px;
}

.tmpl-clean-sidebar .cs-main {
  padding: 52px;
}

.tmpl-clean-sidebar .cs-side {
  background: #f1f5f9;
  padding: 52px 28px;
  border-left: 1px solid #dbe3ec;
}

.tmpl-clean-sidebar .cs-name {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.tmpl-clean-sidebar .cs-title {
  color: var(--resume-accent, #2563eb);
  font-weight: 800;
  margin: 10px 0 34px;
}

.tmpl-clean-sidebar .cs-contact {
  display: grid;
  gap: 9px;
  color: #475569;
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.tmpl-clean-sidebar .cs-contact a,
.tmpl-clean-sidebar .cs-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-clean-sidebar .r-section-title {
  color: #0f172a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid #dbe3ec;
  padding-bottom: 7px;
}

.tmpl-clean-sidebar .cs-side .r-section-title {
  font-size: 0.82rem;
}

/* ---- EDITORIAL TEMPLATE ---- */
.tmpl-editorial {
  --resume-page-bg: #fafafa;
  font-family: 'Inter', sans-serif;
  background: var(--resume-page-bg);
  color: #161616;
  padding: 70px 52px 52px;
  min-height: 1122px;
}

.tmpl-editorial .ed-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px 32px;
  align-items: start;
  margin-bottom: 44px;
}

.tmpl-editorial .ed-label {
  grid-row: span 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--resume-accent, #2563eb);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 5px solid var(--resume-accent, #2563eb);
  padding-left: 14px;
}

.tmpl-editorial .ed-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.45rem;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tmpl-editorial .ed-title {
  color: #525252;
  font-weight: 800;
}

.tmpl-editorial .ed-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #525252;
  font-size: 0.84rem;
}

.tmpl-editorial .ed-contact a,
.tmpl-editorial .ed-contact span {
  color: inherit;
  text-decoration: none;
}

.tmpl-editorial .r-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.tmpl-editorial .r-section-title {
  color: #161616;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: none;
}

.tmpl-editorial .r-section-title {
  grid-column: 1;
  grid-row: 1 / -1;
}

.tmpl-editorial .r-section > :not(.r-section-title) {
  grid-column: 2;
}

.tmpl-editorial .r-item-title {
  font-size: 1.12rem;
  font-weight: 900;
}

@media print {
  .tmpl-portfolio .pf-side { background: #102033 !important; print-color-adjust: exact; }
  .tmpl-clean-sidebar .cs-side { background: #f1f5f9 !important; print-color-adjust: exact; }
}

/* ===================== RESPONSIVE TITLE SYSTEM ===================== */
.hero-title,
.section-title,
.cta-content h2,
.feature-card h3,
.process-step strong,
.section-header h3,
.entry-summary-title,
.tmpl-name,
.r-name,
.r-title,
.r-section-title,
.r-item-title,
.m-name,
.m-section-title,
.m-item-title,
.prof-name,
.prof-job-title,
.prof-item-title,
.md-name,
.md-sec-title,
.md-item-title,
.cb-title,
.ts-title,
.ep-name,
.ep-section-title,
.ep-item-title,
.mr-title,
.mr-sidebar-title,
.tl-title,
.mo-title,
.cp-title,
.pf-title,
.gr-title,
.cs-title,
.ed-name,
.ed-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.hero-title,
.section-title,
.cta-content h2 {
  text-wrap: balance;
}

.section-header-left,
.editor-logo,
.toolbar-group,
.entry-summary-title,
.m-header-info,
.prof-header-content {
  min-width: 0;
}

@media (max-width: 768px) {
  .hero-title,
  body.landing-page .hero-title {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .section-title,
  body.landing-page .section-title,
  .cta-content h2,
  body.landing-page .cta-content h2 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .feature-card h3,
  .process-step strong {
    line-height: 1.25;
  }

  .editor-header {
    gap: 10px;
  }

  .editor-logo .logo-text {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .editor-toolbar,
  .editor-actions {
    min-width: 0;
    flex-wrap: wrap;
  }

  .section-header {
    gap: 10px;
  }

  .section-header h3 {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .editor-header {
    padding: 8px 10px;
  }

  .editor-toolbar {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .form-scroll {
    padding: 14px 16px 92px;
  }

  .form-section {
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .photo-upload-area {
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .photo-actions {
    gap: 8px;
  }

  .btn-upload,
  .btn-remove-photo {
    padding-left: 12px;
    padding-right: 12px;
  }

  .add-section-footer {
    padding: 12px 16px 16px;
  }

  .preview-panel {
    min-height: 280px;
  }

  .preview-scroll {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar {
    padding: 0 14px;
  }

  .logo {
    min-width: 0;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  body.landing-page .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title,
  body.landing-page .hero-title {
    font-size: clamp(1.9rem, 9.4vw, 2.65rem);
  }

  .hero-subtitle,
  body.landing-page .hero-subtitle,
  .section-subtitle,
  body.landing-page .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .btn-xl,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .template-toggle span:nth-child(2),
  .toolbar-label {
    display: none;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions .btn-ghost-sm,
  .editor-actions .btn-primary {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .resume-page {
    overflow: hidden;
  }

  .tmpl-classic,
  .tmpl-minimal,
  .tmpl-tech,
  .tmpl-startup,
  .tmpl-corporate,
  .tmpl-minimal-formal,
  .tmpl-traditional-serif,
  .tmpl-europass,
  .tmpl-modern-right,
  .tmpl-nordic,
  .tmpl-timeline,
  .tmpl-mono,
  .tmpl-compact,
  .tmpl-portfolio,
  .tmpl-graduate,
  .tmpl-clean-sidebar,
  .tmpl-editorial {
    padding-left: clamp(24px, 6vw, 40px);
    padding-right: clamp(24px, 6vw, 40px);
  }

  .tmpl-classic .r-name,
  .tmpl-creative .r-name,
  .tmpl-minimal .r-name,
  .tmpl-executive .r-name,
  .tmpl-tech .r-name,
  .tmpl-elegant .r-name,
  .tmpl-startup .r-name,
  .tmpl-corporate .r-name,
  .tmpl-professional .prof-name,
  .tmpl-modern-dark .md-name,
  .tmpl-classic-blue .cb-title,
  .tmpl-traditional-serif .ts-title,
  .tmpl-europass .ep-name,
  .tmpl-modern-right .mr-title,
  .tmpl-nordic .r-name,
  .tmpl-timeline .tl-title,
  .tmpl-mono .mo-title,
  .tmpl-compact .cp-title,
  .tmpl-portfolio .pf-title,
  .tmpl-graduate .gr-title,
  .tmpl-clean-sidebar .cs-title,
  .tmpl-editorial .ed-name {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .tmpl-modern .m-name {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .tmpl-professional .prof-header,
  .tmpl-creative .r-header {
    gap: 16px;
    padding-left: clamp(24px, 6vw, 40px);
    padding-right: clamp(24px, 6vw, 40px);
  }

  .tmpl-modern .m-section,
  .tmpl-editorial .r-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tmpl-modern .m-section-title,
  .tmpl-modern .m-summary,
  .tmpl-modern .m-item-date,
  .tmpl-modern .m-item-details,
  .tmpl-modern .m-skills-grid,
  .tmpl-modern .m-ref-item,
  .tmpl-editorial .r-section-title,
  .tmpl-editorial .r-section > :not(.r-section-title) {
    grid-column: 1;
  }

  .tmpl-editorial .ed-label {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: 0;
    border-bottom: 4px solid var(--resume-accent, #2563eb);
    padding-left: 0;
    padding-bottom: 8px;
  }
}

/* PDF export must always render from the full desktop/A4 layout. */
html.is-pdf-exporting,
body.is-pdf-exporting {
  width: 1200px !important;
  min-width: 1200px !important;
  overflow: visible !important;
}

html.is-pdf-exporting .pdf-export-root {
  left: 0 !important;
  top: 0 !important;
  width: 794px !important;
  min-width: 794px !important;
  max-width: none !important;
}

html.is-pdf-exporting .resume-page.pdf-exporting {
  width: 794px !important;
  min-width: 794px !important;
  max-width: none !important;
  transform: none !important;
  overflow: visible !important;
}

html.is-pdf-exporting .resume-page.pdf-exporting.tmpl-professional .prof-header,
html.is-pdf-exporting .resume-page.pdf-exporting.tmpl-creative .r-header {
  gap: 20px !important;
  padding-left: 50px !important;
  padding-right: 50px !important;
}

html.is-pdf-exporting .resume-page.pdf-exporting.tmpl-modern .m-section {
  grid-template-columns: 140px 1fr !important;
  gap: 20px !important;
}

html.is-pdf-exporting .resume-page.pdf-exporting.tmpl-editorial .r-section {
  grid-template-columns: 180px 1fr !important;
  gap: 28px !important;
}
