/* nuvem.css :: tela de entrada, Minha conta e Clientes e Projetos */

/* ---------- tela de entrada ---------- */
body.nv-bloqueado { overflow: hidden; }
#nv-gate { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr);
  background: var(--bg-surface); overflow-y: auto; }
.nv-foto { position: relative; min-height: 100%; background: var(--navy-950) url('../assets/img/thaline/thaline-login.webp?v=2') center 28% / cover no-repeat; }
.nv-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,21,37,0) 45%, rgba(12,21,37,.78) 100%); }
.nv-foto-legenda { position: absolute; left: 40px; right: 40px; bottom: 36px; z-index: 1; color: #fff; max-width: 520px; }
.nv-foto-legenda strong { display: block; font-family: var(--font-title); font-size: 26px; margin-bottom: 6px; }
.nv-foto-legenda span { display: block; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.82); border-left: 3px solid var(--orange); padding-left: 12px; }
.nv-lado { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; background: #FBFAF8; min-height: 100%; box-sizing: border-box; }
.nv-card { width: 100%; max-width: 400px; background: transparent; padding: 0; margin: 0; }
.nv-logo { display: block; height: 52px; margin: 0 0 28px; filter: brightness(0.15); }
.nv-transf { margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--border); }
.nv-transf-h { font-family: var(--font-title); font-size: 27px; line-height: 1.2; color: var(--ink); margin: 0 0 10px; }
.nv-transf-s { font-size: 14px; line-height: 1.55; color: var(--body); margin: 0; }
.nv-card h1 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink); margin: 0 0 12px; text-align: left; }
.nv-sub { color: var(--body); font-size: 14px; text-align: left; margin: 0 0 22px; line-height: 1.55; }
.nv-card form { display: flex; flex-direction: column; gap: 14px; }
.nv-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.nv-card input[type=email], .nv-card input[type=password], .nv-card input[type=text] { font-size: 15px; padding: 12px 13px; background: #fff; }
.nv-full { width: 100%; justify-content: center; padding: 14px; font-size: 14px; margin-top: 6px; white-space: normal; line-height: 1.3; }
.nv-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 13.5px; flex-wrap: wrap; }
.nv-links a { color: var(--navy-700); font-weight: 600; }
.nv-msg { background: #FFF4E5; border: 1px solid var(--orange-border); color: #7A3A0C; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; }
.nv-carregando { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0; color: var(--body); }
.nv-rodape { margin: 28px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) {
  #nv-gate { display: block; }
  .nv-foto { min-height: 330px; height: 48vh; background-position: center 42%; }
  .nv-foto-legenda { left: 18px; right: 18px; bottom: 16px; }
  .nv-foto-legenda strong { font-size: 20px; }
  .nv-foto-legenda span { font-size: 12.5px; }
  .nv-lado { min-height: 0; padding: 26px 18px 30px; justify-content: flex-start; }
  .nv-logo { height: 42px; margin-bottom: 20px; }
  .nv-transf-h { font-size: 22px; }
  .nv-transf { margin-bottom: 20px; padding-bottom: 18px; }
}

/* ---------- rodapé do menu com a conta ---------- */
.nv-conta { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 11px; cursor: pointer; text-align: left; font-family: var(--font-ui); }
.nv-conta:hover { background: rgba(255,255,255,.1); }
.nv-conta-esc { color: #fff; font-weight: 700; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-conta-info { color: var(--on-dark-soft); font-size: 11px; }
.nv-st-salvo::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3CCB7F; margin-right: 5px; vertical-align: 1px; }
.nv-st-salvando::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 5px; vertical-align: 1px; }
.nv-st-offline::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9CA3AF; margin-right: 5px; vertical-align: 1px; }
#nv-aviso { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 9000;
  background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: 12px; max-width: min(520px, calc(100vw - 32px)); font-size: 13.5px; box-shadow: var(--sh-raised); }
#nv-aviso.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Minha conta ---------- */
.ct-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 1200px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 480px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
.ct-saldo { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ct-saldo strong { font-size: 40px; font-family: var(--font-ui); color: var(--navy-800); line-height: 1; }
.ct-saldo span { color: var(--muted); }
.ct-tab { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.ct-tab td { padding: 6px 4px; border-top: 1px solid var(--border); color: var(--body); }
.ct-tab td:last-child { text-align: right; font-weight: 700; }
.ct-neg { color: #B42318; } .ct-pos { color: #067647; }
.ct-lista { list-style: none; margin: 0 0 12px; padding: 0; }
.ct-lista li > span { min-width: 0; overflow-wrap: anywhere; }
.ct-lista li .btn { flex: 0 0 auto; }
.ct-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ct-lista small { color: var(--muted); }
.ct-convite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ct-convite input { grid-column: 1 / -1; box-sizing: border-box; width: 100%; }
@media (max-width: 400px) { .ct-convite { grid-template-columns: minmax(0, 1fr); } }
.ct-hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
/* membros: papel e acessos por módulo */
.ct-equipe { grid-column: 1 / -1; }
.ct-lista li.ct-mem { display: block; }
.ct-mem-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ct-mem-top > span:first-child { min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.ct-mem-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-mem-acoes select { width: auto; min-width: 0; max-width: 100%; padding: 6px 8px; font-size: 12px; }
.ct-mem-acoes .btn-g { padding: 7px 12px; }
.ct-mem-on { background: var(--bg-zebra); margin: 0 -10px; padding: 9px 10px !important; border-radius: 8px; }
.ct-acessos { margin-top: 10px; }
.ct-acessos .rd-dica { margin: 0 0 8px; }
.ct-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ct-mod { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface);
  font-size: 12.5px; font-weight: 600; color: var(--body); cursor: pointer; min-width: 0; }
.ct-mod input { width: 17px; height: 17px; accent-color: var(--orange); flex-shrink: 0; }
.ct-mod span { min-width: 0; overflow-wrap: anywhere; }
.ct-mod-muda { border-color: var(--orange-border); background: var(--orange-light); }
.ct-mod-leg { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; }
.ct-mod-muda-ex { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--orange-border); background: var(--orange-light); }
.ct-acessos-acoes { margin: 10px 0 0; flex-wrap: wrap; }
.ct-acessos-acoes .btn { min-width: 0; }
@media (max-width: 480px) { .ct-mods { grid-template-columns: minmax(0, 1fr); } .ct-acessos-acoes .btn { width: 100%; } }
.ct-wrap input[type=password] { font-family: var(--font-ui); font-size: 13px; color: var(--ink); background: var(--bg-surface); border: 1px solid #D1D5E8;
  border-radius: var(--r-sm); padding: 8px 10px; outline: none; width: 100%; box-sizing: border-box; }
.ct-wrap input[type=email] { box-sizing: border-box; }

/* ---------- Clientes e Projetos ---------- */
.pj-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 1280px; }
.pj-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pj-tabs { margin: 0; }
.pj-busca { flex: 1 1 200px; max-width: 360px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-chip { border: 1px solid var(--border); background: var(--bg-surface); border-radius: 20px; padding: 6px 12px; font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; color: var(--body); cursor: pointer; }
.pj-chip.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pj-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-surface); cursor: pointer; text-align: left; font-family: var(--font-ui); box-shadow: var(--sh-card); min-width: 0; }
.pj-card:hover { border-color: var(--orange-border); }
.pj-card-nome { font-weight: 700; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.pj-card-cli { color: var(--body); font-size: 12.5px; overflow-wrap: anywhere; }
.pj-card-meta { color: var(--muted); font-size: 12px; }
.pj-etapa { margin-top: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--navy-100); color: var(--navy-700); }
.pj-e-obra, .pj-e-compras { background: var(--orange-light); color: #9A4A12; }
.pj-e-entregue { background: #E7F6EC; color: #067647; }
.pj-renders { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------- Thaline na tela inicial ---------- */
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.home-hero-autor { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.06); border-radius: 0 10px 10px 0; max-width: 560px; }
.home-hero-autor strong { display: block; color: #fff; font-size: 13px; margin-bottom: 3px; }
.home-hero-autor span { color: rgba(255,255,255,.72); font-size: 12.5px; line-height: 1.5; }
.home-hero-foto { margin: 0; position: relative; }
.home-hero-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); }
.home-hero-foto figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(12,21,37,.82); color: #fff; border-radius: 10px;
  padding: 8px 10px; font-weight: 700; font-size: 13px; backdrop-filter: blur(4px); }
.home-hero-foto figcaption span { display: block; font-weight: 500; font-size: 11px; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero-foto { max-width: 220px; }
}

/* ---------- Início: horas sem cobrar, primeiros passos, grupos ---------- */
.in-alerta { display: flex; align-items: center; gap: 14px; background: #FFF4E5; border: 1px solid var(--orange-border); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.in-alerta > .av-ic { width: 44px; height: 44px; flex: 0 0 auto; }
.in-alerta div { flex: 1; min-width: 0; }
.in-alerta strong { display: block; color: #7A3A0C; font-size: 15px; }
.in-alerta span { display: block; color: var(--body); font-size: 13px; margin-top: 2px; }
.in-alerta .btn { flex: 0 0 auto; }
@media (max-width: 600px) { .in-alerta { flex-wrap: wrap; } .in-alerta .btn { width: 100%; justify-content: center; } }
.in-passos { margin-bottom: 22px; }
.in-barra { height: 8px; background: var(--bg-zebra); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.in-barra span { display: block; height: 100%; background: var(--orange); border-radius: 8px; transition: width .3s; }
.in-lista { list-style: none; margin: 0; padding: 0; }
.in-lista li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.in-lista li:first-child { border-top: none; }
.in-marca { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--navy-border); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.in-lista li.ok .in-marca { background: #067647; border-color: #067647; color: #fff; }
.in-lista li.ok .in-marca .av-ic { width: 14px; height: 14px; }
.in-txt { flex: 1; min-width: 0; }
.in-txt strong { display: block; font-size: 14px; color: var(--ink); }
.in-lista li.ok .in-txt strong { color: var(--muted); text-decoration: line-through; }
.in-txt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.in-feito { font-size: 12px; font-weight: 700; color: #067647; flex: 0 0 auto; }
.in-lista .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .in-lista li { flex-wrap: wrap; } .in-lista .btn { margin-left: 36px; } }
.in-grupo { margin: 8px 0 22px; }
.in-grupo-t { font-family: var(--font-title); font-size: 21px; color: var(--ink); margin: 0 0 2px; }
.in-grupo-s { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.in-grupo .home-cards { margin-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Minha conta: pacotes de créditos */
.ct-pacotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.ct-pacote { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); color: var(--ink); text-decoration: none; min-width: 0; }
.ct-pacote:hover { border-color: var(--orange); box-shadow: var(--sh-card); }
.ct-pacote strong { font-family: var(--font-title); font-size: 18px; }
.ct-pacote-preco { font-size: 20px; font-weight: 700; color: var(--orange); }
.ct-pacote small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.ct-pacote .btn { margin-top: 6px; align-self: stretch; text-align: center; }
