/* ============================================================
   Trading 282 — componentes.
   Avisos, modais, abas, upload, documentos, kanban, linha do tempo,
   o shell da equipe (barra lateral) e as peças do CRM.
   Carregado depois de app.css, que define os tokens.
   ============================================================ */

/* ------------------------------------------------------ avisos */

#toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(390px, calc(100vw - 36px));
}
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  animation: toast-in .24s cubic-bezier(.2,.9,.3,1.2);
}
.toast.leaving { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px) scale(.97); } }
.toast-icon { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.toast-icon svg { width: 13px; height: 13px; }
.toast-body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.toast-body strong { display: block; font-size: 12.5px; margin-bottom: 1px; }
.toast-body span { color: var(--text-dim); word-break: break-word; }
.toast-close { background: none; border: 0; cursor: pointer; padding: 0 2px; color: var(--text-mute); font-size: 18px; line-height: 1; }
.toast-close:hover { color: var(--text); }
.toast-ok   .toast-icon { background: var(--up-bg); color: var(--up); }
.toast-bad  .toast-icon { background: var(--down-bg); color: var(--down); }
.toast-warn .toast-icon { background: var(--warn-bg); color: var(--warn); }
.toast-info .toast-icon { background: var(--gold-bg); color: var(--gold); }
.toast-ok { border-left: 3px solid var(--up); }
.toast-bad { border-left: 3px solid var(--down); }
.toast-warn { border-left: 3px solid var(--warn); }
.toast-info { border-left: 3px solid var(--gold); }

/* ------------------------------------------------------ modais */

body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; padding: 20px;
  background: rgba(3,3,5,.74); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s ease;
}
.modal-overlay.in { opacity: 1; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  padding: 24px;
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.1);
}
.modal-overlay.in .modal { transform: none; }
.modal-head { display: flex; gap: 14px; align-items: flex-start; }
.modal-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.modal-icon svg { width: 19px; height: 19px; }
.modal h3 { margin: 0 0 5px; font-size: 16.5px; }
.modal p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.modal-danger .modal-icon { background: var(--down-bg); color: var(--down); }
.modal-warn   .modal-icon { background: var(--warn-bg); color: var(--warn); }
.modal-info   .modal-icon { background: var(--gold-bg); color: var(--gold); }
.modal-detail {
  margin-top: 16px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px;
  font-size: 12.5px; color: var(--text-dim);
}
.modal-detail div { display: flex; justify-content: space-between; padding: 3px 0; gap: 14px; }
.modal-detail div span:last-child { font-family: var(--mono); color: var(--text); }
.modal-field { margin-top: 16px; }
.modal-field label { display: block; font-size: 12px; color: var(--text-dim); font-weight: 500; margin-bottom: 6px; }
.modal-field small { display: block; margin-top: 6px; color: var(--text-mute); font-size: 11.5px; }
.modal-actions { display: flex; gap: 9px; margin-top: 22px; }
.modal-actions .btn { flex: 1; width: auto; padding: 11px; }
.btn-danger-solid { background: var(--down); color: #1a0409; }
.btn-warn { background: var(--warn); color: #1e1000; }

/* Painel deslizante (formulários mais longos: novo lead, depósito manual) */
.drawer-overlay { position: fixed; inset: 0; z-index: 380; background: rgba(3,3,5,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 390;
  width: min(460px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.9,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer.open + .drawer-overlay, .drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 16px; flex: 1; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

/* -------------------------------------------------------- abas */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 14px; font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--gold); border-bottom-color: var(--gold); }
.tabs .count, .count {
  display: inline-block; min-width: 20px; padding: 1px 6px; text-align: center;
  background: var(--surface-3); border-radius: 10px;
  font-size: 10.5px; font-family: var(--mono); color: var(--text-dim);
}
.count.hot { background: var(--grad-gold); color: var(--gold-ink); font-weight: 700; }

/* Controle segmentado (filtros curtos) */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.seg a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; color: var(--text-dim); font-weight: 500;
}
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.seg a.on .count { background: var(--gold-bg); color: var(--gold); }

/* ------------------------------------------------------- upload */

.dropzone {
  display: block; border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 24px 18px; text-align: center; cursor: pointer; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(245,179,1,.04); }
.dropzone.filled { border-style: solid; border-color: var(--up); background: var(--up-bg); }
.dropzone input[type="file"] { display: none; }
.dropzone .dz-icon { color: var(--gold); margin-bottom: 8px; }
.dropzone .dz-main { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.dropzone .dz-sub { font-size: 11.5px; color: var(--text-mute); }
.dropzone .dz-file { font-family: var(--mono); font-size: 12px; color: var(--up); margin-top: 7px; word-break: break-all; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.doc-card.done { border-color: rgba(25,195,125,.35); }
.doc-card.rejected { border-color: rgba(255,77,94,.35); }
.doc-card .doc-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.doc-card .doc-why { font-size: 12px; color: var(--text-mute); line-height: 1.55; }
.doc-thumb {
  display: block; width: 100%; height: 132px; border-radius: 10px; object-fit: cover;
  background: var(--bg); border: 1px solid var(--line-soft);
}
.doc-thumb.pdf { display: grid; place-items: center; font-size: 12px; color: var(--text-mute); font-family: var(--mono); }
a.doc-thumb:hover { border-color: var(--gold-line); }

/* Etapas (verificação do cliente e funil do lead) */
.kyc-steps, .stepper { display: flex; gap: 0; margin: 4px 0 6px; }
.kyc-step, .step-i { flex: 1; text-align: center; position: relative; }
.kyc-step::before, .step-i::before {
  content: ''; position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0;
}
.kyc-step:first-child::before, .step-i:first-child::before { left: 50%; }
.kyc-step:last-child::before, .step-i:last-child::before { right: 50%; }
.kyc-step.done::before, .kyc-step.now::before, .step-i.done::before, .step-i.now::before { background: var(--gold); }
.kyc-step .bubble, .step-i .bubble {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--line);
  display: grid; place-items: center; margin: 0 auto 7px;
  font-size: 11px; font-weight: 700; color: var(--text-mute);
}
.kyc-step.done .bubble, .step-i.done .bubble { background: var(--grad-gold); border-color: var(--gold); color: var(--gold-ink); }
.kyc-step.now .bubble, .step-i.now .bubble { background: var(--bg); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(245,179,1,.14); }
.kyc-step .lbl, .step-i .lbl { font-size: 11.5px; color: var(--text-mute); }
.kyc-step.done .lbl, .kyc-step.now .lbl, .step-i.done .lbl, .step-i.now .lbl { color: var(--text); }
.step-i.lost .bubble { background: var(--down-bg); border-color: var(--down); color: var(--down); }
button.step-i { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
button.step-i:hover .bubble { border-color: var(--gold); }

/* ------------------------------------------------------ kanban */

.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kan-col { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; min-height: 200px; }
.kan-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.kan-head .t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 7px; }
.kan-head .t::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-mute)); }
.kan-head .n { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }
.kan-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 64vh; }
.lead-card {
  display: block; padding: 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  transition: border-color .12s, transform .12s;
}
.lead-card:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.lead-card .nm { font-size: 13px; font-weight: 600; color: var(--text); }
.lead-card .em { font-size: 11px; color: var(--text-mute); margin-top: 1px; word-break: break-all; }
.lead-card .meta { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------ linha do tempo */

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--line);
}
.tl-item.note::before { background: var(--gold); border-color: var(--gold); }
.tl-item.contact::before { background: var(--info); border-color: var(--info); }
.tl-item.conversion::before { background: var(--up); border-color: var(--up); }
.tl-item.stage::before { background: var(--surface); border-color: var(--gold); }
.tl-item .tl-when { font-size: 11px; color: var(--text-mute); font-family: var(--mono); }
.tl-item .tl-body { font-size: 13px; margin-top: 3px; color: var(--text); line-height: 1.55; }
.tl-item .tl-who { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.tl-item.note .tl-body { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; margin-top: 6px; }

/* ========================================================
   Shell da equipe (admin + CRM): barra lateral à esquerda.
   ======================================================== */

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #0e0e11, #0b0b0d);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  scrollbar-width: thin;
}
.side-brand { padding: 22px 20px 18px; border-bottom: 1px solid var(--line-soft); }
.side-brand img { height: 22px; display: block; }
.side-brand .brand-tag { margin-top: 10px; display: inline-block; }

.side-nav { padding: 12px 12px 20px; flex: 1; }
.side-sec { margin-top: 16px; }
.side-sec:first-child { margin-top: 4px; }
.side-sec-t { padding: 0 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-mute); font-weight: 600; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; margin-bottom: 1px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  position: relative;
}
.side-link .ic { opacity: .7; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.on { background: var(--gold-bg); color: var(--gold); }
.side-link.on .ic { opacity: 1; }
.side-link.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side-link .count { margin-left: auto; }

.side-foot { padding: 14px; border-top: 1px solid var(--line-soft); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.side-user .nm { font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .rl { font-size: 11px; color: var(--text-mute); }
.side-user form { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.main-top {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,11,.85); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.main-top .title { font-weight: 600; font-size: 14px; color: var(--text-dim); }
.main-top .spacer { flex: 1; }
.main-top .search { position: relative; width: min(320px, 40vw); }
.main-top .search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.main-top .search input { padding-left: 34px; height: 36px; font-size: 13px; background: var(--surface); }
.side-toggle-btn { display: none; }
.side-scrim { display: none; }

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 300;
    transform: translateX(-100%); transition: transform .24s cubic-bezier(.2,.9,.3,1);
    box-shadow: 30px 0 80px rgba(0,0,0,.5);
  }
  body.side-open .side { transform: none; }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 290; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side-toggle-btn { display: inline-grid; }
  .main-top { padding: 0 14px; }
  .main-top .feed, .main-top .title { display: none; }
  .main-top .search { flex: 1; width: auto; }
}

/* ============================================= peças do CRM */

/* Cabeçalho do lead */
.lead-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(245,179,1,.07), transparent 45%), var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lead-hero .avatar { width: 54px; height: 54px; border-radius: 15px; font-size: 18px; }
.lead-hero h1 { font-family: var(--display); font-size: 25px; margin: 0; line-height: 1.15; }
.lead-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; font-size: 13px; color: var(--text-dim); }
.lead-hero .meta span, .lead-hero .meta a { display: inline-flex; align-items: center; gap: 6px; }
.lead-hero .meta .ic { color: var(--text-mute); }
.lead-hero .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .lead-hero { grid-template-columns: auto 1fr; }
  .lead-hero .acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Botões de desfecho de contato: um clique registra a ligação */
.outcomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.outcome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  font: 500 12.5px/1.2 var(--sans); text-align: left;
  transition: border-color .12s, color .12s, background .12s;
}
.outcome:hover { border-color: var(--gold-line); color: var(--text); }
.outcome.on { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.outcome .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--c, var(--text-mute)); }

/* Barra de ações em massa */
.bulkbar {
  position: sticky; bottom: 16px; z-index: 30; margin-top: 14px;
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--gold-line);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.bulkbar.show { display: flex; }
.bulkbar .n { font-weight: 600; color: var(--gold); }
.bulkbar select { width: auto; min-width: 200px; }

input[type="checkbox"].ck { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; vertical-align: middle; }

/* Itens de fila (depósitos, documentos, retornos) */
.queue { display: flex; flex-direction: column; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.q-item:last-child { border-bottom: 0; }
.q-item .q-main { flex: 1; min-width: 0; }
.q-item .q-t { font-weight: 600; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.q-item .q-s { font-size: 12px; color: var(--text-mute); }
.q-item .q-v { font-family: var(--mono); font-weight: 600; }
.q-item .q-acts { display: flex; gap: 6px; }

/* Funil em barras */
.funnel-row { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: 12px; padding: 5px 0; color: inherit; }
.funnel-row:hover { color: inherit; }
.funnel-row:hover .bar i { filter: brightness(1.15); }
.funnel-row .lb { font-size: 12.5px; color: var(--text-dim); }
.funnel-row .bar { height: 24px; background: var(--bg); border-radius: 7px; overflow: hidden; border: 1px solid var(--line-soft); }
.funnel-row .bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad-gold); opacity: .9; }
.funnel-row .bar i.ok { background: linear-gradient(90deg, #0f8f5a, var(--up)); }
.funnel-row .bar i.lost { background: var(--down); opacity: .45; }
.funnel-row .vl { font-family: var(--mono); text-align: right; font-size: 13px; }

/* Ranking da equipe */
.rank { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.rank:last-child { border-bottom: 0; }
.rank .pos { width: 22px; font-family: var(--mono); color: var(--text-mute); font-size: 12px; }
.rank:first-child .pos { color: var(--gold); font-weight: 700; }

/* Filtros */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.filters .field { margin: 0; }
@media (max-width: 1100px) { .filters { grid-template-columns: repeat(2, 1fr); } .filters .f-act { grid-column: 1 / -1; } }

/* ------------------------------------------------ utilitários */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 18px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
@media (max-width: 900px) {
  .grid-2, .split, .split-r { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(5, 250px); }
}

.kv { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--text-mute); }
.kv > span:last-child { text-align: right; }

.code-block {
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 9px; padding: 12px 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #e6e1d3;
  white-space: pre; margin: 0 0 14px;
}
.code-block .k { color: #ffd460; } .code-block .s { color: #b6e3a0; }
.code-block .c { color: var(--text-mute); font-style: italic; }
.code-block .n { color: #f0b86e; }

.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; }

.secret {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(245,179,1,.12), rgba(245,179,1,.03));
  border: 1px solid var(--gold-line);
}
.secret .t { flex: 1; min-width: 200px; font-size: 13px; color: var(--text-dim); }
.secret .t strong { display: block; color: var(--gold-hi); margin-bottom: 2px; }
.secret code { font-family: var(--mono); font-size: 16px; color: var(--text); background: var(--bg); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }

.pay-card {
  display: block; padding: 14px 15px; border-radius: 12px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.pay-card:hover { border-color: var(--gold-line); color: var(--text); }
.pay-card.on { border-color: var(--gold); background: var(--gold-bg); }
.pay-card .t { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.pay-card .s { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

@media (max-width: 760px) {
  .stepper { overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .stepper .step-i { min-width: 78px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat .v { font-size: 19px; }
  .lead-hero { padding: 16px; gap: 12px; }
  .lead-hero h1 { font-size: 21px; }
  .page-head .actions { width: 100%; }
  .q-item { padding: 12px 14px; flex-wrap: wrap; }
  .bulkbar select { min-width: 0; flex: 1; }
}

/* ------------------------------------------------ rodapé de risco */

.risk-foot { border-top: 1px solid var(--line); background: var(--surface); }
.risk-inner { max-width: 1160px; margin: 0 auto; padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 12px; }
.risk-block { font-size: 11.5px; line-height: 1.7; color: var(--text-mute); }
.risk-block strong { color: var(--text-dim); font-weight: 700; }
.risk-copy { font-size: 11.5px; color: var(--text-mute); padding-top: 12px; border-top: 1px solid var(--line-soft); }
.risk-foot.compact .risk-inner { padding: 20px 22px 24px; gap: 10px; }
