/* iTatto (provisório) v2: visual próprio de app de tatuagem (tinta, papel, vermelhão). Não é a marca Ubia. */
:root {
  --bg: #0f0e0d; --surface: #171513; --surface-2: #1f1c19; --surface-3: #2a2622; --line: #2f2a25; --line-2: #3b352f;
  --text: #f3ede5; --text-2: #c9c0b5; --muted: #8f867b;
  --accent: #e4573d; --accent-ink: #fff; --accent-soft: rgba(228, 87, 61, .14);
  --gold: #e8b04b; --gold-soft: rgba(232, 176, 75, .14);
  --ok: #4fae7b; --ok-soft: rgba(79, 174, 123, .14); --bad: #e4573d; --info: #6aa2c9; --info-soft: rgba(106, 162, 201, .14);
  --r: 14px; --r-sm: 10px; --sombra: 0 10px 30px rgba(0, 0, 0, .35);
  --t: .18s cubic-bezier(.2, .7, .3, 1);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titulo: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--fonte); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--titulo); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 650; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
main { flex: 1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* aviso de protótipo */
.aviso-topo { background: var(--gold); color: #1d1a17; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; }

/* ---------- navbar ---------- */
.topo { position: sticky; top: 0; z-index: 40; background: rgba(15, 14, 13, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo-marca { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo-marca svg { width: 18px; height: 18px; }
.logo small { font: 500 11px var(--fonte); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: var(--t); position: relative; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--text); background: var(--surface-3); }
.nav .bolinha { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.papel-tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--titulo); background: linear-gradient(135deg, var(--accent), var(--gold)); color: #1d1a17; flex-shrink: 0; }
.avatar.g { width: 64px; height: 64px; font-size: 22px; }
.avatar.xg { width: 96px; height: 96px; font-size: 32px; border: 3px solid var(--bg); }
.menu-conta { position: relative; }
.menu-conta > button { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line-2); transition: var(--t); }
.menu-conta > button:hover { background: var(--surface-2); }
.menu-conta .caixa { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sombra); padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: var(--t); }
.menu-conta.aberto .caixa { opacity: 1; transform: none; pointer-events: auto; }
.caixa .quem { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.caixa a, .caixa button { display: flex; width: 100%; text-align: left; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.caixa a:hover, .caixa button:hover { background: var(--surface-2); color: var(--text); }

/* barra de baixo no celular (cliente) */
.tabbar { display: none; }

/* ---------- botões, campos, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: var(--t); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--accent); color: var(--accent-ink); }
.btn-p:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(228, 87, 61, .35); }
.btn-s { background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-s:hover { background: var(--surface-3); }
.btn-g { color: var(--text-2); }
.btn-g:hover { color: var(--text); background: var(--surface-2); }
.btn-ouro { background: var(--gold); color: #1d1a17; }
.btn-ouro:hover { filter: brightness(1.06); }
.btn-peq { height: 34px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-ic { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.campo { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.campo small { font-weight: 400; color: var(--muted); }
.inp { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); transition: var(--t); font-size: 14.5px; color: var(--text); }
textarea.inp { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); transition: var(--t); }
button.chip:hover { border-color: var(--muted); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.exemplo { display: inline-block; font: 600 10px var(--fonte); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: var(--gold-soft); color: var(--gold); vertical-align: middle; margin-left: 4px; }
.selo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok); }
.estrela { color: var(--gold); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.warn { background: var(--gold-soft); color: var(--gold); }
.st.bad { background: var(--accent-soft); color: var(--accent); }
.st.info { background: var(--info-soft); color: var(--info); }
.st.neutro { background: var(--surface-3); color: var(--text-2); }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-p { padding: 20px; }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.linha { display: flex; align-items: center; gap: 12px; }
.entre { justify-content: space-between; }
.pilha { display: grid; gap: 12px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* cartão de tatuador */
.tt { overflow: hidden; transition: var(--t); position: relative; display: flex; flex-direction: column; }
.tt:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sombra); }
.tt-capa { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 10; background: var(--line); }
.tt-capa > div { overflow: hidden; }
.tt-capa > div:first-child { grid-row: span 2; }
.tt-capa svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tt:hover .tt-capa svg { transform: scale(1.04); }
.tt-corpo { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; }
.tt-nome { display: flex; align-items: center; gap: 10px; }
.tt-nome .avatar { width: 38px; height: 38px; margin-top: -32px; border: 3px solid var(--surface); }
.tt-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(15, 14, 13, .7); backdrop-filter: blur(6px); display: grid; place-items: center; transition: var(--t); z-index: 2; }
.fav:hover { transform: scale(1.1); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; transition: var(--t); }
.fav.on svg { fill: var(--accent); stroke: var(--accent); animation: pulso .35s; }
@keyframes pulso { 50% { transform: scale(1.35); } }
.agenda-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(15, 14, 13, .75); color: var(--ok); backdrop-filter: blur(6px); }

/* ---------- home ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(228, 87, 61, .22), transparent 60%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { font-size: 18px; color: var(--text-2); margin: 18px 0 28px; max-width: 520px; }
.busca-hero { display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sombra); max-width: 560px; }
.busca-hero .inp { border: 0; background: transparent; height: 42px; }
.busca-hero select.inp { max-width: 170px; border-left: 1px solid var(--line-2); border-radius: 0; }
.hero-mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-3deg); }
.hero-mosaico > div { border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); animation: flutua 6s ease-in-out infinite; }
.hero-mosaico > div:nth-child(2n) { margin-top: 28px; animation-delay: -2s; }
@keyframes flutua { 50% { transform: translateY(-8px); } }
.numeros { display: flex; gap: 28px; margin-top: 28px; }
.numeros b { display: block; font: 700 24px var(--titulo); }
.numeros span { font-size: 12.5px; color: var(--muted); }
.secao { padding: 48px 0; }
.secao-topo { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.estilo-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; display: block; }
.estilo-card svg { width: 100%; height: 100%; transition: transform .5s; }
.estilo-card:hover svg { transform: scale(1.06); }
.estilo-card span { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); font: 650 15px var(--titulo); }
.passos { counter-reset: p; }
.passo { padding: 22px; }
.passo::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: 700 15px var(--titulo); margin-bottom: 14px; }
.passo p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.faixa-ia { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: 20px; background: linear-gradient(120deg, rgba(228, 87, 61, .18), rgba(232, 176, 75, .12)); border: 1px solid var(--line-2); }

/* ---------- busca ---------- */
.busca-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding: 28px 0 56px; align-items: start; }
.filtros { position: sticky; top: 84px; padding: 18px; display: grid; gap: 18px; }
.filtros h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-family: var(--fonte); }
.faixa { display: flex; align-items: center; gap: 10px; }
.faixa input[type=range] { flex: 1; accent-color: var(--accent); }
.troca { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; cursor: pointer; }
.troca input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; transition: var(--t); cursor: pointer; flex-shrink: 0; }
.troca input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: var(--t); }
.troca input:checked { background: var(--accent); }
.troca input:checked::after { left: 19px; background: #fff; }
.resultado-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filtro-btn { display: none; }

/* ---------- estado vazio ---------- */
.vazio { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.vazio .ilus { width: 88px; height: 88px; border-radius: 24px; background: var(--surface-2); border: 1px dashed var(--line-2); display: grid; place-items: center; margin-bottom: 6px; }
.vazio .ilus svg { width: 40px; height: 40px; stroke: var(--muted); fill: none; stroke-width: 1.5; }
.vazio p { color: var(--muted); max-width: 360px; font-size: 14px; }

/* ---------- perfil ---------- */
.perfil-capa { height: 220px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; overflow: hidden; }
.perfil-capa > div { overflow: hidden; } .perfil-capa svg { width: 100%; height: 100%; filter: brightness(.6); }
.perfil-topo { display: flex; gap: 20px; align-items: flex-end; margin-top: -48px; position: relative; flex-wrap: wrap; }
.perfil-topo .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.perfil-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 56px; align-items: start; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.portfolio button { border-radius: 10px; overflow: hidden; transition: var(--t); }
.portfolio button:hover { transform: scale(1.02); box-shadow: var(--sombra); }
.lateral { position: sticky; top: 84px; }
.info-l { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-l:last-child { border: 0; }
.aval { padding: 16px 0; border-bottom: 1px solid var(--line); }
.aval:last-child { border: 0; }
.resposta { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--text-2); }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.abas button { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--t); white-space: nowrap; }
.abas button.on { color: var(--text); border-color: var(--accent); }

/* ---------- fluxo de pedido ---------- */
.fluxo { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 28px 0 56px; align-items: start; }
.etapas { display: flex; gap: 8px; margin-bottom: 22px; }
.etapas span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; }
.etapas span.on { background: var(--accent); }
.etapas-rot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: -14px 0 22px; }
.anexo { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); }
.anexo .mini { width: 52px; height: 66px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--surface-3); }
.anexo .mini img, .anexo .mini svg { width: 100%; height: 100%; object-fit: cover; }
.soltar { border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; transition: var(--t); cursor: pointer; display: block; }
.soltar:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.alerta { padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.5px; display: flex; gap: 10px; }
.alerta.bad { background: var(--accent-soft); color: #ffb4a6; }
.alerta.info { background: var(--info-soft); color: #b9d7ec; }
.alerta.ouro { background: var(--gold-soft); color: #f3d79c; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; text-align: center; transition: var(--t); }
.slot:hover:not([disabled]) { border-color: var(--accent); }
.slot.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot[disabled] { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slot b { display: block; font-size: 11px; font-weight: 500; color: inherit; opacity: .75; }
.pix { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.pix svg { background: #fff; border-radius: 10px; padding: 8px; }

/* pedidos e chat */
.pedido-l { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; transition: var(--t); }
.pedido-l:hover { background: var(--surface-2); }
.pedido-l .mini { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; }
.linha-tempo { display: flex; gap: 0; margin: 6px 0 2px; }
.linha-tempo i { flex: 1; height: 3px; background: var(--surface-3); margin-right: 3px; border-radius: 3px; }
.linha-tempo i.on { background: var(--ok); }
.chat { display: flex; flex-direction: column; height: 520px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14px; animation: entra .25s; }
.msg.eu { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.ele { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.sis { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.msg small { display: block; opacity: .7; font-size: 11px; margin-top: 3px; }
.digitando { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border-radius: 16px; }
.digitando i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pula 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 30% { transform: translateY(-4px); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.estrelas { display: flex; gap: 4px; }
.estrelas button { font-size: 28px; color: var(--surface-3); transition: var(--t); line-height: 1; }
.estrelas button.on, .estrelas button:hover { color: var(--gold); transform: scale(1.1); }
.orc-box { padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, rgba(79, 174, 123, .12), transparent); border: 1px solid rgba(79, 174, 123, .35); }

/* ---------- IA ---------- */
.ia-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; padding: 28px 0 56px; align-items: start; }
.ia-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ia-op { position: relative; border-radius: var(--r); overflow: hidden; border: 2px solid transparent; transition: var(--t); background: var(--surface); }
.ia-op:hover { transform: translateY(-2px); }
.ia-op.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ia-op .exemplo { position: absolute; top: 10px; left: 10px; margin: 0; background: rgba(15, 14, 13, .8); }
.ia-op .marca { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: none; place-items: center; color: #fff; font-weight: 700; }
.ia-op.on .marca { display: grid; }
.esqueleto { aspect-ratio: 200 / 260; border-radius: var(--r); background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: brilho 1.2s infinite; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sugestoes { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- painéis (tatuador e admin) ---------- */
.painel { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 64px - 31px); background: linear-gradient(90deg, var(--surface) 235px, var(--line) 235px 236px, transparent 236px); }
.lado { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; background: var(--surface); }
.lado .quem-l { display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lado nav { display: grid; gap: 2px; }
.lado nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: var(--t); }
.lado nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.lado nav a:hover { background: var(--surface-2); color: var(--text); }
.lado nav a.on { background: var(--accent-soft); color: var(--text); }
.lado nav a.on svg { stroke: var(--accent); }
.lado nav a .cont { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.lado .grupo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; }
.conteudo { padding: 28px clamp(16px, 3vw, 36px) 56px; min-width: 0; }
.conteudo-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.conteudo-topo p { color: var(--muted); margin-top: 4px; }
.kpi { padding: 18px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.kpi .rot { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.kpi .val { font: 700 28px var(--titulo); letter-spacing: -.02em; }
.kpi .var { font-size: 12.5px; font-weight: 600; }
.kpi .var.sobe { color: var(--ok); } .kpi .var.desce { color: var(--accent); }
.kpi .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.kpi .ic svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.grafico { width: 100%; height: auto; overflow: visible; }
.grafico .barra { fill: var(--accent); transition: var(--t); transform-origin: bottom; transform-box: fill-box; animation: cresce .6s cubic-bezier(.2, .7, .3, 1) both; }
.grafico .barra.fraca { fill: var(--surface-3); }
.grafico .barra:hover { fill: var(--gold); }
@keyframes cresce { from { transform: scaleY(0); } }
.grafico text { fill: var(--muted); font-size: 11px; font-family: var(--fonte); }
.grafico .grade-l { stroke: var(--line); stroke-dasharray: 3 4; }
.grafico .linha-g { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1000; animation: desenha 1.2s ease-out both; }
.grafico .area { fill: url(#gradArea); }
@keyframes desenha { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.barras-h { display: grid; gap: 10px; }
.barras-h .l { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; }
.barras-h .trilho { height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.barras-h .trilho i { display: block; height: 100%; background: var(--accent); border-radius: 8px; animation: largura .8s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes largura { from { width: 0 !important; } }
.lista-l { display: grid; }
.lista-l > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lista-l > *:last-child { border: 0; }
.hora-box { width: 52px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface-2); flex-shrink: 0; }
.hora-box b { display: block; font: 700 15px var(--titulo); }
.hora-box span { font-size: 11px; color: var(--muted); }

/* agenda semanal */
.agenda { display: grid; grid-template-columns: 52px repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); min-width: 760px; }
.agenda-rolar { overflow-x: auto; }
.agenda .cab { padding: 10px 8px; text-align: center; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.agenda .cab b { display: block; color: var(--text); font: 700 18px var(--titulo); }
.agenda .cab.hoje b { color: var(--accent); }
.agenda .horas { display: grid; grid-template-rows: repeat(11, 52px); }
.agenda .horas span { font-size: 11px; color: var(--muted); text-align: right; padding: 2px 8px 0 0; border-top: 1px solid var(--line); }
.agenda .coluna { position: relative; display: grid; grid-template-rows: repeat(11, 52px); border-left: 1px solid var(--line); }
.agenda .coluna > i { border-top: 1px solid var(--line); }
.agenda .coluna > i:hover { background: var(--surface-2); cursor: pointer; }
.evento { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 6px 8px; font-size: 12px; overflow: hidden; transition: var(--t); text-align: left; border-left: 3px solid; }
.evento:hover { transform: scale(1.02); z-index: 3; box-shadow: var(--sombra); }
.evento b { display: block; font-size: 12.5px; }
.evento.sessao { background: rgba(228, 87, 61, .2); border-color: var(--accent); }
.evento.ok { background: var(--ok-soft); border-color: var(--ok); }
.evento.falta { background: var(--surface-3); border-color: var(--muted); text-decoration: line-through; color: var(--muted); }
.evento.bloq { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--surface-3) 6px, var(--surface-3) 12px); border-color: var(--line-2); color: var(--muted); }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legenda span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; overflow-x: auto; }
.coluna-k { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 260px; }
.coluna-k h4 { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 6px; font-family: var(--fonte); }
.coluna-k h4 span { color: var(--muted); }
.cartao-k { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 8px; transition: var(--t); animation: entra .25s; }
.cartao-k:hover { border-color: var(--muted); }
.cartao-k .topo-k { display: flex; gap: 10px; }
.cartao-k .mini { width: 44px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cartao-k p { font-size: 13px; color: var(--text-2); }

/* tabela */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tabela tr:last-child td { border: 0; }
.tabela tbody tr { transition: var(--t); }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela-rolar { overflow-x: auto; }

/* portfólio do tatuador */
.port-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.port-ed .it { position: relative; border-radius: 12px; overflow: hidden; animation: entra .3s; }
.port-ed .it .acoes-it { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transition: var(--t); }
.port-ed .it:hover .acoes-it { opacity: 1; }
.port-ed .it .acoes-it button { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 14px; }
.port-ed .it.destaque::after { content: '★ destaque'; position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1d1a17; }
.port-ed .novo { aspect-ratio: 200 / 260; border: 1.5px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: 13px; transition: var(--t); }
.port-ed .novo:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.port-ed .novo b { font-size: 28px; font-weight: 300; }

/* distribuição de notas */
.dist { display: grid; gap: 6px; }
.dist .l { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.dist .trilho { height: 7px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.dist .trilho i { display: block; height: 100%; background: var(--gold); animation: largura .8s both; }
.grande-nota { font: 700 52px var(--titulo); line-height: 1; }

/* ---------- login ---------- */
.login { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; }
.login-caixa { width: min(460px, 100%); padding: 32px; }
.papeis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.papel { padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface-2); text-align: left; transition: var(--t); }
.papel:hover { border-color: var(--muted); }
.papel.on { border-color: var(--accent); background: var(--accent-soft); }
.papel b { display: block; font: 650 15px var(--titulo); margin: 8px 0 2px; }
.papel span { font-size: 12.5px; color: var(--muted); }
.papel svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

/* ---------- modal, toast, lightbox ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: aparece .2s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; animation: sobe .25s cubic-bezier(.2, .7, .3, 1); }
.modal-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lightbox .modal { width: min(440px, 100%); padding: 12px; }
.lightbox svg { border-radius: 10px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--sombra); animation: sobe .3s; display: flex; gap: 10px; align-items: center; }
.toast.sai { opacity: 0; transform: translateY(10px); transition: .3s; }
.toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; flex-shrink: 0; }

/* rodapé */
.rodape { border-top: 1px solid var(--line); padding: 24px 0; font-size: 12.5px; color: var(--muted); }
.rodape .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.rodape button { color: var(--text-2); text-decoration: underline; font-size: 12.5px; }

.fade { animation: entra .3s; }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .perfil-grid, .fluxo, .ia-layout { grid-template-columns: 1fr; }
  .hero-mosaico { display: none; }
  .lateral { position: static; }
}
@media (max-width: 860px) {
  .painel { grid-template-columns: 1fr; background: none; }
  .lado { position: sticky; top: 64px; height: auto; z-index: 30; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lado .quem-l, .lado .grupo { display: none; }
  .lado nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .lado nav a { white-space: nowrap; padding: 8px 12px; }
  .busca-layout { grid-template-columns: 1fr; }
  .filtros { position: fixed; inset: auto 0 0; top: auto; z-index: 70; max-height: 80vh; overflow-y: auto; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: var(--t); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
  .filtros.aberto { transform: none; }
  .filtro-btn { display: inline-flex; }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .nav { display: none; }
  .topo-in { height: 58px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero { padding: 40px 0 32px; }
  .busca-hero { flex-direction: column; border-radius: 20px; }
  .busca-hero select.inp { max-width: none; border-left: 0; border-top: 1px solid var(--line-2); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .faixa-ia { grid-template-columns: 1fr; }
  .papel-tag { display: none; }
  .kpi .val { font-size: 22px; }
  .tabbar.ativo { display: flex; position: fixed; inset: auto 0 0; z-index: 50; background: rgba(23, 21, 19, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); padding: 4px 0; }
  .tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .tabbar a.on { color: var(--accent); }
  body.com-tabbar { padding-bottom: 64px; }
  .chat { height: 440px; }
  .pix { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .perfil-topo .acoes { margin-left: 0; width: 100%; }
  .perfil-topo .acoes .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.ic-box { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.ic-box svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
