/* ==========================================================================
   Currículo Global — estilos (site, área do cliente, afiliado e admin)
   ========================================================================== */
:root {
  --brand: #1D4ED8;
  --ink: #0B1324;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --accent: #F59E0B;
  --ok: #16A34A;
  --warn: #D97706;
  --danger: #DC2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 18px; } .mt0 { margin-top: 0; } .mb { margin-bottom: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 18px; text-decoration: none !important; }
.logo b { font-weight: 800; color: var(--brand); }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-accent { background: var(--accent); color: #1a1200; }
.btn-accent:hover { box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: none; }
.btn-ok { background: var(--ok); }
.btn-danger { background: var(--danger); }
.btn-wa { background: #25D366; color: #06311a; }
.btn-block { width: 100%; }

/* ---------- Cards / alertas / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; font-weight: 500; }
.alert-ok, .alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.alert-error, .alert-danger { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.alert-warn, .alert-info { background: #FFFAEB; border-color: #FEDF89; color: #93370D; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #EEF2F6; color: #475467; }
.badge-ok { background: #DCFAE6; color: #067647; }
.badge-warn { background: #FEF0C7; color: #93370D; }
.badge-danger { background: #FEE4E2; color: #B42318; }
.badge-muted { background: #F2F4F7; color: #667085; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #EEF4FF; color: var(--brand); font-weight: 600; }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=month], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #CBD5E1; border-radius: 10px; padding: 10px 12px; transition: border .12s, box-shadow .12s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.input-group { display: flex; gap: 8px; }
.input-group > :first-child { flex: 0 0 120px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #FAFCFF; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Área do cliente ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.topnav a:hover { background: var(--bg); }
.topnav a.active { background: #EEF4FF; color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }
.app-main { padding-top: 28px; padding-bottom: 50px; min-height: calc(100vh - 140px); }
.app-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .topnav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--line); }
  .nav-open .topnav { display: flex; }
}
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-size: 26px; margin: 0; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at -10% -20%, color-mix(in srgb, var(--brand) 85%, #fff) 0%, var(--brand) 40%, #0B1324 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .logo, .auth-side .logo b { color: #fff; }
.auth-side .logo-mark { background: #fff; color: var(--brand); }
.auth-side h2 { font-size: 34px; max-width: 460px; }
.auth-side li { margin-bottom: 8px; opacity: .92; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.auth-form .box { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 28px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

.resume-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.resume-card .flag { font-size: 34px; line-height: 1; }
.resume-card h3 { margin: 0 0 4px; font-size: 17px; }
.progress { height: 8px; background: #EEF2F6; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.empty { text-align: center; padding: 50px 20px; }
.empty .big { font-size: 54px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.editor-side { position: sticky; top: 86px; }
@media (max-width: 1080px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.editor > * { min-width: 0; }
.app-main { overflow-x: clip; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.steps a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.steps a:hover { border-color: var(--brand); color: var(--brand); }
.fs { border: 0; padding: 0; margin: 0 0 18px; }
.fs > .card { padding: 22px 22px 8px; }
.fs h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.fs h2 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #EEF4FF; color: var(--brand); font-size: 14px; }
.repeater-item { border: 1px dashed #CBD5E1; border-radius: 12px; padding: 14px 14px 2px; margin-bottom: 12px; position: relative; background: #FCFDFE; }
.repeater-item .rm { position: absolute; top: 8px; right: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px; cursor: pointer; color: var(--danger); font-weight: 700; }
.add-item { background: #fff; border: 1.5px dashed var(--brand); color: var(--brand); border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; margin-bottom: 14px; font: inherit; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.country-opt { position: relative; }
.country-opt input { position: absolute; opacity: 0; }
.country-opt span { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; background: #fff; }
.country-opt input:checked + span { border-color: var(--brand); background: #EEF4FF; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-opt input { position: absolute; opacity: 0; }
.tpl-opt span { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; background: #fff; text-align: center; font-weight: 700; font-size: 13px; }
.tpl-opt .mini { height: 74px; border-radius: 6px; background: #F8FAFC; margin-bottom: 6px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.tpl-opt .mini i { display: block; height: 5px; border-radius: 2px; background: #CBD5E1; }
.tpl-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors label { margin: 0; }
.colors input { position: absolute; opacity: 0; }
.colors span { display: block; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.colors input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.tips { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.tips ul { margin: 6px 0 0; padding-left: 18px; }
.photo-box { display: flex; gap: 14px; align-items: center; }
.photo-box img, .photo-box .ph { width: 78px; height: 104px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #F1F5F9; display: grid; place-items: center; color: var(--muted); font-size: 26px; }
.preview-frame { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: 12px; background: #e9edf2; }
.savebar { position: sticky; bottom: 0; background: rgba(246, 248, 251, .92); backdrop-filter: blur(6px); padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; z-index: 10; }
.status-steps { display: flex; gap: 0; margin: 10px 0 0; }
.status-steps div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 22px; }
.status-steps div::before { content: ''; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #CBD5E1; transform: translateX(-50%); }
.status-steps div.on { color: var(--ink); font-weight: 600; }
.status-steps div.on::before { background: var(--ok); }
.spinner { width: 42px; height: 42px; border: 4px solid #E2E8F0; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.price-big { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.price-old { text-decoration: line-through; color: var(--muted); }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, monospace; font-size: 13.5px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.stat .s { font-size: 12.5px; color: var(--muted); }

/* ---------- Admin ---------- */
.adm { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.adm-side { background: #0B1324; color: #CBD5E1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.adm-logo { padding: 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.adm-logo .logo, .adm-logo .logo b { color: #fff; }
.adm-side nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.adm-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #CBD5E1; font-weight: 600; font-size: 14px; text-decoration: none; }
.adm-side nav a span { width: 22px; text-align: center; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-side nav a.active { background: var(--brand); color: #fff; }
.adm-side .pill { margin-left: auto; font-style: normal; background: var(--accent); color: #1a1200; border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 800; }
.adm-side .pill.danger { background: var(--danger); color: #fff; }
.adm-side-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; justify-content: space-between; font-size: 13px; }
.adm-side-foot a { color: #94A3B8; }
.adm-main { min-width: 0; }
.adm-top { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.adm-top h1 { font-size: 21px; margin: 0; flex: 1; }
.adm-user { color: var(--muted); font-weight: 600; font-size: 14px; }
.adm-content { padding: 26px 28px 60px; }
.nav-toggle.dark { color: var(--ink); }
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: -270px; width: 250px; z-index: 60; transition: left .2s; }
  .nav-open .adm-side { left: 0; }
  .adm .nav-toggle { display: block; }
  .adm-content { padding: 18px 14px 60px; }
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 160px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.kv-list { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: 14px; }
.kv-list dt { color: var(--muted); font-weight: 600; }
.kv-list dd { margin: 0; }
pre.log { background: #0B1324; color: #E2E8F0; padding: 12px; border-radius: 10px; font-size: 12px; overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-all; }
.chart-box { position: relative; height: 290px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-box .bar { fill: var(--brand); }
.chart-box .bar:hover { fill: var(--accent); }
.chart-box .lbl { font-size: 10px; fill: #94A3B8; }
.chart-box .grid { stroke: #EEF2F6; }

/* ==========================================================================
   Landing page
   ========================================================================== */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.lp-nav .in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.lp-nav nav { display: flex; gap: 22px; align-items: center; }
.lp-nav nav a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.lp-nav nav a.btn { color: #fff; }
@media (max-width: 860px) { .lp-nav nav .hide-m { display: none; } }
.hero { position: relative; overflow: hidden; padding: 70px 0 80px; background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(245, 158, 11, .14), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.mock { position: relative; height: 470px; }
.mock .paper { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(15, 23, 42, .18); padding: 22px; width: 300px; }
.mock .p1 { right: 30px; top: 10px; transform: rotate(4deg); }
.mock .p2 { left: 10px; top: 70px; transform: rotate(-5deg); z-index: 2; }
.mock .flagchip { position: absolute; z-index: 3; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; box-shadow: var(--shadow); font-size: 14px; }
.paper .pn { font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.paper .ph { width: 54px; height: 70px; border-radius: 6px; background: #E2E8F0; float: left; margin-right: 12px; display: grid; place-items: end center; overflow: hidden; }
.paper .ph svg { width: 46px; height: 46px; fill: #94A3B8; }
.paper .ln { height: 6px; background: #E2E8F0; border-radius: 3px; margin: 6px 0; }
.paper .hd { height: 9px; border-radius: 3px; margin: 14px 0 8px; width: 46%; }
@media (max-width: 960px) { .mock { display: none; } }
.section-lp { padding: 80px 0; }
.section-lp.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lp h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.025em; text-align: center; }
.section-lp .sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 40px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #EEF4FF; margin-bottom: 12px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
.how { counter-reset: s; }
.how .step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.how .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.rules-table { max-width: 900px; margin: 30px auto 0; }
.rules-table td:first-child { font-weight: 700; white-space: nowrap; }
.pricing { max-width: 860px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; position: relative; box-shadow: var(--shadow); }
.price-card.hot { border: 2px solid var(--brand); box-shadow: 0 20px 50px color-mix(in srgb, var(--brand) 18%, transparent); }
.price-card .ribbon { position: absolute; top: -13px; right: 22px; background: var(--accent); color: #1a1200; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #DCFAE6; color: #067647; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }
.cta-band { background: linear-gradient(120deg, var(--brand), #0B1324); color: #fff; border-radius: 24px; padding: 50px 30px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 17px; }
.lp-foot { padding: 40px 0; color: var(--muted); font-size: 14px; }
.lp-foot .in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); z-index: 80; text-decoration: none !important; }
.doc-page { max-width: 820px; margin: 40px auto; }
.doc-page h1 { font-size: 30px; }
.doc-page h2 { font-size: 19px; margin-top: 26px; }

/* Posição da foto */
.pos-opt { margin: 0; flex: 1; min-width: 150px; }
.pos-opt input { position: absolute; opacity: 0; }
.pos-opt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.pos-opt small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pos-opt input:checked + span { border-color: var(--brand); background: #EEF4FF; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.pp { position: relative; display: block; width: 64px; height: 44px; background: #F8FAFC; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 4px; }
.pp b { position: absolute; width: 14px; height: 18px; background: #94A3B8; border-radius: 2px; }
.pp em { position: absolute; height: 3px; background: #CBD5E1; border-radius: 2px; }
.pp-l b { left: 5px; top: 5px; } .pp-l em { left: 23px; right: 6px; } .pp-l em:nth-of-type(1) { top: 7px; background: var(--brand); } .pp-l em:nth-of-type(2) { top: 14px; } .pp-l em:nth-of-type(3) { top: 20px; right: 16px; }
.pp-r b { right: 6px; top: 16px; } .pp-r em { left: 6px; right: 26px; } .pp-r em.t { top: 6px; left: 14px; right: 14px; background: var(--brand); } .pp-r em:nth-of-type(2) { top: 18px; } .pp-r em:nth-of-type(3) { top: 25px; right: 34px; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C7D2FE; background: linear-gradient(135deg, #EEF2FF, #F5F3FF); color: #4338CA; font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.ai-btn:hover { border-color: #818CF8; }
.ai-btn:disabled { opacity: .6; cursor: wait; }

/* ==========================================================================
   UX v2 — editor, mobile e acessibilidade
   ========================================================================== */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.editor-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.steps { position: sticky; top: 66px; z-index: 15; background: rgba(246, 248, 251, .94); backdrop-filter: blur(6px); padding: 8px 0; margin: -8px 0 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps a { white-space: nowrap; flex: 0 0 auto; }
.steps a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fs { scroll-margin-top: 130px; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px 160px; gap: 0 14px; }
.course-grid .c-name { grid-column: 1 / -1; }
.suffix { position: relative; }
.suffix input { padding-right: 58px; }
.suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.save-state { margin-right: auto; align-self: center; }
.fab-preview { display: none; }
.close-preview { display: none; }
.hide-xs { display: inline; }

@media (max-width: 1080px) {
  .editor-side { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(11, 19, 36, .65); padding: 10px; }
  .show-preview .editor-side { display: block; }
  .show-preview { overflow: hidden; }
  .editor-side .card { height: 100%; display: flex; flex-direction: column; }
  .editor-side .preview-frame { flex: 1; height: auto; }
  .close-preview { display: inline-flex; }
  .fab-preview { display: inline-flex; position: fixed; right: 14px; bottom: 84px; z-index: 30; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 10px 25px rgba(11, 19, 36, .35); cursor: pointer; }
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
  .course-grid .c-name, .course-grid .c-inst { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  /* 16px evita o zoom automático do iPhone ao tocar nos campos */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=month], input[type=number], input[type=url], select, textarea { font-size: 16px; }
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .app-main { padding-top: 18px; }
  .page-title h1 { font-size: 22px; }
  .editor-status { align-items: flex-start; }
  .card { padding: 16px; }
  .fs > .card { padding: 16px 14px 4px; }
  .repeater-item { padding: 12px 10px 2px; }
  .savebar { gap: 8px; padding: 10px 0; }
  .savebar .btn { flex: 1; padding: 12px 10px; font-size: 14px; }
  .savebar .save-state { flex-basis: 100%; text-align: center; margin: 0; }
  .hide-xs { display: none; }
  .tpl-grid { gap: 6px; }
  .tpl-opt .mini { height: 54px; }
  .country-grid { grid-template-columns: 1fr 1fr; max-height: 280px; }
  .photo-box { align-items: flex-start; }
  .pos-opt { min-width: 0; }
  .resume-card .row { width: 100%; }
  .resume-card > .row:last-child .btn { flex: 1 1 auto; }
  .price-big { font-size: 32px; }
  .hero { padding: 40px 0 50px; }
  .hero p.lead { font-size: 16.5px; }
  .hero .cta .btn { width: 100%; }
  .section-lp { padding: 54px 0; }
  .price-card { padding: 22px; }
  .cta-band { padding: 36px 18px; border-radius: 18px; }
  .lp-nav nav { gap: 12px; }
  .auth-form { padding: 28px 16px; }
  .kv-list { grid-template-columns: 1fr; gap: 2px; }
  .kv-list dd { margin-bottom: 8px; }
  .filters input, .filters select { min-width: 0; flex: 1 1 140px; }
  .adm-top { padding: 14px; }
  .adm-top h1 { font-size: 18px; }
}
/* Menu "⋯" dos currículos vira painel inferior no celular */
@media (max-width: 760px) {
  details.more[open] > .card { position: fixed !important; left: 10px !important; right: 10px !important; bottom: 10px !important; top: auto !important; min-width: 0 !important; z-index: 130 !important; padding: 12px !important; box-shadow: 0 -10px 40px rgba(11, 19, 36, .25); }
  details.more[open]::before { content: ''; position: fixed; inset: 0; background: rgba(11, 19, 36, .45); z-index: 125; }
  details.more[open] > .card .btn { padding: 13px; font-size: 15px; }
}
/* Checkout: no celular o resumo/pagamento vem antes da prévia */
@media (max-width: 960px) {
  #ck > :last-child { order: -1; }
  #ck .preview-frame { height: 520px !important; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Foto: miniatura e editor de recorte ---------- */
.photo-thumb { position: relative; flex: 0 0 auto; width: 90px; height: 120px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #F1F5F9; overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.photo-thumb:hover { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .ph { display: grid; place-items: center; width: 100%; height: 100%; }
.photo-thumb [hidden] { display: none !important; }
.photo-busy { position: absolute; inset: 0; background: rgba(255, 255, 255, .75); display: grid; place-items: center; }
.photo-actions { gap: 6px; margin: 8px 0 2px; }
.photo-actions [hidden] { display: none !important; }
.crop-open { overflow: hidden; }
.crop-modal { position: fixed; inset: 0; z-index: 200; background: rgba(11, 19, 36, .72); display: none; align-items: center; justify-content: center; padding: 14px; }
.crop-modal.open { display: flex; }
.crop-card { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-height: 100%; overflow: auto; }
.crop-head { display: flex; justify-content: space-between; align-items: center; }
.crop-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.crop-tip { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.crop-stage { position: relative; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #0B1324; touch-action: none; user-select: none; }
.crop-stage canvas { display: block; cursor: grab; touch-action: none; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-guide { position: absolute; left: 22%; right: 22%; top: 10%; height: 48%; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .12); }
.crop-tools { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.crop-tools input[type=range] { flex: 1; accent-color: var(--brand); }
.crop-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.crop-tools2 { justify-content: center; flex-wrap: wrap; gap: 6px; }
.crop-foot { display: flex; gap: 8px; margin-top: 14px; }
.crop-foot .btn { flex: 1; }

/* ---------- Galeria de exemplos ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.ex-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.ex-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.ex-frame { position: relative; aspect-ratio: 1 / 1.3; background: #e9edf2; overflow: hidden; }
.ex-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.ex-info { padding: 12px 14px; border-top: 1px solid var(--line); }
.ex-info strong { display: block; font-size: 15px; }
.ex-info span { font-size: 12.5px; color: var(--muted); }
