/* ==========================================================================
   AutoCloud · base visual (Dark Premium monocromático)
   Tokens e peças comuns (checkout, planos, landing, painel). O painel tem o
   próprio painel.css, que entra DEPOIS deste. Destaque: azul-céu.
   Regras: hover = fundo (nunca brilho/holofote); entrada = blur rápido, sem deslocamento.
   ========================================================================== */

:root {
  color-scheme: dark;
  /* superfícies */
  --bg: #050505;
  --bg-elevated: #09090a;
  --surface-1: #0c0c0d;
  --surface-2: #111113;
  --surface-3: #17171a;
  --surface-4: #1e1e22;
  --surface-5: #26262b;
  /* bordas */
  --border-subtle: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --border-focus: rgba(255, 255, 255, .6);
  --highlight: rgba(255, 255, 255, .05);
  --divider: rgba(255, 255, 255, .06);
  /* texto */
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-dis: #52525b;
  /* semânticas */
  --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .10); --ok-bd: rgba(74, 222, 128, .24);
  --erro: #f87171; --erro-bg: rgba(248, 113, 113, .10); --erro-bd: rgba(248, 113, 113, .26);
  --aviso: #fbbf24; --aviso-bg: rgba(251, 191, 36, .10); --aviso-bd: rgba(251, 191, 36, .26);
  --info: #60a5fa; --info-bg: rgba(96, 165, 250, .10); --info-bd: rgba(96, 165, 250, .26);
  /* tipografia / forma / movimento */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 360ms;
  --sombra: 0 1px 0 var(--highlight) inset, 0 8px 24px rgba(0, 0, 0, .45);
  --sombra-alta: 0 1px 0 var(--highlight) inset, 0 16px 40px rgba(0, 0, 0, .55);

  /* nomes antigos do painel apontando para os novos */
  --bg-card: var(--surface-1);
  --bg-surface-2: var(--surface-2);
  --bg-hover: var(--surface-3);
  --text-muted: var(--text-2);
  --text-secondary: var(--text-2);
  --text-faint: var(--text-3);
  --accent-primary: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, .22);
  --accent-soft: rgba(56, 189, 248, .12);
  --accent-border: rgba(56, 189, 248, .28);
  --green-400: var(--ok);
  --amber-400: var(--aviso);
  --red-500: var(--erro);
  --radius-sm: 6px; --radius-md: var(--r-sm); --radius-lg: var(--r-lg); --radius-full: var(--r-full);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
::selection { background: rgba(255, 255, 255, .18); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-5) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-5); border-radius: 999px; border: 3px solid var(--bg); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--topbar-h, 60px); padding: 0 24px; background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar__logo { height: 26px; width: auto; display: block; }
.topbar__tag { font-size: 11px; padding: 2px 9px; border-radius: var(--r-full); color: var(--text-2); font-weight: 500; border: 1px solid var(--border); background: var(--surface-2); }
.topbar__link { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 10px; border-radius: var(--r-sm); transition: background var(--t-fast), color var(--t-fast); }
.topbar__link:hover { background: var(--surface-3); color: var(--text); }
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .topbar__right > .topbar__link { display: none; }
}

/* ---------- títulos ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.page-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.03em; font-weight: 650; margin: 0; }
.page-subtitle { color: var(--text-2); font-size: 15px; margin: 8px 0 0; max-width: 680px; }

/* ---------- cards (hover = fundo + elevação, sem brilho) ---------- */
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sombra);
  transition: background-color 150ms var(--ease);
}
.card::before { content: none !important; }
.card:hover { border-color: var(--border); }
.card--interactive { cursor: pointer; }
.card--interactive:hover { background: var(--surface-2); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 13.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--surface-4); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--text); color: #09090b; border-color: var(--text); font-weight: 600; }
.btn--primary:hover { background: #e4e4e7; box-shadow: none; }
.btn--secondary:hover { background: var(--surface-4); border-color: var(--border-strong); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--danger { background: var(--erro-bg); color: var(--erro); border-color: var(--erro-bd); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .spin, .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ac-girar .7s linear infinite; }
@keyframes ac-girar { to { transform: rotate(360deg); } }

/* ---------- botão de metal líquido ---------- */
/* idêntico ao botão "Painel" da landing (mesmas camadas, sombras, cores e shader) */
.lm { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 142px; padding: 0 26px; border-radius: 100px; isolation: isolate; vertical-align: middle; user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 8px 24px -4px rgba(0, 0, 0, .7);
  transition: transform .09s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease; }
.lm.is-hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 0 18px rgba(255, 255, 255, .14), 0 12px 28px -4px rgba(0, 0, 0, .8); }
.lm--bloco { display: flex; width: 100%; }
.lm--grande { height: 52px; padding: 0 30px; }
.lm-borda { position: absolute; inset: 0; border-radius: 100px; overflow: hidden; z-index: 0; background: conic-gradient(from 45deg, #a1a1aa, #fff, #71717a, #fff, #52525b, #fff, #71717a, #fff, #a1a1aa);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 16px -6px rgba(0, 0, 0, .4), 0 6px 8px -2px rgba(0, 0, 0, .3); }
.lm-borda canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.lm-canvas.lm-sem-webgl { display: none; }
.lm-miolo { position: absolute; inset: 1.5px; border-radius: 100px; z-index: 1; background: linear-gradient(180deg, #18181b 0%, #000 100%); border: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .12s ease; }
.lm-conteudo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #a1a1aa; font-weight: 500; font-size: 13.5px; letter-spacing: -.01em; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); transition: color .18s ease; white-space: nowrap; }
.lm-conteudo svg { width: 16px; height: 16px; }
.lm-spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ac-girar .7s linear infinite; }
.lm-alvo { position: absolute; inset: 0; z-index: 3; border: 0; margin: 0; padding: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.lm-alvo:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
.lm.is-hover .lm-conteudo { color: #fff; }
.lm.is-press { transform: scale(.95); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 8px rgba(0, 0, 0, .6); }
.lm.is-press .lm-miolo { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.lm.is-carregando .lm-spin { display: inline-block; }
.lm.is-carregando .lm-alvo { cursor: progress; }
.lm.is-desligado { opacity: .5; pointer-events: none; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 6px; }
.label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.help { font-size: 12px; color: var(--text-3); }
.input {
  height: 40px; width: 100%; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 13.5px; outline: none;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: var(--text-3); }
.input:hover { background: var(--surface-3); }
.input:focus { border-color: var(--border-focus); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.input--mono { font-family: var(--font-mono); font-size: 12.5px; }
.input.is-erro { border-color: var(--erro-bd); }

/* dropdown próprio (substitui o <select> nativo) */
.dd { position: relative; }
.dd__btn {
  width: 100%; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 13.5px; cursor: pointer; text-align: left; transition: background var(--t-fast), border-color var(--t-fast);
}
.dd__btn:hover { background: var(--surface-3); }
.dd__btn[aria-expanded="true"] { border-color: var(--border-focus); background: var(--surface-3); }
.dd__valor { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__valor.is-vazio { color: var(--text-3); }
.dd__chev { color: var(--text-3); transition: transform var(--t) var(--ease); flex: none; }
.dd__btn[aria-expanded="true"] .dd__chev { transform: rotate(180deg); }
.dd__menu {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.dd.is-aberto .dd__menu { opacity: 1; transform: none; pointer-events: auto; }
.dd__busca { margin-bottom: 6px; height: 34px; }
.dd__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: 13px; text-align: left; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.dd__opt:hover, .dd__opt.is-foco { background: var(--surface-4); color: var(--text); }
.dd__opt[aria-selected="true"] { color: var(--text); }
.dd__opt[aria-selected="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.dd__cor { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dd__vazio { padding: 10px; color: var(--text-3); font-size: 12.5px; }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge--cyan { background: var(--accent-soft); color: var(--accent-primary); border-color: var(--accent-border); }
.badge--green { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.badge--amber { background: var(--aviso-bg); color: var(--aviso); border-color: var(--aviso-bd); }
.badge--red { background: var(--erro-bg); color: var(--erro); border-color: var(--erro-bd); }
.icon-tile--cyan { color: var(--accent-primary); background: var(--accent-soft); border-color: var(--accent-border); }
.status--ok .status-dot { box-shadow: none; animation: none; }

/* ---------- modal / toast ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease); }
.modal-overlay.active, .modal-overlay.is-aberto { opacity: 1; pointer-events: auto; }
.modal-container { width: 100%; max-width: 440px; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); transform: translateY(10px) scale(.98); transition: transform var(--t-slow) var(--ease); }
.modal-overlay.active .modal-container, .modal-overlay.is-aberto .modal-container { transform: none; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-4); border: 1px solid var(--border-strong); box-shadow: 0 14px 36px rgba(0, 0, 0, .55); font-size: 13px; animation: ac-entrar var(--t) var(--ease) both; }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast--success svg { color: var(--ok); }
.toast--error svg { color: var(--erro); }
.toast.is-leaving { animation: ac-sair var(--t) var(--ease) both; }

/* ---------- esqueleto ---------- */
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 80%); background-size: 300% 100%; background-attachment: fixed; animation: ac-sk 1.6s linear infinite; border-radius: var(--r-sm); color: transparent !important; }
@keyframes ac-sk { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* ---------- entrada (blur fade-in) ---------- */
@keyframes ac-entrar { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes ac-sair { to { opacity: 0; filter: blur(4px); } }
.ac-in, .surge { animation: ac-entrar 200ms ease-out both; animation-delay: calc(var(--i, 0) * 35ms); }
/* reduzir movimento: o fade com blur continua (não é deslocamento), só fica mais curto */
@media (prefers-reduced-motion: reduce) {
  .ac-in, .surge { animation-duration: 120ms; animation-delay: 0ms; }
}

/* ==========================================================================
   Meus bots e topo do painel
   ========================================================================== */
:root { --mb-max: 1320px; }

/* fundo: grade quase invisível, só no topo, parada */
.ambient-grid {
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 42% at 50% 0%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 42% at 50% 0%, #000 0%, transparent 100%);
}

/* topo: alinhado com o conteúdo; no painel do bot vai de ponta a ponta */
.topbar { padding-inline: max(24px, calc((100vw - var(--mb-max)) / 2 + 24px)); }
.bot-workspace .topbar { padding-inline: 24px; }
.user-menu__trigger { padding: 4px 6px 4px 4px; border-radius: var(--r-full); transition: background-color var(--t-fast) var(--ease); }
.user-menu__trigger:hover, .user-menu__trigger[aria-expanded="true"] { background: var(--surface-3); }
.user-menu__chevron { transition: transform var(--t) var(--ease); }
.user-menu__trigger[aria-expanded="true"] .user-menu__chevron { transform: rotate(180deg); }

/* página */
.mb { width: 100%; max-width: var(--mb-max); margin: 0 auto; padding: 48px 24px 80px; position: relative; z-index: 2; }
.mb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.mb-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.mb-head p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; max-width: 560px; }
.mb-head__acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* lista: uma linha por bot, largura toda */
.mb-lista { display: flex; flex-direction: column; gap: 10px; }
.mb-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px 210px 20px; align-items: center; gap: 20px;
  padding: 16px 22px 16px 16px; min-width: 0;
  border-radius: 18px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.07);
  text-decoration: none; color: inherit;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mb-card:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }

/* foto grande: imagem do bot, logo da AutoPay ou a inicial */
.mb-foto {
  position: relative; width: 72px; height: 72px; flex: none; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.mb-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mb-foto b { position: relative; font-size: 28px; font-weight: 650; letter-spacing: -.02em; color: var(--text-2); }
.mb-foto--marca { background: #000; }
.mb-foto--marca img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.mb-foto--sm { width: 40px; height: 40px; border-radius: 11px; }
.mb-foto--sm b { font-size: 16px; }
.mb-foto--sm.mb-foto--marca img { inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }

.mb-card__id { min-width: 0; }
.mb-card__nome { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; color: var(--text-3); min-width: 0; }
.mb-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dis); flex: none; }
.mb-status--ok i { background: var(--ok); }
.mb-status--pendente i { background: var(--aviso); }
.mb-status--expirado { color: var(--aviso); }
.mb-status--expirado i { background: var(--aviso); }

.mb-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mb-col__v { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-col__r { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-seta { display: inline-flex; color: var(--text-3); transition: color 150ms var(--ease), transform 200ms var(--ease); }
.mb-seta svg { width: 18px; height: 18px; }

/* hover: fundo clareia e a seta fica azul e anda 3px */
@media (hover: hover) and (pointer: fine) {
  .mb-card:hover { background: var(--surface-2); border-color: rgba(255,255,255,.1); }
  .mb-card:hover .mb-seta { color: var(--accent-primary); transform: translateX(3px); }
}

/* vazio */
.mb-vazio { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 64px 24px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.1); background: rgba(255,255,255,.012); }
.mb-vazio h2 { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.mb-vazio p { margin: 0 0 10px; color: var(--text-2); max-width: 380px; }

@media (max-width: 860px) {
  .mb-card { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px 14px 14px; }
  .mb-card .mb-foto { width: 64px; height: 64px; border-radius: 16px; }
  .mb-card .mb-foto--marca img { inset: 15px; width: calc(100% - 30px); height: calc(100% - 30px); }
  .mb-col--plano, .mb-seta { display: none; }
  .mb-col { text-align: right; }
}
@media (max-width: 640px) {
  .mb { padding: 28px 16px 64px; }
  .mb-head { margin-bottom: 22px; }
  .mb-head__acoes, .mb-head__acoes .lm { width: 100%; }
  .mb-head__acoes .lm { display: flex; }
  .mb-card__nome { font-size: 16px; }
}

/* botão azul (ação principal dentro do painel; o metal líquido fica só nas ações principais do site) */
.btn--azul { background: var(--accent-primary); color: #04131c; border-color: transparent; font-weight: 600; }
.btn--azul:hover { background: var(--accent-hover); }

/* botão de copiar padrão: ícone + "Copiar"; ao copiar, o ícone troca por ✓ com blur e o texto vira "Copiado" */
.btn-copiar {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2);
  font: 500 12.5px var(--font-sans); white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-copiar:hover { background: var(--surface-4); color: var(--text); }
.btn-copiar:active { transform: scale(.97); }
.btn-copiar--icone { width: 34px; padding: 0; }
.btn-copiar__ico { position: relative; display: grid; width: 16px; height: 16px; }
.btn-copiar__ico svg { grid-area: 1 / 1; transition: opacity 180ms ease, filter 180ms ease, transform 220ms var(--ease); }
.btn-copiar__ico svg:last-child { opacity: 0; filter: blur(3px); transform: scale(.6); }
.btn-copiar.copiado { color: var(--ok); border-color: var(--ok-bd); background: var(--ok-bg); }
.btn-copiar.copiado .btn-copiar__ico svg:first-child { opacity: 0; filter: blur(3px); transform: scale(.6); }
.btn-copiar.copiado .btn-copiar__ico svg:last-child { opacity: 1; filter: none; transform: none; }