/* Área de edição dos sites alugados — feita primeiro para o celular */
:root {
  --bg: #f3f4f7;
  --card: #ffffff;
  --ink: #2b2118;
  --muted: #7d6c5a;
  --line: rgba(43, 33, 24, .12);
  --gold: #a8823f;
  --gold-soft: rgba(168, 130, 63, .12);
  --red: #b23a48;
  --green: #3e8f6f;
  --r: 12px;
  /* cores que cada cliente pode trocar em clientes/<pasta>/editar-tema.css (o padrão é o visual da Mary) */
  --field: #fff;
  --item: #f8f9fb;
  --glass: rgba(255, 255, 255, .92);
  --on-gold: #fff;
  --gold-ink: #7a5d27;
  --sw-off: #d9d3c9;
  --new-bg: #fffaf0;
  --ok-ink: #2c6b52;
  --script: "Great Vibes", cursive;
  --body: "Lato", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.loading { padding: 40px 20px; text-align: center; color: var(--muted); }

/* entrada */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px 18px; }
.login form { width: 100%; max-width: 380px; padding: 28px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.login h1 { margin: 0 0 4px; font: 400 40px/1.1 var(--script); color: var(--gold); text-align: center; }
.login p { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 14px; }
.msg { min-height: 22px; margin-top: 10px; font-size: 14px; text-align: center; color: var(--red); }

/* topo */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .brand { flex: 1; min-width: 0; }
.top .brand b { display: block; font: 400 26px/1.1 var(--script); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand small { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.menu-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 20px; line-height: 1; cursor: pointer; }
.menu { position: absolute; right: 14px; top: 58px; min-width: 230px; padding: 6px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.menu button, .menu a { display: block; width: 100%; padding: 11px 12px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 15px; }
.menu button:hover, .menu a:hover { background: var(--gold-soft); }
.menu .danger { color: var(--red); }

.wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 120px; }
.banner { margin-bottom: 12px; padding: 11px 14px; border-radius: var(--r); font-size: 14px; }
.banner.ok { background: rgba(62,143,111,.1); color: var(--ok-ink); }
.banner.warn { background: rgba(178,58,72,.1); color: var(--red); }
.banner.info { background: var(--gold-soft); color: var(--gold-ink); }

.langs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.langs span { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--field); }
.seg button { padding: 6px 14px; border: 0; background: none; font-weight: 700; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.hint { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

/* cartões das secções */
.card { margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card > summary { display: flex; align-items: center; gap: 10px; padding: 15px 16px; cursor: pointer; list-style: none; font-weight: 700; }
.card > summary::-webkit-details-marker { display: none; }
.card > summary .t { flex: 1; }
.card > summary .chev { color: var(--muted); transition: transform .2s; }
.card[open] > summary .chev { transform: rotate(90deg); }
.card .body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.card.off > summary .t { color: var(--muted); }

/* mostrar/esconder */
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--sw-off); transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }

/* campos */
.f { display: block; margin-top: 14px; }
.f > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.f > span em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.f input, .f textarea, .f select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 16px; }
.f textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .f { margin-top: 10px; }

/* listas (agenda, valores, perfil…) */
.items { margin-top: 12px; display: grid; gap: 10px; }
.item { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--item); }
.item .ctl { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: -4px; }
.item .ctl button, .ph .ctl button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); cursor: pointer; font-size: 15px; }
.item .ctl .del, .ph .ctl .del { color: var(--red); }
.item .f:first-of-type, .item .row2:first-of-type .f { margin-top: 0; }
.add { margin-top: 10px; width: 100%; padding: 11px; border: 1px dashed var(--gold); border-radius: 10px; background: none; color: var(--gold-ink); font-weight: 700; cursor: pointer; }
.sub { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }

/* fotos */
.pic { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pic img { width: 76px; height: 96px; object-fit: cover; border-radius: 8px; background: #eee; }
.pic .btns { display: grid; gap: 6px; }
.btn2 { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-weight: 700; font-size: 14px; cursor: pointer; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ph { position: relative; }
.ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #eee; display: block; }
.ph .ctl { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.ph .ctl button { width: 30px; height: 30px; font-size: 13px; }
.file { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* barra de baixo */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--line); }
.bar .st { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.bar .st b { display: block; color: var(--ink); font-size: 13.5px; }
.bar a, .bar button { padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bar .see { border: 1px solid var(--line); background: var(--field); }
.bar .pub { border: 0; background: var(--gold); color: var(--on-gold); }
.bar .pub:disabled { opacity: .45; cursor: default; }
.btn { width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 15px; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 84px; z-index: 30; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

@media (min-width: 760px) {
  .wrap { padding: 22px 24px 120px; }
  .photos { grid-template-columns: repeat(5, 1fr); }
  .bar { justify-content: center; }
  .bar .st { flex: 0 1 420px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* rótulos e ajustes (sem estilos dentro do HTML: a política de segurança não deixa) */
.pic .lbl { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.hint.in { margin: 12px 0 0; }
.f.swf { display: flex; align-items: flex-end; padding-bottom: 8px; }
.bar .see { color: var(--ink); }

/* pedidos recebidos (cópia dos e-mails, 30 dias) */
.leads { display: grid; gap: 10px; margin-top: 12px; }
.lead.new { border-color: var(--gold); background: var(--new-bg); }
.lead-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lead-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lead-txt { margin-top: 8px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-txt a { color: var(--gold-ink); }
.lead-pics { display: flex; gap: 8px; margin-top: 10px; }
.lead-ph img { display: block; width: 84px; height: 106px; object-fit: cover; border-radius: 8px; background: #eee; }
.lead-acts { display: flex; gap: 8px; margin-top: 10px; }
.lead-acts .del { color: var(--red); }

/* vídeos */
.ph video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.vid-up { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; }
.vid-up progress { width: 100%; height: 10px; accent-color: var(--gold); }

/* visitas do site */
.vtop { margin-top: 12px; }
.vtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.vtiles div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--item); }
.vtiles b { display: block; font-size: 26px; line-height: 1.1; color: var(--gold-ink); }
.vtiles span { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.vchart { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin-top: 14px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.vchart span { flex: 1; min-width: 1px; border-radius: 3px 3px 0 0; background: var(--gold); cursor: pointer; }
.vaxis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 11px; }
.vtip { min-height: 20px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.vbox .sub { margin-top: 16px; }
.vlist { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.vlist li span { min-width: 0; overflow-wrap: anywhere; }
.vlist li i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--gold); opacity: .7; }
.vlist li small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.vlist li em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--muted); }
.vrecent li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.vrecent li:last-child { border-bottom: 0; }
.vempty { color: var(--muted); }

/* vídeo da capa e música de fundo (um arquivo só) */
.media-one { display: grid; gap: 8px; margin-top: 14px; }
.media-one video { width: 100%; max-height: 260px; border-radius: 10px; background: #000; object-fit: cover; }
.media-one audio { width: 100%; }
.media-one .lbl { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
/* "Monte seu site" (Privé Desk) */
.login .chosen { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 8px; text-align: left; color: var(--ink); background: var(--item); border: 1px solid var(--line); border-radius: 10px; }
.login .chosen:empty { display: none; }
.login .chosen img { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; }
.login .alt { margin: 14px 0 0; }
.linkish { padding: 0; border: 0; background: none; color: var(--gold-ink); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.model-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mp { display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; }
.mp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; }
.mp.on { border: 2px solid var(--gold); }
.claim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(0, 0, 0, .55); }
.claim form { position: relative; width: 100%; max-width: 440px; padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.claim h2 { margin: 0 0 8px; font: 400 30px/1.15 var(--script); color: var(--gold); }
.claim .x { position: absolute; top: 8px; right: 10px; padding: 4px 10px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.claim .price b { font-size: 34px; color: var(--ink); }
.claim .price span { color: var(--muted); }
.claim .incl { margin: 8px 0 6px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.claim .btn.wa { display: block; text-align: center; text-decoration: none; background: #25d366; color: #fff; }
.claim .btn2.wide { width: 100%; margin-top: 10px; }
@media (min-width: 720px) { .model-pick { grid-template-columns: repeat(5, 1fr); } }

/* escolhas com dois botões grandes (capa, música, formulário) */
.choice { display: grid; gap: 8px; margin-top: 14px; }
.choice .lbl { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.choice-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-btns button { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-weight: 700; font-size: 15px; cursor: pointer; }
.choice-btns button .ic { font-size: 24px; line-height: 1; }
.choice-btns button.on { border: 2px solid var(--gold); background: var(--gold-soft); color: var(--gold-ink); }

/* lista de músicas prontas (Monte seu site): ▶ ouve, o nome escolhe */
.tracks { display: grid; gap: 8px; margin-top: 14px; }
.tracks .lbl { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.track { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.tr-play { border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: inherit; font-size: 16px; cursor: pointer; }
.tr-pick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.tr-pick .ic { font-size: 20px; line-height: 1; }
.tr-pick b { margin-left: auto; }
.track.on .tr-pick { border: 2px solid var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
