/* ==========================================================================
   ALK TOOLS — IDENTIDADE VISUAL OFICIAL ALK SUPPORT
   Cores, tipografia e componentes sincronizados 100% com alksupport.com.br
   Tokens: --preto (#08070b), --carvao (#111016), --rubro (#e3142a), --quente (#ff6a3d)
   ========================================================================== */

:root {
  /* Cores Oficiais ALK Support */
  --preto: #08070b;
  --carvao: #111016;
  --carvao-2: #16151e;
  --carvao-hover: #1c1a26;
  --linha: rgba(255, 255, 255, 0.1);
  --linha-forte: rgba(255, 255, 255, 0.18);
  --tinta: #f5f3f7;
  --fraco: #9b98a8;
  --rubro: #e3142a;
  --rubro-dark: #b30f21;
  --quente: #ff6a3d;
  --rubro-glow: rgba(227, 20, 42, 0.2);

  /* Variáveis Semânticas (Padrão Dark ALK) */
  --bg-primary: var(--preto);
  --bg-secondary: rgba(8, 7, 11, 0.85);
  --bg-card: var(--carvao);
  --bg-card-hover: var(--carvao-hover);
  --bg-input: #0b0a10;
  --border-color: var(--linha);
  --border-hover: var(--linha-forte);

  --accent-primary: var(--rubro);
  --accent-primary-hover: var(--rubro-dark);
  --accent-glow: var(--rubro-glow);
  
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --text-primary: var(--tinta);
  --text-secondary: var(--fraco);
  --text-muted: #747180;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 99px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Claro Adaptativo (Opcional) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  /* Suporte a Safe Areas no iOS Safari (notch e barras de navegação) */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Gradiente Chama ALK */
.chama {
  background: linear-gradient(100deg, var(--rubro), var(--quente));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ==========================================================================
   SUPRESSÃO TOTAL DA BARRA DO GOOGLE TRANSLATE (PREVINE ESTRAGAR O MENU)
   ========================================================================== */
html.translated-ltr,
html.translated-rtl {
  margin-top: 0px !important;
  padding-top: 0px !important;
  top: 0px !important;
}

html.translated-ltr body,
html.translated-rtl body,
body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-OR9Pa-OAZGfd,
iframe.VIpgJd-ZVi9od-OR9Pa-OAZGfd,
iframe[id^=":"][id*="container"],
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  border: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

body > .skiptranslate:not(.alk-lang-widget) {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

/* Header & Barra de Navegação */
.tools-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  background: var(--bg-secondary);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.header-container {
  width: min(1320px, 94%);
  margin-inline: auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 0;
}

.marca img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.725rem;
  padding: 0.2rem 0.6rem;
  background: rgba(227, 20, 42, 0.12);
  color: var(--rubro);
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid rgba(227, 20, 42, 0.25);
  letter-spacing: normal;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.theme-toggle-btn, .back-site-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn:hover, .back-site-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.back-label-mobile {
  display: none;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(227, 20, 42, 0.12) 0%, transparent 65%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

/* Search Box */
.search-wrapper {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1.1rem 3.5rem 1.1rem 3.4rem;
  font-size: 1.05rem;
  background: var(--carvao);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  border-color: var(--rubro);
  box-shadow: 0 0 0 4px var(--rubro-glow);
  background: #14121c;
}

.search-clear-btn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: none;
  font-size: 1.1rem;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Category Filter Bar */
.categories-nav {
  width: min(1320px, 94%);
  margin: 1.5rem auto 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  box-sizing: border-box;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: var(--carvao);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.cat-btn:hover {
  background: var(--carvao-hover);
  color: var(--text-primary);
  border-color: var(--linha-forte);
}

.cat-btn.active {
  background: var(--rubro);
  color: #fff;
  border-color: var(--rubro);
  box-shadow: 0 4px 15px rgba(227, 20, 42, 0.4);
}

.cat-badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
}

/* Main Content Container */
.tools-container {
  width: min(1320px, 94%);
  margin-inline: auto;
  padding-bottom: 5rem;
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 1.35rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 20, 42, 0.4);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(227, 20, 42, 0.08);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border-color);
}

.tool-category-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(227, 20, 42, 0.12);
  color: var(--rubro);
  border: 1px solid rgba(227, 20, 42, 0.25);
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.48;
  flex: 1;
  margin-bottom: 1.15rem;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--rubro);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
}

.tool-action-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.favorite-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.2rem;
  transition: var(--transition);
}

.favorite-btn:hover, .favorite-btn.active {
  color: #f59e0b;
}

/* Modal Interativo da Ferramenta */
.tool-view-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 11, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tool-view-modal.active {
  display: flex;
}

.tool-modal-dialog {
  background: var(--carvao);
  border: 1px solid var(--linha-forte);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tool-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14121a;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon {
  font-size: 1.85rem;
}

.modal-tool-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.modal-tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--rubro);
  color: #fff;
  border-color: var(--rubro);
}

.tool-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Botões Oficiais ALK (Pill Style) */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rubro);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(227, 20, 42, 0.3);
}

.tool-btn:hover {
  background: var(--rubro-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227, 20, 42, 0.45);
}

.tool-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.tool-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  box-shadow: none;
  transform: translateY(-1px);
}

.tool-btn-danger {
  background: rgba(227, 20, 42, 0.15);
  color: var(--rubro);
  border: 1px solid rgba(227, 20, 42, 0.3);
  box-shadow: none;
}

.tool-btn-danger:hover {
  background: var(--rubro);
  color: #fff;
}

/* Inputs e Textareas */
.tool-input, .tool-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.tool-textarea {
  font-family: var(--font-mono);
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.tool-input:focus, .tool-textarea:focus {
  border-color: var(--rubro);
  box-shadow: 0 0 0 3px var(--rubro-glow);
}

.tool-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* Stat Counters */
.stat-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-pill {
  background: #14121c;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-pill-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rubro);
  font-family: var(--font-mono);
}

.stat-pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Results Box */
.result-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 60px;
}

.result-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Toast */
.tools-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--carvao);
  color: var(--text-primary);
  border: 1px solid var(--rubro);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(227, 20, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tools-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.tools-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--rubro);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-modal-dialog {
    max-height: 95vh;
  }
  .tool-modal-body {
    padding: 1.15rem;
  }
}

/* ==========================================================================
   Banner de Consentimento de Cookies (LGPD & GDPR)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  padding: 1rem;
  display: flex;
  justify-content: center;
  animation: cookie-in 0.35s ease;
}

@keyframes cookie-in {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-box {
  width: min(680px, 100%);
  background: var(--carvao);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  padding: 1.4rem 1.6rem;
}

.cookie-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cookie-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-box a {
  color: var(--quente);
  text-decoration: underline;
}

.cookie-cats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.cookie-cats[hidden] {
  display: none;
}

.cookie-cat {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.cookie-cat:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cookie-cat input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--rubro);
  flex-shrink: 0;
}

.cookie-cat-fixa {
  cursor: default;
  opacity: 0.8;
}

.cookie-cat-txt {
  display: grid;
  gap: 2px;
}

.cookie-cat-txt strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cookie-cat-txt strong em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cookie-cat-txt span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cookie-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-actions .btn-primary {
  background: var(--rubro);
  color: #fff;
  border: 1px solid transparent;
}

.cookie-actions .btn-primary:hover {
  background: var(--rubro-dark);
}

.cookie-actions .btn-linha {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-actions .btn-linha:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 520px) {
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVIDADE E AJUSTES PARA MOBILE E SAFARI (iOS / macOS)
   Previne cortes laterais e ajusta os botões superiores no mobile
   ========================================================================== */

@media (max-width: 768px) {
  .header-container {
    padding: 10px 0;
    gap: 8px;
  }
  .marca {
    font-size: 16px;
    gap: 8px;
  }
  .marca img {
    width: 28px;
    height: 28px;
  }
  .theme-toggle-btn, .back-site-btn {
    padding: 7px 11px;
    font-size: 12px;
  }
  .hero-section {
    padding: 2.75rem 1.25rem 2rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 640px) {
  /* Ocultar badge 'Utilitários' no mobile para liberar espaço aos botões */
  .brand-badge {
    display: none !important;
  }

  .header-container {
    gap: 6px;
    padding: 8px 0;
  }

  .marca {
    font-size: 15px;
    gap: 6px;
  }

  .marca img {
    width: 26px;
    height: 26px;
  }

  .header-actions {
    gap: 5px;
  }

  /* Botão de alternância de tema no mobile: Ícone compacto, sem quebra de texto */
  .theme-toggle-btn {
    padding: 6px 9px;
    font-size: 14px;
    min-width: 36px;
    justify-content: center;
  }
  .theme-toggle-btn .theme-label {
    display: none !important;
  }

  /* Botão de busca rápida no header de ferramentas */
  .header-actions .cmd-trigger-btn {
    padding: 6px 9px;
  }
  .header-actions .cmd-trigger-btn span,
  .header-actions .cmd-trigger-btn kbd {
    display: none !important;
  }
  @media (max-width: 480px) {
    .header-actions .cmd-trigger-btn {
      display: none !important;
    }
  }

  /* Botão de voltar ao site principal: versão encurtada sem quebras feias */
  .back-site-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .back-label-desktop {
    display: none !important;
  }
  .back-label-mobile {
    display: inline !important;
  }

  /* Seletor de idioma compacto */
  .alk-lang-widget .alk-lang-btn {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
    gap: 4px !important;
  }
  .alk-lang-widget .alk-lang-dropdown {
    right: 0;
    left: auto;
    min-width: 135px;
  }

  /* Hero e busca responsivos no mobile */
  .hero-section {
    padding: 2.25rem 0.85rem 1.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  .search-wrapper {
    padding: 0 0.25rem;
  }
  .search-input {
    padding: 0.9rem 2.8rem 0.9rem 2.7rem;
    font-size: 0.92rem;
  }
  .search-icon {
    left: 1.1rem;
    font-size: 1.05rem;
  }
  .search-clear-btn {
    right: 1rem;
  }

  /* Categorias e Grid no mobile */
  .categories-nav {
    margin: 1rem auto 1.5rem;
    gap: 0.45rem;
  }
  .cat-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .tools-container {
    padding-bottom: 3.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-card {
    padding: 1.15rem;
  }

  /* Modal no mobile Safari */
  .tool-view-modal {
    padding: 0.5rem;
  }
  .tool-modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }
  .tool-modal-header {
    padding: 0.85rem 1rem;
  }
  .modal-tool-name {
    font-size: 1.1rem;
  }
  .tool-modal-body {
    padding: 1rem;
  }
}

@media (max-width: 390px) {
  .marca {
    font-size: 14px;
    gap: 5px;
  }
  .marca img {
    width: 24px;
    height: 24px;
  }
  .header-actions {
    gap: 4px;
  }
  .theme-toggle-btn {
    padding: 5px 7px;
  }
  .back-site-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .back-label-mobile {
    font-size: 11px;
  }
}




/* ==========================================================================
   STANDALONE TOOL PAGE STYLES (SEO, GEO & HIGH-END CRAFT)
   ========================================================================== */
.tool-standalone-main {
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.tool-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tool-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.tool-breadcrumbs a:hover {
  color: var(--text-primary);
}
.tool-breadcrumbs .sep {
  opacity: 0.4;
}

.tool-hero-header {
  margin-bottom: 28px;
}
.tool-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(227, 20, 42, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(227, 20, 42, 0.25);
  margin-bottom: 14px;
}
.tool-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.tool-hero-icon {
  font-size: 2.2rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--carvao);
  border: 1px solid var(--linha);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.tool-hero-h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
.tool-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
}

.tool-interactive-card {
  background: var(--carvao);
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
  position: relative;
}

.tool-ad-box {
  margin: 32px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--linha);
  border-radius: 12px;
  text-align: center;
  min-height: 90px;
  display: grid;
  place-items: center;
}
.tool-ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tool-article-section {
  background: var(--carvao-2);
  border: 1px solid var(--linha);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 24px;
}
.tool-article-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.tool-article-section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}
.tool-article-section ol, .tool-article-section ul {
  margin-left: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tool-faq-item {
  border-bottom: 1px solid var(--linha);
  padding: 14px 0;
}
.tool-faq-item:last-child {
  border-bottom: none;
}
.tool-faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.tool-faq-item summary::-webkit-details-marker {
  display: none;
}
.tool-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}
.tool-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.tool-faq-answer {
  padding-top: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.related-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--carvao);
  border: 1px solid var(--linha);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.related-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 20, 42, 0.4);
  background: var(--carvao-hover);
}
.related-tool-card:active {
  transform: scale(0.975);
}

.tool-cta-banner {
  background: linear-gradient(135deg, rgba(227, 20, 42, 0.12), rgba(255, 106, 61, 0.08));
  border: 1px solid rgba(227, 20, 42, 0.25);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* React Bits: Spotlight & Dock for Tools */
.tool-card, .ferramenta-card, .related-tool-card {
  position: relative;
  overflow: hidden;
  --spot-x: -999px;
  --spot-y: -999px;
  --spot-op: 0;
}

.tool-card::before, .ferramenta-card::before, .related-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--spot-x, -999px) var(--spot-y, -999px), rgba(255, 255, 255, 0.08), transparent 75%);
  opacity: var(--spot-op, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tool-card::after, .ferramenta-card::after, .related-tool-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(circle 240px at var(--spot-x, -999px) var(--spot-y, -999px), rgba(255, 255, 255, 0.32), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--spot-op, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.tool-card > *, .ferramenta-card > *, .related-tool-card > * {
  position: relative;
  z-index: 3;
}

.shiny-text {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.4) 0%, #ffffff 45%, rgba(255, 255, 255, 0.98) 50%, #ffffff 55%, rgba(255, 255, 255, 0.4) 100%) !important;
  background-size: 240% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shinyTextSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes shinyTextSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.reactbits-dock-container {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(17, 16, 22, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--tinta, #f5f3f7);
  font-size: 19px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}

.dock-item:hover {
  transform: scale(1.22) translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  z-index: 2;
}

.dock-item:active {
  transform: scale(0.95);
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 10px;
  background: #08070b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .reactbits-dock-container {
    padding: 6px 10px;
    gap: 6px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .dock-item {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

