/* =====================================================
   CV BUILDER — PREMIUM DESIGN SYSTEM
   Navy • Black • Blue • Gold
===================================================== */

:root {
  --navy: #07152f;
  --navy-dark: #040d1d;
  --navy-light: #10264b;
  --blue: #164a91;
  --blue-light: #eaf1fb;
  --gold: #d4aa50;
  --gold-light: #f1d58e;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --text: #172033;
  --muted: #788195;
  --border: #e5e8ef;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(4, 13, 29, .12);
  --radius: 16px;
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body.dark-theme {
  --white: #07111f;
  --off-white: #0b192b;
  --surface: #102039;
  --text: #f0f3fa;
  --muted: #a7b2c5;
  --border: #263750;
  --blue-light: #142b49;
  --shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

section {
  position: relative;
}

/* =====================================================
   HEADER AND NAVIGATION
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 5px 20px rgba(0,0,0,.12);
}

.header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .8px;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
}

.main-nav a {
  color: #d4dbea;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 22px;
}

.theme-toggle {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--gold-light);
  background: transparent;
  font-size: 20px;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform var(--transition),
              background var(--transition),
              box-shadow var(--transition);
}

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

.btn-gold {
  color: #172033;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 22px rgba(212,170,80,.2);
}

.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(212,170,80,.35);
}

.btn-outline-light {
  color: white;
  border-color: rgba(255,255,255,.5);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
}

.btn-dark {
  color: white;
  background: var(--navy);
}

.header-button {
  min-height: 40px;
  padding: 9px 17px;
}

/* =====================================================
   HERO
===================================================== */

.hero-section {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 30%, rgba(30,75,139,.38), transparent 35%),
    linear-gradient(115deg, #040d1d, #091b39 65%, #102b50);
  padding: 88px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 590px;
}

.hero-label,
.section-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.hero-label {
  padding: 8px 14px;
  border: 1px solid rgba(212,170,80,.4);
  border-radius: 4px;
  background: rgba(212,170,80,.08);
}

.hero-content h1 {
  margin: 23px 0 19px;
  color: white;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 900;
}

.hero-content h1 span {
  color: var(--gold-light);
}

.hero-description {
  max-width: 540px;
  color: #c2ccdc;
  font-size: 15px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 29px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  color: #dce3ef;
  font-size: 12px;
}

.hero-benefits span::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  margin-right: 7px;
}

.hero-visual {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-decoration {
  position: absolute;
  border: 1px solid rgba(212,170,80,.2);
  border-radius: 50%;
}

.decoration-one {
  width: 350px;
  height: 350px;
}

.decoration-two {
  width: 430px;
  height: 430px;
}

.hero-cv-card {
  position: relative;
  z-index: 2;
  width: min(340px, 85%);
  min-height: 370px;
  padding: 25px;
  color: #19243a;
  background: white;
  border-radius: 7px;
  box-shadow: 0 35px 80px rgba(0,0,0,.4);
  transform: rotate(4deg);
}

.hero-cv-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--gold);
}

.cv-photo-placeholder {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  background: var(--navy);
  font-weight: 900;
}

.cv-preview-body h3 {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.3;
}

.cv-preview-body p {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.cv-preview-section {
  margin-top: 20px;
}

.cv-preview-section h4 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 1px;
}

.cv-preview-section p {
  color: #667085;
  font-size: 10px;
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tags span {
  padding: 4px 7px;
  background: #edf1f7;
  border-radius: 3px;
  font-size: 9px;
}

.quality-badge {
  position: absolute;
  z-index: 3;
  right: -5px;
  bottom: 40px;
  padding: 13px 17px;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 900;
}

.quality-icon {
  margin-right: 7px;
}

.floating-star {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--gold);
  font-size: 35px;
}

/* =====================================================
   TRUST STRIP
===================================================== */

.trust-section {
  padding: 27px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.trust-content {
  text-align: center;
}

.trust-content h2 {
  color: var(--text);
  font-size: 16px;
}

.trust-content p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

/* =====================================================
   SECTION HEADINGS
===================================================== */

.templates-section {
  padding: 85px 0;
  background: var(--surface);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 10px 0;
  color: var(--text);
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.2;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.section-button {
  margin-top: 35px;
  text-align: center;
}

/* =====================================================
   TEMPLATE GALLERY
===================================================== */

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.template-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(0,0,0,.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.template-preview {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px;
  background: #edf0f5;
}

.mini-cv {
  width: 145px;
  height: 185px;
  padding: 13px;
  overflow: hidden;
  color: #263247;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.mini-avatar {
  width: 26px;
  height: 29px;
  background: #dce3ef;
}

.mini-heading-lines {
  flex: 1;
}

.mini-heading-lines i,
.mini-content i {
  display: block;
  height: 4px;
  margin-bottom: 5px;
  background: #d5dce7;
}

.mini-heading-lines i:first-child {
  width: 85%;
  height: 6px;
  background: var(--navy);
}

.mini-heading-lines i:last-child {
  width: 60%;
}

.mini-content {
  margin-top: 12px;
}

.mini-content h5 {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 6px;
  letter-spacing: .5px;
}

.mini-content i:nth-child(2n) {
  width: 90%;
}

.mini-content i:nth-child(2n+1) {
  width: 70%;
}

.template-info {
  padding: 18px;
}

.template-info h3 {
  color: var(--text);
  font-size: 16px;
}

.template-info p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.template-info .btn {
  width: 100%;
  min-height: 39px;
  padding: 9px;
}

/* Template preview variations */

.template-modern .modern-mini {
  display: grid;
  grid-template-columns: 38% 62%;
  padding: 0;
}

.modern-sidebar {
  padding: 10px 6px;
  background: var(--navy);
}

.modern-sidebar i {
  display: block;
  height: 4px;
  margin: 9px 0;
  background: #9eabc1;
}

.modern-main {
  padding: 12px 8px;
}

.template-minimal .minimal-mini {
  padding: 16px;
}

.minimal-title {
  height: 10px;
  width: 80%;
  margin-bottom: 9px;
  background: #222;
}

.template-creative .creative-mini {
  padding: 0;
}

.creative-top {
  height: 45px;
  background: var(--gold);
}

.creative-body {
  padding: 12px;
}

.template-academic .academic-mini {
  padding: 12px;
}

.academic-heading {
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.template-student .student-mini {
  padding: 12px;
}

.student-heading {
  height: 27px;
  margin-bottom: 10px;
  background: var(--blue-light);
}

/* =====================================================
   TEMPLATE FILTERS AND FULL GALLERY
===================================================== */

.template-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.template-filter {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.template-filter.active,
.template-filter:hover {
  color: white;
  border-color: var(--navy);
  background: var(--navy);
}

.template-card[hidden] {
  display: none !important;
}

/* =====================================================
   HOW IT WORKS
===================================================== */

.how-section {
  padding: 85px 0;
  background: var(--off-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}

.step-card {
  position: relative;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 7px 25px rgba(0,0,0,.035);
}

.step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 10px;
  color: var(--navy);
  background: #f4e8ca;
  font-size: 23px;
}

.step-number {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.step-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
}

/* =====================================================
   EDITOR SHOWCASE
===================================================== */

.editor-section {
  padding: 90px 0;
  color: white;
  background: linear-gradient(120deg, #050e1e, #0c2040);
}

.editor-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 65px;
}

.editor-copy h2 {
  margin: 13px 0 16px;
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.editor-copy p {
  color: #c0cadb;
  font-size: 14px;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 23px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  color: #e3e9f2;
  font-size: 13px;
}

.feature-list li::before {
  content: "✓";
  margin-right: 11px;
  color: var(--gold);
  font-weight: 900;
}

.editor-mockup {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: #f3f5f9;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

.mockup-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  color: var(--navy);
  background: #e4e8ef;
}

.mockup-topbar p {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9da9ba;
}

.mockup-workspace {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 260px;
}

.mockup-sidebar {
  padding: 20px 12px;
  background: #0b1c37;
}

.mockup-step {
  margin-bottom: 12px;
  padding: 10px 7px;
  border-radius: 4px;
  color: #d6deea;
  font-size: 10px;
}

.mockup-step:first-child {
  color: var(--gold-light);
  background: rgba(212,170,80,.13);
}

.mockup-form {
  padding: 24px;
  color: #263247;
}

.mockup-form h3 {
  margin-bottom: 17px;
  font-size: 16px;
}

.mockup-input {
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid #dce2eb;
  border-radius: 4px;
  background: white;
  color: #8993a4;
  font-size: 10px;
}

.mockup-next {
  width: fit-content;
  margin-top: 15px;
  padding: 9px 16px;
  color: #172033;
  background: var(--gold);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

/* =====================================================
   LIVE PREVIEW
===================================================== */

.preview-section {
  padding: 90px 0;
  background: var(--off-white);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
}

.preview-paper {
  min-height: 500px;
  padding: 35px;
  color: #243047;
  background: white;
  box-shadow: var(--shadow);
}

.preview-paper-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--gold);
}

.preview-photo {
  width: 80px;
  height: 90px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #667085;
  background: #e9edf3;
  font-size: 10px;
}

.preview-person-details h1 {
  color: var(--navy);
  font-size: 25px;
}

.preview-person-details h2 {
  color: var(--gold);
  font-size: 13px;
}

.preview-contact {
  margin-top: 9px;
  color: #687386;
  font-size: 10px;
}

.preview-paper-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  padding-top: 22px;
}

.preview-paper-content h3,
.final-preview-section h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 1px;
}

.preview-paper-content p,
.final-preview-section p {
  color: #687386;
  font-size: 10px;
  line-height: 1.7;
}

.preview-muted {
  color: #8993a4;
}

.preview-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.preview-skills span {
  padding: 5px 8px;
  border-radius: 3px;
  background: #edf1f7;
  color: #344054;
  font-size: 9px;
}

.preview-description {
  color: var(--muted);
  font-size: 14px;
}

.preview-feature {
  margin-top: 20px;
}

/* =====================================================
   MOBILE SHOWCASE
===================================================== */

.mobile-section {
  padding: 85px 0;
  background: var(--surface);
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.mobile-copy h2 {
  margin: 13px 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.2;
}

.mobile-copy p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 245px;
  padding: 11px;
  border: 5px solid #202c40;
  border-radius: 35px;
  background: #101a2c;
  box-shadow: 0 25px 55px rgba(0,0,0,.22);
}

.phone-speaker {
  width: 65px;
  height: 6px;
  margin: 3px auto 10px;
  border-radius: 10px;
  background: #344054;
}

.phone-screen {
  min-height: 410px;
  padding: 15px;
  border-radius: 22px;
  background: #f5f7fb;
  color: #172033;
}

.phone-status {
  font-size: 10px;
  font-weight: 900;
}

.phone-welcome {
  margin: 23px 0;
}

.phone-welcome h3 {
  font-size: 20px;
}

.phone-welcome p {
  color: #7a8496;
  font-size: 10px;
}

.phone-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e5e8ef;
  border-radius: 9px;
  background: white;
}

.phone-card strong {
  font-size: 11px;
}

.phone-card p {
  margin-top: 4px;
  color: #7a8496;
  font-size: 9px;
}

.phone-create {
  margin-top: 20px;
  padding: 12px;
  border-radius: 5px;
  background: var(--gold);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.phone-bottom {
  margin-top: 20px;
  color: #788195;
  text-align: center;
  font-size: 9px;
}

.mobile-floating-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 11px;
}

/* =====================================================
   FINAL CALL TO ACTION
===================================================== */

.final-cta {
  padding: 80px 0;
  color: white;
  background:
    radial-gradient(circle at 50% 0%, rgba(35,76,137,.35), transparent 60%),
    var(--navy-dark);
  text-align: center;
}

.cta-content {
  max-width: 750px;
}

.cta-content h2 {
  margin: 13px 0;
  color: white;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-content p {
  margin-bottom: 25px;
  color: #c1cada;
  font-size: 14px;
}

.cta-note {
  margin-top: 15px;
  color: #b9c4d5;
  font-size: 11px;
}

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

.site-footer {
  padding: 55px 0 0;
  color: #d2d9e6;
  background: #030a16;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 40px;
}

.footer-brand p {
  max-width: 260px;
  margin-top: 15px;
  color: #9ba8bd;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 13px;
}

.footer-links a {
  color: #aeb9ca;
  font-size: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}


.footer-bottom {
  min-height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #8c9bb1;
  font-size: 11px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* =====================================================
   BUILDER PAGE
===================================================== */

.builder-page {
  padding: 65px 0 90px;
  background: var(--off-white);
}

.builder-heading {
  margin-bottom: 35px;
  text-align: center;
}

.builder-heading h1 {
  color: var(--text);
  font-size: 35px;
}

.builder-heading p {
  color: var(--muted);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 28px;
}

#cvForm {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(0,0,0,.04);
}

#cvForm h2,
#cvForm h3 {
  margin: 18px 0 13px;
  color: var(--text);
}

#cvForm h2:first-child {
  margin-top: 0;
}

#cvForm label {
  display: block;
  margin: 13px 0 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

#cvForm input,
#cvForm textarea,
#cvForm select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
}

#cvForm input:focus,
#cvForm textarea:focus,
#cvForm select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,170,80,.12);
}

#cvForm textarea {
  min-height: 100px;
  resize: vertical;
}

#cvForm input[type="file"] {
  padding: 9px;
}

.repeat-item {
  position: relative;
  margin: 15px 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--off-white);
}

.repeat-item .remove-entry-btn {
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid #e5b9b9;
  border-radius: 5px;
  color: #b42318;
  background: #fff2f0;
  font-size: 11px;
  font-weight: 700;
}

.add-entry-btn {
  margin: 10px 0 18px;
  padding: 10px 14px;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.add-entry-btn:hover {
  background: rgba(212,170,80,.1);
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.builder-actions button {
  flex: 1;
  min-width: 110px;
}

.editor-mockup {
  min-width: 0;
}

#cvLivePreview {
  min-width: 0;
  padding: 28px;
  color: #263247;
  background: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

#cvLivePreview h1,
#cvLivePreview h2,
#cvLivePreview h3 {
  color: #10264b;
}

#cvLivePreview h1 {
  font-size: 25px;
}

#cvLivePreview h2 {
  font-size: 15px;
}

#cvLivePreview h3 {
  margin: 18px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d4aa50;
  font-size: 12px;
  letter-spacing: .8px;
}

#cvLivePreview p,
#cvLivePreview li {
  color: #566176;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#cvLivePreview .preview-contact {
  margin: 8px 0 17px;
}

#cvLivePreview ul {
  padding-left: 17px;
}

#cvLivePreview .cv-preview-photo {
  width: 75px;
  height: 85px;
  object-fit: cover;
}

/* =====================================================
   FULL PREVIEW PAGE
===================================================== */

.preview-page {
  min-height: 70vh;
  padding: 55px 0 80px;
  background: var(--off-white);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.preview-toolbar-info h2 {
  color: var(--text);
  font-size: 20px;
}

.preview-toolbar-info p {
  color: var(--muted);
  font-size: 12px;
}

.preview-actions,
.preview-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-workspace {
  max-width: 950px;
}

.preview-document {
  padding: 30px;
  background: #dfe4ec;
  border-radius: 10px;
}

#cvPreviewPaper {
  width: 100%;
  max-width: 794px;
  min-height: 1050px;
  margin: 0 auto;
  padding: 55px;
  background: white;
  color: #253047;
  box-shadow: 0 12px 35px rgba(0,0,0,.13);
}

#cvPreviewPaper .preview-paper-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--gold);
}

#cvPreviewPaper .preview-person-details h1 {
  color: #10264b;
  font-size: 27px;
}

#cvPreviewPaper .preview-person-details h2 {
  color: #b38a35;
  font-size: 14px;
}

#cvPreviewPaper .preview-contact p {
  color: #687386;
  font-size: 10px;
}

#cvPreviewPaper .preview-paper-content {
  display: block;
}

.final-preview-section {
  margin-top: 23px;
  break-inside: avoid;
}

.final-preview-section h3 {
  padding-bottom: 6px;
  border-bottom: 1px solid #d4aa50;
}

.final-preview-section p {
  white-space: pre-line;
  font-size: 11px;
}

.preview-bottom-actions {
  justify-content: center;
  margin-top: 25px;
}

/* =====================================================
   FAQ
===================================================== */

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.faq-item summary {
  position: relative;
  padding-right: 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 20px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.faq-item a,
.privacy-item a {
  color: #b38a35;
  text-decoration: underline;
}

/* =====================================================
   PRIVACY PAGE
===================================================== */

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-item {
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}

.privacy-item h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.privacy-item p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* =====================================================
   404 PAGE
===================================================== */

.error-page {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 65px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(30,75,139,.15), transparent 50%),
    var(--off-white);
}

.error-content {
  max-width: 700px;
}

.error-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
  color: var(--navy);
  font-size: clamp(85px, 17vw, 160px);
  font-weight: 900;
  line-height: 1;
}

.error-document {
  position: relative;
  width: 100px;
  height: 135px;
  padding-top: 24px;
  border: 5px solid var(--gold);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}

.error-document-fold {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: #f3e5c2;
  border-left: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.error-document-lines {
  padding: 12px;
}

.error-document-lines i {
  display: block;
  height: 5px;
  margin-bottom: 9px;
  background: #dce2eb;
}

.error-document strong {
  color: var(--gold);
  font-size: 35px;
}

.error-content h1 {
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(27px, 5vw, 42px);
}

.error-content > p {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 27px;
}

.error-help {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.error-help a {
  color: #b38a35;
  font-weight: 800;
}

/* =====================================================
   ABOUT PAGE
===================================================== */

.about-hero {
  padding-top: 80px;
  padding-bottom: 85px;
}

/* =====================================================
   DARK MODE
===================================================== */

body.dark-theme .templates-section,
body.dark-theme .mobile-section {
  background: var(--surface);
}

body.dark-theme .trust-section,
body.dark-theme .how-section,
body.dark-theme .preview-section,
body.dark-theme .preview-page,
body.dark-theme .builder-page {
  background: var(--off-white);
}

body.dark-theme .template-preview {
  background: #172943;
}

body.dark-theme .template-card,
body.dark-theme .step-card,
body.dark-theme .faq-item,
body.dark-theme #cvForm {
  background: var(--surface);
}

body.dark-theme .template-info h3,
body.dark-theme .step-card h3,
body.dark-theme .faq-item summary {
  color: var(--text);
}

body.dark-theme .privacy-item {
  border-color: var(--border);
}

body.dark-theme .error-page {
  background: var(--off-white);
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 950px) {
  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero-grid {
    gap: 30px;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editor-grid,
  .preview-layout,
  .mobile-grid {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   CV BUILDER — TEMPLATE GALLERY VISUAL FIX
===================================================== */

/* Template filter buttons */
.template-filter-btn,
.template-filter {
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}

.template-filter-btn:hover,
.template-filter-btn.active,
.template-filter:hover,
.template-filter.active {
  color: #fff;
  border-color: var(--gold);
  background: var(--navy);
  box-shadow: 0 5px 15px rgba(212,170,80,.2);
}

/* Make every preview area display a proper CV sheet */
.template-preview {
  min-height: 250px;
  overflow: hidden;
  position: relative;
  background: #edf0f5;
}

.template-preview > .mini-cv,
.template-preview > .modern-mini,
.template-preview > div[class$="-mini"] {
  width: 155px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  color: #263247;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transition: transform .25s ease;
}

.template-card:hover .template-preview > div {
  transform: translateY(-3px);
}

/* Modern Professional — Template 02 */
.template-modern .modern-mini {
  display: grid;
  grid-template-columns: 38% 62%;
  width: 155px;
  height: 200px;
  padding: 0;
  background: #fff;
}

.template-modern .modern-sidebar {
  min-width: 0;
  padding: 13px 8px;
  background: #10264b;
}

.template-modern .modern-sidebar span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 11px 0;
  border-radius: 2px;
  background: #c4d0e2;
}

.template-modern .modern-sidebar span:first-child {
  width: 75%;
  height: 25px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #d4aa50;
}

.template-modern .modern-main {
  min-width: 0;
  padding: 15px 9px;
  background: #fff;
}

.template-modern .modern-main span {
  display: block;
  width: 100%;
  height: 4px;
  margin-bottom: 9px;
  border-radius: 2px;
  background: #dce2eb;
}

.template-modern .modern-main span:first-child {
  width: 85%;
  height: 8px;
  margin-bottom: 5px;
  background: #10264b;
}

.template-modern .modern-main span:nth-child(2) {
  width: 60%;
  height: 5px;
  margin-bottom: 20px;
  background: #d4aa50;
}

.template-modern .modern-main span:nth-child(3) {
  width: 75%;
}

.template-modern .modern-main span:nth-child(4) {
  width: 90%;
}

/* Minimal template */
.template-minimal .minimal-mini {
  width: 155px;
  height: 200px;
  padding: 18px;
  background: #fff;
}

.template-minimal .minimal-title {
  width: 90%;
  height: 12px;
  margin-bottom: 8px;
  background: #202b3e;
}

.template-minimal .minimal-mini i {
  display: block;
  width: 90%;
  height: 4px;
  margin: 9px 0;
  background: #dce1e8;
}

/* Creative template */
.template-creative .creative-mini {
  width: 155px;
  height: 200px;
  padding: 0;
  background: #fff;
}

.template-creative .creative-top {
  height: 58px;
  background: linear-gradient(120deg,#10264b,#d4aa50);
}

.template-creative .creative-body {
  padding: 13px;
}

.template-creative .creative-body i {
  display: block;
  width: 90%;
  height: 4px;
  margin: 9px 0;
  background: #dce1e8;
}

/* Academic template */
.template-academic .academic-mini {
  width: 155px;
  height: 200px;
  padding: 15px;
  background: #fff;
}

.template-academic .academic-heading {
  padding-bottom: 10px;
  border-bottom: 2px solid #10264b;
  color: #10264b;
  text-align: center;
}

.template-academic .academic-mini i {
  display: block;
  height: 4px;
  margin: 10px 0;
  background: #dce1e8;
}

/* Student template */
.template-student .student-mini {
  width: 155px;
  height: 200px;
  padding: 13px;
  background: #fff;
}

.template-student .student-heading {
  height: 34px;
  margin-bottom: 13px;
  border-left: 5px solid #d4aa50;
  background: #eaf1fb;
}

.template-student .student-mini i {
  display: block;
  height: 4px;
  margin: 9px 0;
  background: #dce1e8;
}

/* Other template preview variations */
.template-card[data-template="classic"] .template-preview {
  background: #e9edf3;
}

.template-card[data-template="executive"] .template-preview {
  background: #e2e7ef;
}

.template-card[data-template="corporate"] .template-preview {
  background: #eaf0f8;
}

.template-card[data-template="simple"] .template-preview {
  background: #f0eee9;
}

.template-card[data-template="designer"] .template-preview {
  background: #f3e8df;
}

.template-card[data-template="international"] .template-preview {
  background: #e6edf2;
}

.template-card[data-template="bold"] .template-preview {
  background: #e4e8f0;
}

.template-card[data-template="research"] .template-preview {
  background: #edf0eb;
}

.template-card[data-template="graduate"] .template-preview {
  background: #e8edf7;
}

.template-card[data-template="experienced"] .template-preview {
  background: #e7eaf0;
}

.template-card[data-template="elegant"] .template-preview {
  background: #f2e9e9;
}

.template-card[data-template="photography"] .template-preview {
  background: #e9e5df;
}

.template-card[data-template="technology"] .template-preview {
  background: #e2eaf2;
}

.template-card[data-template="first-job"] .template-preview {
  background: #edf0e8;
}

.template-card[data-template="premium"] .template-preview {
  background: #e9e2d2;
}

/* Gallery card polish */
.template-card {
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(4,13,29,.14);
}

.template-info {
  background: var(--surface);
}

.template-info .select-template {
  width: 100%;
}

/* Dark theme */
body.dark-theme .template-filter-btn,
body.dark-theme .template-filter {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

body.dark-theme .template-filter-btn.active,
body.dark-theme .template-filter.active,
body.dark-theme .template-filter-btn:hover,
body.dark-theme .template-filter:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--gold);
}

/* Mobile gallery */
@media (max-width: 768px) {
  .template-preview {
    min-height: 235px;
  }

  .template-filter-btn,
  .template-filter {
    padding: 9px 13px;
    font-size: 11px;
  }
}

/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 768px) {

  .container {
    width: min(100% - 30px, 560px);
  }

  .header-content {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 15px 25px rgba(0,0,0,.2);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
  }

  .header-actions {
    gap: 7px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .header-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero-section {
    padding: 65px 0 75px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1px;
  }

  .hero-description {
    margin: 0 auto;
    font-size: 13px;
  }

  .hero-buttons,
  .hero-benefits {
    justify-content: center;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-cv-card {
    width: 280px;
    min-height: 330px;
    padding: 20px;
  }

  .decoration-one {
    width: 280px;
    height: 280px;
  }

  .decoration-two {
    width: 330px;
    height: 330px;
  }

  .quality-badge {
    right: 0;
    bottom: 10px;
  }

  .templates-section,
  .how-section,
  .editor-section,
  .preview-section,
  .mobile-section {
    padding: 65px 0;
  }

  .template-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .template-preview {
    min-height: 220px;
  }

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

  .editor-grid,
  .preview-layout,
  .mobile-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .editor-copy,
  .mobile-copy {
    text-align: center;
  }

  .editor-copy .feature-list {
    text-align: left;
  }

  .editor-mockup {
    width: 100%;
  }

  .mockup-workspace {
    grid-template-columns: 34% 66%;
  }

  .mockup-sidebar {
    padding: 15px 7px;
  }

  .mockup-step {
    padding: 8px 4px;
    font-size: 8px;
  }

  .mockup-form {
    padding: 15px;
  }

  .mockup-form h3 {
    font-size: 13px;
  }

  .preview-paper {
    padding: 22px;
  }

  .preview-paper-content {
    grid-template-columns: 1fr;
  }

  .mobile-copy h2 {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    padding: 17px 0;
    text-align: center;
  }

  /* Builder mobile layout */

  .builder-page {
    padding: 40px 0 60px;
  }

  .builder-heading h1 {
    font-size: 28px;
  }

  .editor-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #cvForm {
    width: 100%;
    padding: 18px;
  }

  #cvForm input,
  #cvForm textarea,
  #cvForm select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .repeat-item {
    width: 100%;
    padding: 13px;
  }

  .builder-actions {
    flex-direction: column;
  }

  .builder-actions button {
    width: 100%;
  }

  #cvLivePreview {
    width: 100%;
    padding: 18px;
  }

  /* Preview mobile layout */

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-actions {
    width: 100%;
  }

  .preview-actions .btn {
    flex: 1;
  }

  .preview-document {
    padding: 12px;
  }

  #cvPreviewPaper {
    min-height: auto;
    padding: 23px 17px;
  }

  #cvPreviewPaper .preview-paper-header {
    gap: 12px;
  }

  #cvPreviewPaper .preview-person-details h1 {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  #cvPreviewPaper .preview-photo {
    width: 60px;
    height: 70px;
  }

  .preview-bottom-actions {
    flex-direction: column;
  }

  .preview-bottom-actions .btn {
    width: 100%;
  }

  .privacy-item {
    padding: 18px 0;
  }

  .privacy-item h3 {
    font-size: 16px;
  }

  .privacy-item p {
    font-size: 13px;
  }

  .error-illustration {
    gap: 8px;
  }

  .error-document {
    width: 75px;
    height: 105px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

}

/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 13px;
    gap: 6px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-button {
    padding: 7px;
    font-size: 9px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-cv-card {
    width: 255px;
  }

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

  #cvForm {
    padding: 13px;
  }

  #cvLivePreview {
    padding: 13px;
  }

}

/* =====================================================
   ACCESSIBILITY AND PRINT
===================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(212,170,80,.65);
  outline-offset: 3px;
}

@media print {
  body {
    background: white !important;
  }

  .site-header,
  .site-footer,
  .preview-toolbar,
  .preview-bottom-actions,
  .final-cta {
    display: none !important;
  }

  #cvPreviewPaper,
  #cvLivePreview {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    box-shadow: none !important;
  }
}
