.cvstart-header {
  width: 100%;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e9f2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cvstart-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cvstart-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cvstart-logo-full {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cvstart-page {
  min-height: calc(100vh - 67px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #eef0f8;
}

.cvstart-shell {
  width: 100%;
  max-width: 1050px;
}

.cvstart-heading-wrap {
  text-align: center;
  margin-bottom: 38px;
}

.cvstart-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e7eafe;
  color: #4338ca;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cvstart-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #081a4b;
}

.cvstart-subtitle {
  max-width: 700px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: #667085;
}

.cvstart-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cvstart-card {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 114px 1fr 46px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 162px;
  padding: 24px;
  border: 1px solid #d9deea;
  border-radius: 22px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: left;
}

.cvstart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 46, 89, 0.10);
  border-color: #cfd6e8;
}

.cvstart-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.18);
  outline-offset: 2px;
}

.cvstart-card-icon-wrap {
  position: relative;
  z-index: 2;
  width: 114px;
  height: 114px;
  border-radius: 18px;
  background: #edf0fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cvstart-card-icon {
  font-size: 42px;
  color: #5a54f5;
  line-height: 1;
}

.cvstart-card-copy {
  position: relative;
  z-index: 2;
}

.cvstart-card-copy h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #081a4b;
  max-width: 290px;
}

.cvstart-card-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #667085;
  max-width: 320px;
}

.cvstart-card-arrow {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #d7dceb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a54f5;
  font-size: 28px;
  background: #ffffff;
}

.cvstart-card-right .cvstart-accent-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 138px;
  height: 138px;
  background: linear-gradient(135deg, #4f46e5 0%, #5f5af6 55%, #6d63ff 100%);
  border-top-right-radius: 120px;
  border-bottom-left-radius: 22px;
}

.cvstart-speed-badge {
  position: absolute;
  top: -14px;
  right: 18px;
  z-index: 4;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1f2c8f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(31, 44, 143, 0.18);
}

.cvstart-bottom-note {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.cvstart-bottom-note span {
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfe4ee;
  color: #5c667a;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cvstart-cards {
    grid-template-columns: 1fr;
  }

  .cvstart-card {
    grid-template-columns: 100px 1fr 40px;
    min-height: 150px;
  }

  .cvstart-card-icon-wrap {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .cvstart-header {
  padding: 16px 16px;
}

 .cvstart-logo-full {
  height: 42px;
}

  .cvstart-page {
    padding: 22px 14px;
  }

  .cvstart-title {
    font-size: 28px;
  }

  .cvstart-subtitle {
    font-size: 15px;
  }

  .cvstart-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .cvstart-card-icon-wrap {
    width: 88px;
    height: 88px;
  }

  .cvstart-card-copy h3,
  .cvstart-card-copy p {
    max-width: none;
  }

  .cvstart-card-arrow {
    width: 34px;
    height: 34px;
  }

  .cvstart-speed-badge {
    top: 14px;
    right: 14px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

.templates-premium-page {
  padding: 36px 20px 60px;
  background: #eef0f8;
  min-height: calc(100vh - 67px);
}

.templates-premium-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.templates-premium-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.templates-premium-title {
  margin: 10px 0 0;
  font-size: 38px;
  line-height: 1.12;
  color: #081a4b;
}

.templates-premium-subtitle {
  margin: 12px 0 0;
  color: #667085;
  font-size: 16px;
}

.templates-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.template-premium-card {
  border: 1px solid #d9deea;
  border-radius: 22px;
  background: #ffffff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.template-premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 46, 89, 0.10);
}

.template-preview-card {
  height: 265px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #edf1f7;
  overflow: hidden;
  padding: 14px;
}

.template-meta h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  color: #081a4b;
}

.template-meta p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.preview-side {
  width: 62px;
  background: #d5d0c5;
  border-radius: 10px;
}

.green-side {
  background: #3f8a67;
}

.purple-side {
  background: #7346d7;
}

.preview-main,
.preview-stack,
.creative-main {
  flex: 1;
}

.modern-preview,
.green-preview,
.purple-preview {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
}

.classic-preview,
.professional-preview,
.minimal-preview,
.sleek-preview {
  display: block;
}

.creative-preview .creative-layout {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
}

.creative-side {
  background: #347b5d;
  border-radius: 10px;
}

.top-band {
  height: 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.top-band.gold { background: #c5a14e; }
.top-band.pink { background: #db7bc6; }
.top-band.navy { background: #243b7b; }
.top-band.silver { background: #b9c1d1; }

.line {
  height: 8px;
  border-radius: 999px;
  background: #d7dceb;
  margin-bottom: 10px;
}

.line.title {
  height: 12px;
  width: 72%;
  background: #aeb8cc;
}

.line.title.dark {
  background: #5c667a;
}

.line.lg { width: 94%; }
.line.md { width: 72%; }
.line.sm { width: 46%; }

.section-gap {
  height: 16px;
}

.builder-app-premium {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #f7f8fc;
}

.builder-sidebar-premium {
  background: #16235e;
  color: white;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.builder-logo-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 34px;
}

.builder-logo-premium img {
  width: 34px;
  height: 34px;
}

.builder-steps-premium {
  display: grid;
  gap: 12px;
}

.builder-step-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  cursor: pointer;
  text-align: left;
  padding: 8px 0;
}

.builder-step-premium span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.builder-step-premium.active {
  color: #ffffff;
}

.builder-step-premium.active span {
  background: #2b8bb6;
  border-color: #2b8bb6;
}

.builder-sidebar-foot {
  margin-top: auto;
}

.builder-main-premium {
  display: flex;
  flex-direction: column;
}

.builder-topbar-premium {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e9f2;
  background: #ffffff;
  color: #4f46e5;
}

.builder-layout-premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  padding: 28px;
}

.builder-form-panel {
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 22px;
  padding: 30px;
}

.builder-preview-panel {
  position: sticky;
  top: 24px;
  align-self: start;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-panel h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
  color: #081a4b;
}

.step-panel p {
  margin: 0 0 24px;
  color: #667085;
  font-size: 17px;
}

.premium-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.preview-paper-wrap {
  background: #f0f2fb;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid #e5e9f2;
}

.resume-preview-paper {
  min-height: 760px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.modern-paper,
.green-paper,
.purple-paper {
  grid-template-columns: 130px 1fr;
}

.creative-paper {
  grid-template-columns: 96px 1fr;
}

.professional-paper,
.minimal-paper,
.classic-paper,
.sleek-paper {
  grid-template-columns: 1fr;
}

.paper-sidebar {
  background: #d8d1c4;
  padding: 16px 14px;
}

.green-paper .paper-sidebar {
  background: #3f8a67;
  color: #ffffff;
}

.purple-paper .paper-sidebar {
  background: #7346d7;
  color: #ffffff;
}

.creative-paper .paper-sidebar {
  background: #347b5d;
  color: #ffffff;
}

.professional-paper .paper-sidebar,
.minimal-paper .paper-sidebar,
.classic-paper .paper-sidebar,
.sleek-paper .paper-sidebar {
  display: none;
}

.paper-main {
  padding: 18px 18px 22px;
  position: relative;
}

.professional-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #c5a14e;
  margin-bottom: 14px;
}

.classic-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #243b7b;
  margin-bottom: 14px;
}

.sleek-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #b9c1d1;
  margin-bottom: 14px;
}

.creative-paper .paper-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
  background: #db7bc6;
}

.paper-header h2 {
  margin: 0;
  font-size: 24px;
  color: #111827;
}

.paper-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
}

.paper-section {
  margin-top: 18px;
}

.paper-section h3,
.paper-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a6b2f;
}

.green-paper .paper-section h3,
.green-paper .paper-block h4,
.purple-paper .paper-section h3,
.purple-paper .paper-block h4,
.creative-paper .paper-section h3,
.creative-paper .paper-block h4 {
  color: #db7bc6;
}

.minimal-paper .paper-section h3,
.classic-paper .paper-section h3,
.sleek-paper .paper-section h3 {
  color: #111827;
}

.paper-block {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.45;
}

.preview-item {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
}

.preview-item strong {
  display: block;
  font-size: 13px;
}

.preview-sub,
.preview-meta {
  color: #667085;
  font-size: 11px;
}

.skill-pill {
  display: inline-block;
  padding: 5px 8px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .templates-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-layout-premium {
    grid-template-columns: 1fr;
  }

  .builder-preview-panel {
    position: static;
  }
}

@media (max-width: 850px) {
  .builder-app-premium {
    grid-template-columns: 1fr;
  }

  .builder-steps-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .templates-premium-grid,
  .premium-form-grid {
    grid-template-columns: 1fr;
  }

  .templates-premium-top {
    flex-direction: column;
  }

  .builder-steps-premium {
    grid-template-columns: 1fr;
  }

  .builder-layout-premium,
  .builder-form-panel {
    padding: 18px;
  }
}

.template-premium-card {
  position: relative;
  z-index: 10;
}

.template-preview-card::before,
.template-preview-card::after {
  pointer-events: none;
}

/* =========================================
   PREMIUM BUILDER LAYOUT
========================================= */

.builder-body {
  margin: 0;
  background: #f4f6fb;
  font-family: Inter, Arial, sans-serif;
  color: #0f172a;
}

.builder-app-premium {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f6fb;
}

.builder-sidebar-premium {
  background: #1f2a6d;
  color: #ffffff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-logo-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
}

.builder-logo-premium img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.builder-steps-premium {
  display: grid;
  gap: 12px;
}

.builder-step-premium {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
}

.builder-step-premium span {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.builder-step-premium.active {
  color: #ffffff;
}

.builder-step-premium.active span {
  background: #53a8db;
  border-color: #53a8db;
  color: #ffffff;
}

.builder-sidebar-foot {
  margin-top: auto;
  padding-top: 20px;
}

.builder-main-premium {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.builder-topbar-premium {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a54f5;
  font-size: 15px;
  font-weight: 500;
}

.builder-layout-premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding: 28px;
  align-items: start;
}

.builder-form-panel {
  background: #ffffff;
  border: 1px solid #e5e7ef;
  border-radius: 24px;
  padding: 28px 28px 32px;
  min-height: 760px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.builder-preview-panel {
  background: #eef1fa;
  border: 1px solid #e5e7ef;
  border-radius: 24px;
  padding: 18px;
  position: sticky;
  top: 20px;
}

/* =========================================
   STEP PANELS
========================================= */

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-panel h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: #081a4b;
}

.step-panel p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: #667085;
  max-width: 760px;
}

/* =========================================
   FORM CONTROLS
========================================= */

.premium-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #d7dceb;
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: Inter, Arial, sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input {
  height: 52px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.textarea.tall {
  min-height: 140px;
}

.input:focus,
.textarea:focus {
  border-color: #5a54f5;
  box-shadow: 0 0 0 4px rgba(90, 84, 245, 0.10);
}

/* =========================================
   BUTTONS
========================================= */

.primary-btn,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.primary-btn {
  border: none;
  background: #5a54f5;
  color: #ffffff;
}

.primary-btn:hover {
  background: #4c46eb;
}

.ghost-btn,
.small-btn {
  border: 1px solid #d7dceb;
  background: #ffffff;
  color: #0f172a;
}

.ghost-btn:hover,
.small-btn:hover {
  border-color: #bcc4d8;
  background: #fafbff;
}

.full-width-btn {
  width: 100%;
}

.panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.finalize-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   STACK LISTS
========================================= */

.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #e5e7ef;
  background: #fbfcff;
  border-radius: 16px;
  padding: 16px;
}

.stack-item strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
}

.stack-item div,
.stack-item small {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.delete-chip {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================
   SUCCESS / ERROR
========================================= */

.success-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #b7e4c7;
  background: #ecfdf3;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.error-box-inline {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================
   PREVIEW PAPER
========================================= */

.preview-paper-wrap {
  background: #f0f2fb;
  border-radius: 20px;
  padding: 12px;
}

.resume-preview-paper {
  min-height: 730px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.modern-paper,
.green-paper,
.purple-paper {
  grid-template-columns: 118px 1fr;
}

.creative-paper {
  grid-template-columns: 92px 1fr;
}

.professional-paper,
.minimal-paper,
.classic-paper,
.sleek-paper {
  grid-template-columns: 1fr;
}

.paper-sidebar {
  background: #d8d1c4;
  padding: 16px 12px;
}

.green-paper .paper-sidebar {
  background: #3f8a67;
  color: #ffffff;
}

.purple-paper .paper-sidebar {
  background: #7346d7;
  color: #ffffff;
}

.creative-paper .paper-sidebar {
  background: #347b5d;
  color: #ffffff;
}

.professional-paper .paper-sidebar,
.minimal-paper .paper-sidebar,
.classic-paper .paper-sidebar,
.sleek-paper .paper-sidebar {
  display: none;
}

.paper-main {
  padding: 18px 18px 24px;
  position: relative;
}

.professional-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #c5a14e;
  margin-bottom: 14px;
}

.classic-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #243b7b;
  margin-bottom: 14px;
}

.sleek-paper .paper-main::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #b9c1d1;
  margin-bottom: 14px;
}

.creative-paper .paper-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 100%;
  background: #db7bc6;
}

.paper-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #111827;
}

.paper-header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #667085;
}

.paper-block {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.paper-block h4,
.paper-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a6d20;
  font-weight: 800;
}

.minimal-paper .paper-section h3,
.classic-paper .paper-section h3,
.sleek-paper .paper-section h3 {
  color: #111827;
}

.green-paper .paper-section h3,
.purple-paper .paper-section h3,
.creative-paper .paper-section h3 {
  color: #db7bc6;
}

.paper-section {
  margin-top: 18px;
}

.paper-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #111827;
}

.preview-item {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.preview-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  color: #111827;
}

.preview-sub,
.preview-meta {
  color: #667085;
  font-size: 11px;
}

.skill-pill {
  display: inline-block;
  padding: 5px 8px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 600;
}

/* =========================================
   MOBILE / RESPONSIVE
========================================= */

@media (max-width: 1180px) {
  .builder-layout-premium {
    grid-template-columns: 1fr;
  }

  .builder-preview-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .builder-app-premium {
    grid-template-columns: 1fr;
  }

  .builder-sidebar-premium {
    padding: 18px 14px;
  }

  .builder-steps-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .builder-layout-premium {
    padding: 16px;
  }

  .builder-form-panel {
    padding: 18px;
    min-height: auto;
  }

  .premium-form-grid {
    grid-template-columns: 1fr;
  }

  .builder-steps-premium {
    grid-template-columns: 1fr;
  }

  .step-panel h1 {
    font-size: 26px;
  }

  .panel-actions,
  .finalize-box {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .small-btn {
    width: 100%;
  }
}


.ai-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-btn {
  align-self: flex-start;
  border: none;
  background: linear-gradient(135deg, #5a54f5, #7c3aed);
  color: #ffffff;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(90, 84, 245, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(90, 84, 245, 0.24);
}

#livePreview.backend-preview-mounted {
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
}

#livePreview.backend-preview-mounted .pdf-stage {
  padding: 12px;
  transform: scale(0.42);
  transform-origin: top center;
  width: 238%;
  background: transparent;
}

#livePreview.backend-preview-mounted .resume-page {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
