:root {
  --primary: #0b5fff;
  --primary-dark: #0847c4;
  --accent: #ff7a00;
  --dark: #1c2431;
  --gray: #6b7280;
  --light-bg: #f4f6fb;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 10px;
  font-size: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid #eee;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e56c00; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--light-bg), #eaf0ff);
  padding: 60px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.4rem; margin: 0 0 16px; }
.hero p { color: var(--gray); font-size: 1.1rem; margin-bottom: 24px; }
.hero-card { background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.08); padding: 20px; }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 24px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 12px;
}

.templates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.template-thumb { border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; text-align: center; }
.template-thumb .ph { background: var(--light-bg); height: 220px; display:flex; align-items:center; justify-content:center; color: var(--gray); }
.template-thumb .name { padding: 10px; font-weight: 600; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.plan-card {
  border: 2px solid #eee; border-radius: var(--radius); padding: 30px; position: relative; background: #fff;
}
.plan-card.popular { border-color: var(--accent); box-shadow: 0 10px 30px rgba(255,122,0,.15); }
.badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.plan-name { font-weight: 700; margin-bottom: 4px; }
.plan-badge-save { color: var(--success); font-weight: 700; font-size: .85rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin: 10px 0; }
.plan-price small { font-size: 1rem; font-weight: 400; color: var(--gray); }
.plan-features { list-style: none; padding: 0; margin: 20px 0; }
.plan-features li { padding: 6px 0; padding-left: 26px; position: relative; color: var(--dark); }
.plan-features li::before { content: '✔'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan-terms { font-size: .78rem; color: var(--gray); margin-top: 14px; }

/* Forms */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 30px; border: 1px solid #eee; border-radius: var(--radius); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid #d9dee6; border-radius: 8px; font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: #fde8e8; color: var(--danger); }
.alert-success { background: #e6f6ea; color: var(--success); }

/* Dashboard */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--dark); color: #fff; padding: 24px 16px; }
.sidebar .logo { color: #fff; margin-bottom: 30px; display:block; }
.sidebar a { display: block; color: #cbd5e1; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.main-content { padding: 30px; background: var(--light-bg); }
.topbar { display:flex; justify-content: space-between; align-items:center; margin-bottom: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.04); margin-bottom: 20px; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-active { background: #e6f6ea; color: var(--success); }
.status-inactive { background: #fde8e8; color: var(--danger); }
.status-draft { background: #fff4e5; color: var(--accent); }

table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: .9rem; }
table.data-table th { color: var(--gray); font-weight: 600; }

/* Builder wizard */
.wizard-shell { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.wizard-nav { list-style:none; padding:0; margin:0; }
.wizard-nav li { padding: 12px 14px; border-radius: 8px; margin-bottom: 4px; color: var(--gray); font-weight:600; cursor:pointer; }
.wizard-nav li.active { background: var(--primary); color:#fff; }
.wizard-nav li.done::after { content: ' ✔'; color: var(--success); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entry-block { border: 1px solid #eee; border-radius: 8px; padding: 16px; margin-bottom: 14px; position: relative; }
.entry-remove { position:absolute; top:10px; right:10px; color: var(--danger); cursor:pointer; font-size:.85rem; }
.wizard-actions { display:flex; justify-content: space-between; margin-top: 24px; }

.footer { background: var(--dark); color: #cbd5e1; padding: 30px 0; margin-top: 60px; text-align: center; font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .pricing-grid, .steps-grid, .templates-grid { grid-template-columns: 1fr; }
  .app-shell, .wizard-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ===== Modelos de currículo ===== */
.cv { background: #fff; }
.cv h1 { margin: 0; font-size: 1.9rem; }
.cv .cv-role { color: var(--primary); font-weight: 600; margin: 4px 0; }
.cv .cv-contact { color: var(--gray); font-size: .9rem; }
.cv .cv-period { color: var(--gray); font-size: .82rem; margin: 2px 0 6px; }
.cv .cv-item { margin-bottom: 16px; }
.cv-section h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--light-bg); padding-bottom: 6px; margin-top: 26px; }

/* Clássico */
.cv-classico .cv-header { border-bottom: 3px solid var(--primary); padding-bottom: 14px; margin-bottom: 10px; }
.cv-classico .cv-section h2 { color: var(--primary); }

/* Moderno */
.cv-moderno { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.cv-moderno .cv-sidebar { background: var(--dark); color: #e2e8f0; padding: 30px 20px; }
.cv-moderno .cv-sidebar h1 { color: #fff; font-size: 1.4rem; }
.cv-moderno .cv-sidebar .cv-role { color: #93c5fd; }
.cv-moderno .cv-sidebar h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin: 22px 0 8px; }
.cv-moderno .cv-contact-list, .cv-moderno .cv-tags { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.cv-moderno .cv-contact-list li { margin-bottom: 6px; word-break: break-word; }
.cv-moderno .cv-tags li { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; display: inline-block; margin: 3px 4px 0 0; font-size: .78rem; }
.cv-moderno .cv-main { padding: 30px; }
.cv-moderno .cv-section h2 { color: var(--dark); }
@media print { .cv-moderno { grid-template-columns: 220px 1fr; } .cv-moderno .cv-sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Criativo */
.cv-criativo .cv-header-band { background: linear-gradient(120deg, var(--accent), #ff9a3c); color: #fff; padding: 30px; border-radius: 10px 10px 0 0; margin: -1px -1px 0; }
.cv-criativo .cv-header-band h1 { color: #fff; }
.cv-criativo .cv-header-band .cv-role { color: #fff; opacity: .9; }
.cv-criativo .cv-header-band .cv-contact { color: #fff; opacity: .85; }
.cv-criativo .cv-body { padding: 10px 4px; }
.cv-criativo .cv-section h2 { display: flex; align-items: center; gap: 8px; color: var(--dark); border: none; }
.cv-criativo .cv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.cv-criativo .cv-item-card { background: var(--light-bg); border-radius: 8px; padding: 14px 16px; }
@media print { .cv-criativo .cv-header-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Executivo */
.cv-executivo { font-family: Georgia, 'Times New Roman', serif; }
.cv-executivo .cv-header-centered { text-align: center; }
.cv-executivo h1 { letter-spacing: .03em; }
.cv-executivo .cv-hr { border: none; border-top: 2px solid var(--dark); margin: 16px 0; }
.cv-executivo .cv-hr-light { border: none; border-top: 1px solid #eee; margin: 12px 0; }
.cv-executivo .cv-section h2 { font-variant: small-caps; border-bottom: 1px solid var(--dark); color: var(--dark); }

@media (max-width: 700px) {
  .cv-moderno { grid-template-columns: 1fr; }
}

/* Cartões de seleção de modelo no wizard */
.template-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.template-pick-card { border: 2px solid #eee; border-radius: var(--radius); padding: 14px; cursor: pointer; text-align: center; transition: border-color .15s; }
.template-pick-card:hover { border-color: var(--primary); }
.template-pick-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,.12); }
.template-pick-thumb { height: 130px; border-radius: 6px; margin-bottom: 10px; position: relative; overflow: hidden; background: var(--light-bg); }
.template-pick-thumb .bar { position: absolute; left: 10%; right: 10%; height: 6px; border-radius: 3px; background: #d9dee6; }
.tp-classico .bar1 { top: 14%; background: var(--primary); height: 10px; width: 60%; left: 10%; }
.tp-classico .bar2 { top: 34%; width: 80%; } .tp-classico .bar3 { top: 46%; width: 70%; } .tp-classico .bar4 { top: 64%; width: 75%; } .tp-classico .bar5 { top: 76%; width: 55%; }
.tp-moderno { display: flex; }
.tp-moderno .side { width: 34%; background: var(--dark); height: 100%; }
.tp-moderno .main { flex: 1; position: relative; }
.tp-moderno .main .bar { position: absolute; left: 10%; right: 10%; }
.tp-moderno .main .bar1 { top: 16%; height: 8px; width: 70%; background: var(--dark); }
.tp-moderno .main .bar2 { top: 38%; } .tp-moderno .main .bar3 { top: 50%; width: 65%; } .tp-moderno .main .bar4 { top: 70%; }
.tp-criativo .band { height: 30%; background: linear-gradient(120deg, var(--accent), #ff9a3c); }
.tp-criativo .bar { position: absolute; left: 10%; right: 10%; }
.tp-criativo .bar1 { top: 42%; } .tp-criativo .bar2 { top: 56%; width: 60%; } .tp-criativo .bar3 { top: 74%; width: 70%; }
.tp-executivo .bar { position: absolute; left: 20%; right: 20%; }
.tp-executivo .bar1 { top: 14%; height: 8px; background: var(--dark); left: 30%; right: 30%; }
.tp-executivo .line { position: absolute; left: 10%; right: 10%; top: 30%; height: 2px; background: var(--dark); }
.tp-executivo .bar2 { top: 42%; } .tp-executivo .bar3 { top: 54%; width: 70%; } .tp-executivo .bar4 { top: 70%; width: 60%; }
.template-pick-name { font-weight: 700; }
.template-pick-desc { font-size: .8rem; color: var(--gray); margin-top: 2px; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
