/* ============ Sistema real: login, fotos, conexão ============ */
[hidden] { display: none !important; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: var(--s6) var(--s4); background: var(--surface); }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--s5); }
.auth-card .logo { height: 24px; width: auto; align-self: flex-start; }
.auth-card h1 { margin: 0; }
.auth-card .card { display: flex; flex-direction: column; gap: var(--s5); }
.auth-foot { color: var(--ink-muted); font-size: 14px; line-height: 20px; text-align: center; }

.conn-bar { position: sticky; top: 0; z-index: 25; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; text-align: center; padding: var(--s2) var(--s4); }

.vc .ph img.cover, .vthumb img, .mimg img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.vthumb { position: relative; overflow: hidden; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s2); }
.photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface-high); border-radius: var(--r-sm) 0 var(--r-sm) 0; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .pbtns { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.photo:hover .pbtns, .photo:focus-within .pbtns { opacity: 1; }
.photo .pbtns button { height: 28px; padding: 0 8px; border: 0; border-radius: 6px 0 6px 0; background: rgba(1,1,1,.75); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.photo .capa { position: absolute; left: 4px; top: 4px; }
.photo-add { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--r-sm) 0 var(--r-sm) 0; color: var(--ink-muted); font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; padding: var(--s2); }
.photo-add:hover { color: var(--ink); border-color: var(--ink); }
@media (hover: none) { .photo .pbtns { opacity: 1; } }
.mimg { cursor: zoom-in; }
.maudio audio { width: 220px; max-width: 100%; height: 36px; }
.mdoc a { color: inherit; }
.msg .merr { font-size: 12px; color: var(--danger); font-weight: 600; }
.ticks.fail { color: var(--danger); letter-spacing: 0; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--surface); padding: var(--s2) var(--s3); border-radius: var(--r-sm) 0 var(--r-sm) 0; word-break: break-all; user-select: all; }
.copyrow { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.copyrow .secret { flex: 1 1 240px; }
.qr-img { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 6px; flex: none; display: grid; place-items: center; }
.qr-img img, .qr-img svg { width: 100%; height: 100%; image-rendering: pixelated; }
.code-sample { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 19px; background: var(--surface); padding: var(--s3); border-radius: var(--r-sm) 0 var(--r-sm) 0; white-space: pre-wrap; overflow-x: auto; margin: 0; }
.temp-pass { font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; text-align: center; padding: var(--s4); background: var(--surface-raised); border-radius: var(--r-sm) 0 var(--r-sm) 0; user-select: all; }
.loading { color: var(--ink-muted); text-align: center; padding: var(--s8) var(--s4); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: var(--s4); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============ Conexão do WhatsApp: escolha entre API oficial e QR Code ============ */
.wa-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.wa-opt { gap: var(--s4); }
.wa-opt > .btn { align-self: flex-start; }
.wa-opt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.wa-opt-head h3 { margin: 0; font-size: 17px; line-height: 24px; }
.wa-pros { margin: 0; padding-left: var(--s5); line-height: 24px; font-size: 15px; }
.wa-warn { font-weight: 500; font-size: 14px; line-height: 20px; }
.qr-img.qr-lg { width: 232px; height: 232px; }
@media (max-width: 860px) { .wa-options { grid-template-columns: minmax(0, 1fr); } .qr-img.qr-lg { width: 200px; height: 200px; } }

/* ============ Etapas do funil ============ */
.head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; align-items: center; gap: var(--s3); min-height: 56px; border-top: 1px solid var(--line-soft); }
.st-list .st-row:first-child { border-top: 0; }
.st-row input { flex: 1; min-width: 0; height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm) 0 var(--r-sm) 0; background: var(--surface); font-size: 16px; font-weight: 600; }
.st-row.fixed b { flex: 1; padding-left: var(--s3); }
.st-meta { flex: none; white-space: nowrap; }
.st-btns { display: flex; flex: none; }
.st-btns .iconbtn[disabled] { opacity: .3; cursor: not-allowed; }
.kmark.lost { background: var(--danger); }
@media (max-width: 860px) { .st-meta { display: none; } .page-head .head-actions .btn-secondary { display: inline-flex; } }

/* ============ Mostrar senha ============ */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-right: 48px !important; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-muted); cursor: pointer; border-radius: var(--r-sm) 0 var(--r-sm) 0; }
.pw-eye:hover { color: var(--ink); background: var(--surface-raised); }
.pw-wrap input::-ms-reveal { display: none; }

/* ============ Páginas legais ============ */
.legal { max-width: 760px; margin: 0 auto; padding: var(--s7) var(--s4) var(--s8); line-height: 26px; }
.legal-logo img { height: 22px; width: auto; margin-bottom: var(--s6); }
.legal h2 { font-size: 18px; line-height: 24px; margin: var(--s7) 0 var(--s2); }
.legal ul { padding-left: var(--s5); }
.legal li { margin-bottom: var(--s1); }
.legal a { color: var(--accent-text); }
.legal mark { background: var(--lime); color: var(--on-lime); padding: 0 4px; border-radius: 3px; }
.legal-foot { margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--line-soft); color: var(--ink-muted); font-size: 14px; }
.legal-links { text-align: center; font-size: 13px; color: var(--ink-muted); }
.legal-links a { color: inherit; }
.support-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: var(--s3); flex-wrap: wrap; background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 14px; padding: 6px var(--s4); }
.support-bar button { height: 30px; padding: 0 var(--s3); border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 700; cursor: pointer; border-radius: 6px 0 6px 0; }
.danger-card { box-shadow: inset 3px 0 0 var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not([disabled]) { filter: brightness(1.08); }
