:root {
  --bg: #14111d;
  --card: #211a33;
  --accent: #b08cff;
  --accent-2: #cdb8ff;
  --text: #ece8f6;
  --muted: #a49eba;
  --border: #322b49;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.topbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }

.container { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0.5rem 0 0.25rem; }
.lead { color: var(--muted); margin-top: 0; }

.input {
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.stats strong { color: var(--accent-2); }

.mini-btn {
  margin-left: auto;
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.mini-btn:hover { background: var(--accent); color: #04121c; }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.result-text {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.2em;
  max-height: 8rem;
  overflow: auto;
}
.result-text:empty::before { content: "—"; color: var(--muted); }

.copy-btn {
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 7px;
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.copy-btn:hover { background: var(--accent); color: #04121c; }

.ad-slot {
  margin: 1.75rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.ad-placeholder { color: var(--muted); font-size: 0.85rem; }

.faq h2 { font-size: 1.25rem; margin-top: 2rem; }
.faq h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.faq p { margin-top: 0; color: var(--muted); }
code { background: var(--card); padding: 0.1rem 0.4rem; border-radius: 5px; font-size: 0.9em; }

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer a { color: var(--accent); }

/* ===================== FERRAMENTAI-BRAND-V2 ===================== */
/* Camada de identidade aplicada sobre o CSS base de cada ferramenta */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image:
    radial-gradient(820px 380px at 50% -140px, rgba(176,140,255,.18), transparent 70%),
    radial-gradient(560px 280px at 100% 0, rgba(232,121,249,.10), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Header fixo com efeito de vidro */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

/* Wordmark da marca com gradiente assinatura */
.brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, #a78bfa 8%, #e879f9 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1 { letter-spacing: -.03em; font-weight: 800; }
.lead { font-size: 1.02rem; }

/* Superfícies com profundidade suave (sombra violeta) */
.card, .stat, .result-card, .hash-card, .gen-card, .picker-card, .ip-card, .block {
  box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 18px 38px -22px rgba(120,60,200,.55);
}

/* Microinterações */
.btn, .btn-primary, .copy-btn, .icon-btn, .tab, .mini-btn {
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .12s ease, border-color .15s ease;
}
.btn-primary { box-shadow: 0 10px 24px -10px rgba(176,140,255,.6); }
.btn-primary:hover, .icon-btn:hover, .tab:hover { transform: translateY(-1px); }

/* Foco acessível e consistente */
.input:focus, .area:focus, select:focus, textarea:focus, input:focus {
  outline: none; border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,.24);
}
:focus-visible { outline: none; }
::selection { background: rgba(167,139,250,.32); color: #fff; }

/* Realce sutil nos cartões de resultado */
.result { box-shadow: inset 0 0 0 1px rgba(176,140,255,.14); }
/* =============================================================== */
/* Seletor de idioma (i18n) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.langnav { display: flex; gap: .3rem; flex: 0 0 auto; }
.langnav a {
  color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 800;
  letter-spacing: .03em; padding: .25rem .55rem; border-radius: 7px; border: 1px solid var(--border);
}
.langnav a:hover { color: var(--accent); border-color: var(--accent); }
.langnav a[aria-current="true"] { background: var(--accent); color: #14111d; border-color: var(--accent); }

