/* ============================================================================
   SecureLicense — Design System  ·  "Vault"
   Tema único, escuro e clean, compartilhado por:
     · painel admin   (data-theme="admin")
     · painel reseller (data-theme="reseller")
     · área do cliente (data-theme="customer")
   Mantém o contrato de classes legado (.card .grid .pill .btn .mono .mut …)
   para que todas as views de conteúdo funcionem sem alteração.
   ========================================================================== */

:root{
  color-scheme: dark;

  /* superfícies */
  --bg:        #080b11;
  --rail:      #0a0e15;
  --surface:   #0f141d;
  --surface-2: #141b26;
  --input:     #0b0f17;

  /* linhas */
  --line:   #1b2430;
  --line-2: #283242;

  /* texto */
  --ink:   #eaf1f9;
  --ink-2: #b7c2d0;
  --mut:   #76828f;

  /* acento (default: azul — admin/customer) */
  --accent:      #5b93ff;
  --accent-2:    #7aa8ff;
  --accent-ink:  #051226;
  --accent-soft: rgba(91,147,255,.14);
  --accent-glow: rgba(91,147,255,.35);

  /* semânticos */
  --ok:   #45d483;  --ok-soft:   rgba(69,212,131,.14);
  --bad:  #ff6b6b;  --bad-soft:  rgba(255,107,107,.14);
  --warn: #f6b94a;  --warn-soft: rgba(246,185,74,.14);

  /* forma */
  --r:    14px;
  --r-sm: 9px;
  --r-pill: 999px;

  /* elevação */
  --shadow:    0 1px 0 rgba(255,255,255,.03), 0 10px 30px -16px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -24px rgba(0,0,0,.8);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

[data-theme="reseller"]{
  --accent:#2fd6a0; --accent-2:#57e2b6; --accent-ink:#04221a;
  --accent-soft:rgba(47,214,160,.14); --accent-glow:rgba(47,214,160,.35);
}
[data-theme="customer"]{
  --accent:#5b93ff; --accent-2:#7aa8ff; --accent-ink:#051226;
  --accent-soft:rgba(91,147,255,.14); --accent-glow:rgba(91,147,255,.35);
}
/* admin: ciano elétrico (cyberpunk) */
[data-theme="admin"]{
  --accent:#22d3ee; --accent-2:#67e8f9; --accent-ink:#03171d;
  --accent-soft:rgba(34,211,238,.15); --accent-glow:rgba(34,211,238,.55);
}

/* --------------------------------------------------------------- base ---- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font:400 14px/1.6 var(--font);
  color:var(--ink);
  background:var(--bg);
  background-image:
    radial-gradient(900px 600px at 88% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at -6% 4%, rgba(120,140,200,.07), transparent 55%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* grade sutil de fundo (estética futurista, some nas bordas) */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% -10%, #000 0%, transparent 75%);
          mask-image:radial-gradient(120% 90% at 50% -10%, #000 0%, transparent 75%);
}

h1,h2,h3,h4{ margin:0; font-weight:650; letter-spacing:-.01em; color:var(--ink); }
p{ margin:0 0 .6em; }
hr{ border:0; border-top:1px solid var(--line); margin:18px 0; }

a{ color:var(--accent-2); text-decoration:none; transition:color .15s ease; }
a:hover{ color:var(--ink); }

::selection{ background:var(--accent-glow); color:#fff; }

::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-thumb{ background:#222c3a; border:3px solid transparent; background-clip:content-box; border-radius:99px; }
::-webkit-scrollbar-thumb:hover{ background:#303c4e; background-clip:content-box; }

/* ícones inline: tamanho padrão sensato — evita SVG gigante.
   Regras específicas (.nav .ic, .logo svg, .gen-ic svg…) têm prioridade. */
svg{ flex:none; }
:where(button,.btn,a,.pill,.flag,h1,h2,h3,h4,label,summary,p,td,th,li,span) svg{ width:1.05em; height:1.05em; }
.ic{ width:18px; height:18px; }

/* ------------------------------------------------------- shell / layout -- */
.wrap{ display:flex; min-height:100vh; }

nav{
  position:sticky; top:0; align-self:flex-start;
  width:248px; height:100vh; flex:none;
  display:flex; flex-direction:column; gap:3px;
  padding:20px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--rail);
  border-right:1px solid var(--line);
  overflow-y:auto;
}

/* marca / logo */
.brand{
  display:flex; align-items:center; gap:11px;
  padding:6px 8px 16px;
  margin-bottom:8px;
  border-bottom:1px solid var(--line);
}
.brand .logo{
  display:grid; place-items:center;
  width:34px; height:34px; flex:none;
  border-radius:10px;
  color:var(--accent-ink);
  background:linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow:0 6px 18px -8px var(--accent-glow);
}
.brand .logo svg{ width:19px; height:19px; }
.brand b{ font-size:15px; letter-spacing:-.02em; line-height:1.1; }
.brand small{ display:block; color:var(--mut); font-size:11px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; }
nav h1{ font-size:15px; }            /* compat layouts antigos */

.nav-label{
  padding:14px 10px 6px; margin-top:6px;
  font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--mut);
}

nav a{
  position:relative;
  display:flex; align-items:center; gap:11px;
  padding:9px 11px; border-radius:10px;
  color:var(--ink-2); font-weight:500;
  transition:background .15s ease, color .15s ease;
}
nav a .ic{ width:18px; height:18px; flex:none; color:var(--mut); transition:color .15s ease; }
nav a:hover{ background:var(--surface-2); color:var(--ink); }
nav a:hover .ic{ color:var(--ink-2); }
nav a.active{ background:var(--accent-soft); color:var(--ink); font-weight:600; }
nav a.active .ic{ color:var(--accent); }
nav a.active::before{
  content:""; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:3px; height:20px; border-radius:0 3px 3px 0; background:var(--accent);
}

.nav-foot{ margin-top:auto; padding-top:12px; }

main{
  flex:1; min-width:0;
  padding:34px 40px 64px;
  max-width:1180px;
  width:100%;
  margin:0 auto;
}
main > h2{
  font-size:25px; font-weight:700; letter-spacing:-.025em;
  margin:0 0 24px; padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

/* ------------------------------------------------------------- cards ----- */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.018), transparent 60%), var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:20px;
  margin-bottom:18px;
  box-shadow:var(--shadow);
}
.card > :last-child{ margin-bottom:0; }
.card h3{
  font-size:15px; font-weight:620;
  margin:0 0 14px;
  display:flex; align-items:center; gap:8px;
}

/* tile de estatística: .card dentro de .grid com .mut (rótulo) + <h2> (número) */
.grid > .card .mut:first-child{ font-size:12px; font-weight:500; text-transform:uppercase; letter-spacing:.05em; }
.grid > .card h2{
  font-size:30px; font-weight:720; letter-spacing:-.03em;
  margin:4px 0 0; line-height:1.1;
  font-variant-numeric:tabular-nums;
}

/* dashboards: cards dentro de .grid viram tiles com barra de acento + hover */
.grid > .card{
  position:relative; overflow:hidden;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.grid > .card::after{
  content:""; position:absolute; top:0; left:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--accent-2), var(--accent)); opacity:.9;
}
.grid > .card:hover{ transform:translateY(-2px); border-color:var(--line-2); box-shadow:var(--shadow-lg); }

/* ------------------------------------------------------------- grid ------ */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
}

/* ----------------------------------------------------------- tabelas ----- */
table{ width:100%; border-collapse:collapse; }
th,td{ text-align:left; padding:11px 12px; font-size:13px; border-bottom:1px solid var(--line); vertical-align:middle; }
th{
  color:var(--mut); font-weight:600; font-size:11px;
  text-transform:uppercase; letter-spacing:.06em;
  border-bottom:1px solid var(--line-2);
}
tbody tr,
table tr{ transition:background .12s ease; }
table tr:hover td{ background:rgba(255,255,255,.018); }
td:last-child,th:last-child{ text-align:left; }
tr:last-child td{ border-bottom:0; }

/* --------------------------------------------------------- formulários --- */
label{ display:block; font-size:12px; font-weight:600; color:var(--ink-2); margin:2px 0 4px; }
input,select,textarea{
  width:100%;
  background:var(--input);
  border:1px solid var(--line-2);
  color:var(--ink);
  border-radius:var(--r-sm);
  padding:10px 12px;
  margin:5px 0;
  font:inherit;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea{ min-height:84px; resize:vertical; line-height:1.5; }
input::placeholder,textarea::placeholder{ color:#5d6776; }
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  background:#0c1320;
  box-shadow:0 0 0 3px var(--accent-soft);
}
select{ appearance:none; cursor:pointer; }

/* ------------------------------------------------------------ botões ----- */
button,.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:linear-gradient(180deg, var(--accent-2), var(--accent));
  color:var(--accent-ink);
  border:0; border-radius:var(--r-sm);
  padding:10px 16px;
  font:inherit; font-weight:650;
  cursor:pointer;
  text-decoration:none; white-space:nowrap;
  box-shadow:0 8px 20px -12px var(--accent-glow);
  transition:transform .12s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}
button:hover,.btn:hover{ transform:translateY(-1px); filter:brightness(1.06); color:var(--accent-ink); box-shadow:0 12px 26px -12px var(--accent-glow); }
button:active,.btn:active{ transform:translateY(0); filter:brightness(.97); }
button:focus-visible,.btn:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--accent-soft); }

.btn-ghost{
  background:transparent; color:var(--ink-2);
  border:1px solid var(--line-2); box-shadow:none;
}
.btn-ghost:hover{ background:var(--surface-2); color:var(--ink); filter:none; }

.btn-bad{
  background:linear-gradient(180deg, #ff8585, var(--bad)); color:#2a0606;
  box-shadow:0 8px 20px -12px rgba(255,107,107,.5);
}
.btn-bad:hover{ color:#2a0606; }

/* ----------------------------------------------------------- pills ------- */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 10px; border-radius:var(--r-pill);
  font-size:12px; font-weight:600; line-height:1.5;
  background:var(--surface-2); color:var(--ink-2);
  border:1px solid var(--line-2);
}
.pill::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.9; }

/* verde — estados positivos */
.pill.active,.pill.ok,.pill.paid,.pill.ready,.pill.granted,.pill.confirmed{
  background:var(--ok-soft); color:var(--ok); border-color:transparent;
}
/* vermelho — estados negativos */
.pill.banned,.pill.suspended,.pill.expired,.pill.refunded,.pill.failed,.pill.err,.pill.denied,.pill.canceled{
  background:var(--bad-soft); color:var(--bad); border-color:transparent;
}
/* âmbar — estados pendentes */
.pill.pending,.pill.queued,.pill.building,.pill.warn{
  background:var(--warn-soft); color:var(--warn); border-color:transparent;
}

/* ----------------------------------------------------------- utils ------- */
.mut{ color:var(--mut); }
.mono{ font-family:var(--mono); font-size:.94em; }
.ok{ color:var(--ok); }
.err{ color:var(--bad); }
.inline{ display:inline; }
form.inline{ display:inline; }

/* destaque para segredos/keys exibidos uma única vez */
.mono.secret, code.secret, .secret{
  display:inline-block;
  background:var(--input); border:1px dashed var(--line-2);
  border-radius:var(--r-sm); padding:6px 10px;
  color:var(--accent-2); word-break:break-all;
}

/* ======================================================== páginas auth === */
body.auth,
body:has(> .box){               /* compat: páginas de login antigas usam só .box */
  display:grid; place-items:center; min-height:100vh; padding:24px;
}
.auth-card,.box{
  position:relative;
  width:380px; max-width:92vw;
  background:linear-gradient(180deg, rgba(255,255,255,.022), transparent 55%), var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px 28px;
  box-shadow:var(--shadow-lg);
}
.auth-card::before,.box::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  background:linear-gradient(160deg, var(--accent-glow), transparent 38%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  pointer-events:none; opacity:.7;
}
.auth-brand{
  display:flex; align-items:center; gap:11px; margin-bottom:18px;
}
.auth-brand .logo{
  display:grid; place-items:center; width:38px; height:38px; border-radius:11px;
  color:var(--accent-ink); background:linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow:0 8px 22px -8px var(--accent-glow);
}
.auth-brand .logo svg{ width:21px; height:21px; }
.auth-card h1,.auth-card h2,.box h1,.box h2{ font-size:19px; margin:0 0 2px; }
.auth-card .mut,.box .mut{ margin:0 0 16px; font-size:13px; }
.auth-card form,.box form{ margin:0; }
.auth-card button,.box button{ width:100%; padding:12px; margin-top:10px; }

/* =================================================== site / cliente ====== */
header{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 28px;
  border-bottom:1px solid var(--line);
  background:rgba(10,14,21,.6);
  backdrop-filter:blur(8px);
  position:sticky; top:0; z-index:10;
}
header strong,header b{ display:inline-flex; align-items:center; gap:9px; font-size:16px; }
header nav{ position:static; width:auto; height:auto; flex-direction:row; gap:6px; padding:0; background:none; border:0; overflow:visible; }
header nav a{ display:inline; padding:0; border-radius:0; color:var(--accent-2); }
header nav a:hover{ background:none; color:var(--ink); }
.container{ max-width:960px; margin:0 auto; padding:34px 22px 64px; }
.container h1{ font-size:26px; letter-spacing:-.02em; margin:0 0 16px; }

/* ============================================ download seguro (portal) === */
.dl{ margin-top:4px; }
.dl[hidden]{ display:none; }
.dl-cta .btn{ width:100%; }
.dl-reassure{ margin-top:14px; display:flex; gap:16px; flex-wrap:wrap; font-size:11.5px; color:var(--mut); }
.dl-reassure span{ display:inline-flex; align-items:center; gap:5px; }
.dl-reassure svg{ width:13px; height:13px; color:var(--accent); }

.dl-progress,.dl-done,.dl-error{ animation:dl-fade .35s ease both; }
@keyframes dl-fade{ from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none} }

/* barra de progresso */
.dl-bar{ height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden; margin:4px 0 18px; }
.dl-bar > span{ display:block; height:100%; width:6%; border-radius:99px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow:0 0 12px -2px var(--accent-glow);
  transition:width .55s cubic-bezier(.4,0,.2,1); }
.dl[data-step="1"] .dl-bar>span{ width:18%; }
.dl[data-step="2"] .dl-bar>span{ width:40%; }
.dl[data-step="3"] .dl-bar>span{ width:62%; }
.dl[data-step="4"] .dl-bar>span{ width:82%; }
.dl[data-step="5"] .dl-bar>span{ width:94%; }
.dl[data-done] .dl-bar>span{ width:100%; }

/* stepper */
.dl-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.dl-step{ display:flex; align-items:center; gap:12px; padding:8px 6px; border-radius:10px; transition:background .25s ease; }
.dl-step .dot{ position:relative; flex:none; width:32px; height:32px; border-radius:9px;
  display:grid; place-items:center; background:var(--surface-2); border:1px solid var(--line-2); color:var(--mut);
  transition:color .25s ease, background .25s ease, border-color .25s ease; }
.dl-step .dot svg{ width:16px; height:16px; }
.dl-step .lbl{ font-size:13px; font-weight:560; color:var(--mut); line-height:1.25; }
.dl-step.active .lbl,.dl-step.done .lbl{ color:var(--ink-2); }
.dl-step.active{ background:var(--accent-soft); }
.dl-step.active .dot{ color:var(--accent); border-color:transparent; background:rgba(0,0,0,.22); }
.dl-step.active .lbl{ color:var(--ink); font-weight:620; }
.dl-step.active .dot::before{ content:""; position:absolute; inset:-3px; border-radius:11px;
  border:2px solid transparent; border-top-color:var(--accent); border-right-color:var(--accent);
  animation:dl-spin .7s linear infinite; }
.dl-step.done .dot{ background:var(--ok-soft); border-color:transparent; }
.dl-step.done .dot svg{ display:none; }
.dl-step.done .dot::after{ content:"✓"; font-size:16px; font-weight:800; color:var(--ok); line-height:1; }
.dl-step.failed .dot{ background:var(--bad-soft); border-color:transparent; }
.dl-step.failed .dot svg{ display:none; }
.dl-step.failed .dot::after{ content:"✕"; font-size:15px; font-weight:800; color:var(--bad); line-height:1; }
.dl-step.failed .lbl{ color:var(--bad); }
@keyframes dl-spin{ to{ transform:rotate(360deg) } }

.dl-note{ display:flex; align-items:center; gap:9px; margin:12px 4px 2px; font-size:12.5px; color:var(--ink-2); min-height:18px; }
.dl-note .pulse{ width:7px; height:7px; border-radius:50%; background:var(--accent); flex:none; animation:dl-pulse 1.1s ease-in-out infinite; }
@keyframes dl-pulse{ 0%,100%{opacity:.35; transform:scale(.8)} 50%{opacity:1; transform:scale(1.15)} }

/* selo de conclusão / erro */
.dl-seal{ display:grid; place-items:center; width:56px; height:56px; margin:4px auto 14px; border-radius:16px;
  color:var(--ok); background:var(--ok-soft); }
.dl-seal svg{ width:28px; height:28px; }
.dl-done h3,.dl-error h3{ justify-content:center; text-align:center; font-size:16px; margin-bottom:4px; }
.dl-center{ text-align:center; }
.dl-error .dl-seal{ color:var(--bad); background:var(--bad-soft); }
.dl-code{ margin-top:8px; font-size:11.5px; color:var(--mut); }
.dl-code .mono{ color:var(--ink-2); }

.dl-meta{ margin:14px 0; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.dl-meta > div{ display:flex; justify-content:space-between; gap:12px; padding:9px 12px; font-size:12px; border-bottom:1px solid var(--line); }
.dl-meta > div:last-child{ border-bottom:0; }
.dl-meta .k{ color:var(--mut); flex:none; }
.dl-meta .v{ color:var(--ink); text-align:right; word-break:break-all; }
.dl-actions{ display:flex; gap:10px; }
.dl-actions .btn{ flex:1; }

@media (prefers-reduced-motion: reduce){
  .dl-step.active .dot::before,.dl-note .pulse{ animation:none; }
  .dl-progress,.dl-done,.dl-error{ animation:none; }
}

/* ===================================== console de dados (licença/HWID) ==== */
/* grade chave→valor */
.kv{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:12px; overflow:hidden;
}
.kv > div{ background:var(--surface); padding:12px 15px; }
.kv .k{ font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--mut); margin-bottom:6px; }
.kv .v{ font-size:14px; color:var(--ink); word-break:break-word; }

/* métricas (números grandes) */
.metrics{ display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:12px; }
.metric{
  position:relative; padding:15px 16px; border:1px solid var(--line); border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 70%), var(--surface); overflow:hidden;
}
.metric::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent); opacity:.55; }
.metric .n{ font-size:26px; font-weight:740; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.metric .l{ margin-top:7px; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--mut); }
.metric.good .n{ color:var(--ok); } .metric.good::after{ background:var(--ok); }
.metric.bad  .n{ color:var(--bad); } .metric.bad::after{ background:var(--bad); }
.metric.warn .n{ color:var(--warn); } .metric.warn::after{ background:var(--warn); }

/* banner de risco/estado */
.banner{ display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:12px; border:1px solid var(--line-2); background:var(--surface); }
.banner svg{ width:20px; height:20px; flex:none; margin-top:1px; }
.banner .t{ font-weight:650; font-size:14px; }
.banner .d{ font-size:12.5px; color:var(--ink-2); margin-top:3px; }
.banner.ok{ background:var(--ok-soft); border-color:transparent; } .banner.ok svg,.banner.ok .t{ color:var(--ok); }
.banner.warn{ background:var(--bad-soft); border-color:transparent; } .banner.warn svg,.banner.warn .t{ color:var(--bad); }

/* comparação antigo × novo */
.compare{ display:grid; grid-template-columns:1fr 44px 1fr; align-items:stretch; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.compare .col{ padding:15px 16px; background:var(--surface); }
.compare .col h4{ font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--mut); margin:0 0 12px; display:flex; gap:7px; align-items:center; }
.compare .col h4 svg{ width:14px; height:14px; }
.compare .mid{ display:grid; place-items:center; background:var(--rail); color:var(--mut); border-left:1px solid var(--line); border-right:1px solid var(--line); }
.compare .mid svg{ width:18px; height:18px; }
.compare .row{ margin:9px 0; }
.compare .row .lab{ display:block; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--mut); margin-bottom:2px; }
.compare .row .val{ font-size:13px; }
.compare.diff .mid{ color:var(--bad); }
.compare.same .mid{ color:var(--ok); }
@media (max-width:620px){
  .compare{ grid-template-columns:1fr; }
  .compare .mid{ border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:9px; }
  .compare .mid svg{ transform:rotate(90deg); }
}

/* valor copiável */
.copy{ display:inline-flex; align-items:center; gap:8px; max-width:100%; }
.copy .mono{ overflow:hidden; text-overflow:ellipsis; }
.copy button{ all:unset; cursor:pointer; color:var(--mut); display:inline-grid; place-items:center; width:26px; height:26px; border-radius:7px; flex:none; transition:color .15s ease, background .15s ease; }
.copy button:hover{ color:var(--accent); background:var(--surface-2); }
.copy button svg{ width:14px; height:14px; }
.copy.copied button{ color:var(--ok); }

/* ----------------------------------------------------- license handoff ----- */
.issue-key{ max-width:860px; }
.issue-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.issue-head h3{ margin:2px 0 5px; font-size:19px; }
.eyebrow{ color:var(--accent); font:700 10px/1 var(--mono); text-transform:uppercase; letter-spacing:.14em; }
.key-display{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  width:100%; padding:17px 18px; margin:0 0 16px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius:10px; background:var(--surface-2);
  box-shadow:inset 3px 0 0 var(--accent),0 0 24px color-mix(in srgb,var(--accent) 10%,transparent);
}
.key-display .mono{ font-size:17px; letter-spacing:.06em; color:var(--ink); }
.issue-warning{ margin-top:0; }
.handoff{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; list-style:none; padding:0; margin:18px 0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.handoff li{ display:flex; gap:11px; min-height:88px; padding:15px; background:var(--surface); }
.handoff li > span{ display:grid; place-items:center; width:25px; height:25px; flex:none; border:1px solid color-mix(in srgb,var(--accent) 46%,var(--line)); border-radius:6px; color:var(--accent); font:700 11px/1 var(--mono); background:var(--accent-soft); }
.handoff strong{ display:block; margin:2px 0 4px; font-size:13px; }
.handoff small{ display:block; color:var(--mut); font-size:11.5px; line-height:1.45; }
.issue-actions{ display:flex; flex-wrap:wrap; gap:9px; }
@media(max-width:720px){ .handoff{ grid-template-columns:1fr; } .issue-head{ align-items:center; } .key-display .mono{ font-size:14px; } }

/* flags inline */
.flag{ display:inline-flex; align-items:center; gap:5px; padding:2px 9px; border-radius:99px; font-size:11px; font-weight:650; }
.flag svg{ width:12px; height:12px; }
.flag.diff{ background:var(--bad-soft); color:var(--bad); }
.flag.same{ background:var(--ok-soft); color:var(--ok); }
.flag.orig{ background:var(--accent-soft); color:var(--accent-2); }

/* seção com título + descrição */
.section-head{ margin:0 0 14px; }
.section-head h3{ font-size:16px; margin:0; display:flex; align-items:center; gap:9px; }
.section-head h3 svg{ width:17px; height:17px; color:var(--accent); }
.section-head p{ margin:5px 0 0; font-size:12.5px; color:var(--mut); }

/* ====================================== ações de tabela / listagem ======= */
.table-wrap{ overflow-x:auto; }
.table-wrap table{ min-width:680px; }

.actions{ display:inline-flex; gap:6px; align-items:center; white-space:nowrap; }
.btn-sm{ padding:6px 12px; font-size:12.5px; border-radius:8px; box-shadow:none; }
.btn-icon{ width:33px; height:33px; padding:0; border-radius:8px; box-shadow:none; }
.btn-icon svg{ width:16px; height:16px; }
.btn-danger{ background:transparent; color:var(--bad); border:1px solid var(--line-2); box-shadow:none; }
.btn-danger:hover{ background:var(--bad-soft); border-color:transparent; color:var(--bad); filter:none; transform:none; }

/* barra de ferramentas (busca) */
.toolbar{ display:flex; gap:10px; align-items:center; }
.toolbar .grow{ flex:1; min-width:0; }
.toolbar input{ margin:0; }
.toolbar .btn{ flex:none; }

/* painel "Gerar key" recolhível */
details.gen{ padding:0; overflow:hidden; }
details.gen > summary{ list-style:none; cursor:pointer; padding:17px 20px; display:flex; align-items:center; gap:12px; }
details.gen > summary::-webkit-details-marker{ display:none; }
details.gen > summary:hover{ background:rgba(255,255,255,.015); }
details.gen .gen-ic{ display:grid; place-items:center; width:32px; height:32px; border-radius:9px; color:var(--accent); background:var(--accent-soft); flex:none; }
details.gen .gen-ic svg{ width:17px; height:17px; }
details.gen .gen-t{ font-weight:640; font-size:14.5px; }
details.gen .gen-h{ font-size:12px; }
details.gen .chev{ margin-left:auto; color:var(--mut); transition:transform .2s ease; }
details.gen .chev svg{ width:18px; height:18px; display:block; }
details.gen[open] .chev{ transform:rotate(180deg); }
details.gen .gen-body{ padding:20px; border-top:1px solid var(--line); }
.gen-cols{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.gen-cols .gc h4{ font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--mut); margin:0 0 12px; display:flex; align-items:center; gap:7px; }
.gen-cols .gc h4 svg{ width:14px; height:14px; color:var(--accent); }
.gen-cols .gc .btn{ width:100%; margin-top:6px; }
@media (max-width:760px){
  .gen-cols{ grid-template-columns:1fr; gap:0; }
  .gen-cols .gc + .gc{ border-top:1px solid var(--line); padding-top:18px; margin-top:18px; }
}
.field{ margin-bottom:12px; }

/* ===================================== acentos neon (cyberpunk) ========== */
main > h2{ position:relative; }
main > h2::after{
  content:""; position:absolute; left:0; bottom:-1px; width:64px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, var(--accent), transparent);
  box-shadow:0 0 12px var(--accent-glow);
}
nav a.active::before{ box-shadow:0 0 12px var(--accent-glow), 0 0 4px var(--accent); }
.brand .logo, .auth-brand .logo{ box-shadow:0 0 0 1px rgba(255,255,255,.05), 0 8px 26px -8px var(--accent-glow); }
.metric::after{ box-shadow:0 0 12px var(--accent-glow); }
.grid > .card::after{ box-shadow:0 0 12px var(--accent-glow); }
.grid > .card:hover{ box-shadow:var(--shadow-lg), 0 0 0 1px var(--accent-soft); }
details.gen .gen-ic{ box-shadow:0 0 0 1px var(--accent-soft), 0 0 18px -4px var(--accent-glow); }
.btn:hover{ box-shadow:0 0 0 1px var(--accent-soft), 0 10px 30px -10px var(--accent-glow), 0 0 18px -8px var(--accent-glow); }
.pill.active,.pill.ok,.pill.paid,.pill.ready,.pill.granted,.pill.confirmed{ box-shadow:0 0 14px -4px rgba(69,212,131,.5); }
/* foco do input em neon */
input:focus,select:focus,textarea:focus{ box-shadow:0 0 0 3px var(--accent-soft), 0 0 18px -6px var(--accent-glow); }

/* ======================================================= responsivo ====== */
@media (max-width: 860px){
  .wrap{ flex-direction:column; }
  nav{
    position:static; width:100%; height:auto;
    flex-direction:row; flex-wrap:wrap; align-items:center;
    border-right:0; border-bottom:1px solid var(--line);
    padding:12px;
  }
  .brand{ width:100%; border-bottom:0; padding:2px 6px 10px; margin:0; }
  .nav-label{ display:none; }
  nav a{ padding:8px 10px; }
  nav a.active::before{ display:none; }
  .nav-foot{ margin:0; }
  main{ padding:24px 18px 48px; }
  main > h2{ font-size:21px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
