:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-hover: #161616;
  --surface-elev: #141414;
  --input-bg: #0d0d0d;
  --border: #242424;
  --border-strong: #343434;
  --text: #f3f4f6;
  --text-soft: #d1d5db;
  --muted: #8b8d94;
  --blue: #1a6ef5;
  --blue-bright: #3b82f6;
  --green: #22c55e;
  --amber: #f59e0b;
  --danger: #dc2626;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }

.top-banner {
  background: #0d1f3c;
  border-bottom: 1px solid #1d4ed8;
  color: #bfdbfe;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Navbar estilo Cloudflare */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #2b7fff 0%, #145ee0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 1px 4px rgba(26,110,245,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.brand-mark svg { width: 16px; height: 16px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(59,130,246,0.7);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Botones con relieve (gorditos y sobresalientes) */
button, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: linear-gradient(180deg, #2e81ff 0%, #1563e6 100%);
  border: 1px solid #0f52c4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(21, 99, 230, 0.36),
    0 1px 2px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .btn-primary:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(26, 110, 245, 0.48),
    0 1px 2px rgba(0, 0, 0, 0.7);
}
button:active, .btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
button:disabled { opacity: 0.6; cursor: not-allowed; }
button svg, .btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-secondary, .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, #1b1b1b 0%, #131313 100%);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover, .lang-btn:hover {
  border-color: #4b4b4b;
  background: linear-gradient(180deg, #222222 0%, #181818 100%);
}
.btn-compact, .btn-sm { padding: 6px 11px; font-size: 0.82rem; border-radius: 7px; }

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: #141414;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  color: var(--text-soft);
}
.icon-btn:hover { border-color: #3f3f46; background: #1c1c1c; filter: none; box-shadow: none; }
.icon-btn svg { width: 18px; height: 18px; }

button.danger, .lang-btn.danger {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: #991b1b;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 2px 6px rgba(185,28,28,0.35);
}

/* Sidebar deslizable tipo Cloudflare */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 284px;
  max-width: 85vw;
  background: #0a0a0a;
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.drawer-search, .search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.drawer-search svg, .search-input-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.drawer-search input, .search-input-wrap input {
  padding-left: 36px;
}
.drawer-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 8px 6px;
}
.drawer-nav { display: flex; flex-direction: column; gap: 3px; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.14s ease, color 0.14s ease;
}
.drawer-link:hover { background: #161616; color: #fff; }
.drawer-link.active { background: #1f1f1f; color: #ffffff; font-weight: 600; }
.drawer-ico { display: inline-flex; width: 18px; height: 18px; color: var(--muted); }
.drawer-link.active .drawer-ico, .drawer-link:hover .drawer-ico { color: var(--blue-bright); }
.drawer-ico svg { width: 18px; height: 18px; }
.drawer-text { flex: 1; }
.drawer-chev { width: 14px; height: 14px; color: #52525b; }

/* Contenedor principal */
.container { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; }

/* Hero con lluvia hacker OSINT */
.hero-rain-box {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #080a0c;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 60%, rgba(10, 10, 10, 0.78) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 20px;
  max-width: 680px;
}
.pill-row { margin-bottom: 14px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-blue { background: var(--blue-bright); box-shadow: 0 0 8px var(--blue-bright); }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
}
.title-accent { color: var(--blue-bright); }
.hero-sub {
  margin: 0 auto 22px;
  color: #a1a1aa;
  font-size: 0.98rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Barra de filtro superior */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-toolbar .search-input-wrap { flex: 1; min-width: 220px; max-width: 420px; }
.tools-count { font-size: 0.85rem; color: var(--muted); }
.tools-count strong { color: var(--text); }

/* Tarjetas profesionales estilo Cloudflare */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.card:hover {
  background: var(--surface-hover);
  border-color: #3f3f46;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #171717;
  border: 1px solid #2b2b2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.card-icon-box svg { width: 19px; height: 19px; }
.card:hover .card-icon-box { border-color: rgba(59,130,246,0.5); color: var(--blue-bright); }
.card-icon-lg { width: 46px; height: 46px; border-radius: 10px; }
.card-icon-lg svg { width: 23px; height: 23px; }

.tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tag-ok { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.25); }
.tag-warn { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.28); }

.card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.card p, .muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
}
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-slug { font-size: 0.76rem; color: #71717a; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue-bright);
}
.card-cta svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card:hover .card-cta svg { transform: translateX(3px); }
.card-maint { opacity: 0.65; }

/* Vista de herramienta y paneles */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tool-box, .panel-box, .login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.tool-header h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 220px; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.hidden { display: none; }
.status-bar {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #10192b;
  border: 1px solid #1e3a8a;
  color: #93c5fd;
  font-size: 0.88rem;
}
.result-wrap {
  margin-top: 16px;
  background: #070707;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #121212;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.meta-mono { font-family: var(--font-mono); color: #93c5fd; }
pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #86efac;
}

/* Estilos compartidos con Panel Admin */
.alert {
  background: rgba(153, 27, 27, 0.25);
  border: 1px solid #991b1b;
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.88rem;
}
.ok-msg {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid #059669;
  color: #a7f3d0;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.stat span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-size: 1.55rem; font-weight: 700; color: #ffffff; letter-spacing: -0.02em; }
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-form label { font-size: 0.8rem; font-weight: 500; color: var(--muted); display: block; margin-bottom: 5px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 7px; color: var(--text); margin: 0; }
.checks input { width: auto; }
.tool-acc {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #0d0d0d;
}
.tool-acc summary { cursor: pointer; font-weight: 500; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.center-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 370px; display: flex; flex-direction: column; gap: 10px; }
.login-card h2 { margin: 0 0 6px; letter-spacing: -0.02em; }

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  margin-top: 28px;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links { display: flex; gap: 8px; align-items: center; }
.footer a:hover { color: var(--text); }
.ad-slot { margin-bottom: 18px; text-align: center; }

/* Ajustes v3: Lluvia nítida, DNS Google, tablas copiables y Monitor en Vivo */
.hero-rain-box { min-height: 300px; }
.hero-vignette {
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.28) 58%, rgba(10, 10, 10, 0.52) 100%);
}
.dns-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dns-chip {
  padding: 5px 12px; border-radius: 7px; font-size: 0.78rem; font-weight: 600;
  font-family: var(--font-mono); color: var(--text-soft);
  background: #141414; border: 1px solid var(--border-strong); box-shadow: none;
}
.dns-chip:hover { border-color: var(--blue-bright); color: #fff; filter: none; box-shadow: none; }
.dns-chip.active {
  background: linear-gradient(180deg, #2e81ff 0%, #1563e6 100%);
  border-color: #0f52c4; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 1px 4px rgba(21,99,230,0.4);
}
.result-summary {
  margin-top: 16px; padding: 14px; border-radius: 10px;
  background: #0d0d0d; border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.summary-left { display: flex; flex-direction: column; gap: 8px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cdn-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cdn-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: rgba(26, 110, 245, 0.14); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35);
}
.cdn-badge.direct {
  background: rgba(34, 197, 94, 0.12); color: #86efac; border-color: rgba(34, 197, 94, 0.3);
}
.structured-results {
  margin-top: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #0b0b0b; overflow: hidden;
}
.res-table-wrap { overflow-x: auto; }
.res-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.res-table th { background: #141414; padding: 10px 12px; }
.res-table td { padding: 10px 12px; border-bottom: 1px solid #1d1d1d; vertical-align: middle; }
.copy-cell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-mini {
  padding: 3px 8px; font-size: 0.72rem; border-radius: 6px; font-weight: 600;
  background: #1a1a1a; border: 1px solid #333; color: #d4d4d8; box-shadow: none;
}
.copy-mini:hover { border-color: var(--blue-bright); color: #fff; background: #1d2b45; filter: none; box-shadow: none; }
.copy-mini.copied { background: #064e3b; border-color: #10b981; color: #a7f3d0; }
.type-badge {
  display: inline-block; padding: 2px 7px; border-radius: 5px; font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 600; background: #1e293b; color: #93c5fd; border: 1px solid #334155;
}
.entity-bar {
  padding: 12px 14px; border-top: 1px solid #1d1d1d; background: #101010;
  display: flex; flex-direction: column; gap: 8px;
}
.entity-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.entity-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.raw-json-box {
  margin-top: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #080808; overflow: hidden;
}
.raw-json-box summary {
  padding: 10px 14px; cursor: pointer; font-size: 0.84rem; color: var(--muted); font-weight: 500;
}
.live-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.stat-live { border-color: rgba(34, 197, 94, 0.38); background: linear-gradient(180deg, #0d1912 0%, #111111 100%); }
.stat-live strong { color: #4ade80; }
.pulse { animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Pestañas DNS Básico / Avanzado y Categorías */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dns-mode-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: #0b0b0b; border: 1px solid var(--border); margin-bottom: 12px;
}
.mode-tab {
  padding: 7px 14px; border-radius: 7px; font-size: 0.84rem; font-weight: 600;
  background: transparent; border: none; color: var(--muted); box-shadow: none;
}
.mode-tab:hover { color: #fff; filter: none; box-shadow: none; }
.mode-tab.active {
  background: linear-gradient(180deg, #2e81ff 0%, #1563e6 100%);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

/* v5: Colores dinámicos en botones, menú agrupado, footer en recuadro y cuentas */
.brand-mark {
  background: var(--blue);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 85%, white) 0%, color-mix(in srgb, var(--blue) 88%, black) 100%);
  border: 1px solid color-mix(in srgb, var(--blue) 70%, black);
}
.brand-img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
button, .btn-primary, .dns-chip.active, .mode-tab.active {
  background: var(--blue);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 86%, white) 0%, color-mix(in srgb, var(--blue) 86%, black) 100%);
  border-color: color-mix(in srgb, var(--blue) 70%, black);
}
.tag-pro {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  color: color-mix(in srgb, var(--blue) 70%, white);
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
}
.drawer-group { border-radius: 9px; margin-bottom: 4px; }
.drawer-group-btn {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 8px; font-size: 0.89rem; font-weight: 600; color: var(--text);
  background: #121212; border: 1px solid var(--border); transition: background .15s ease;
}
.drawer-group-btn::-webkit-details-marker { display: none; }
.drawer-group-btn:hover { background: #191919; border-color: #343434; }
.drawer-count {
  font-size: 0.72rem; font-family: var(--font-mono); color: var(--muted);
  background: #1d1d1d; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border);
}
.drawer-group[open] .drawer-chev { transform: rotate(90deg); color: var(--blue); }
.drawer-chev { transition: transform .15s ease; }
.drawer-sublist {
  display: flex; flex-direction: column; gap: 2px;
  margin: 5px 0 6px 14px; padding-left: 10px; border-left: 1px solid var(--border);
}
.drawer-sublink { padding: 8px 10px; font-size: 0.84rem; }

/* Footer profesional en recuadro con íconos cuadrados */
.footer { border-top: none; padding: 0 16px 32px; margin-top: 24px; }
.footer-card {
  max-width: 1040px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px;
}
.footer-brand-col { max-width: 440px; }
.footer-desc { margin: 10px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.footer-contact-col { display: flex; flex-wrap: wrap; gap: 10px; }
.social-box {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; background: #0d0d0d; border: 1px solid var(--border-strong);
  transition: border-color .15s ease, transform .15s ease;
}
.social-box:hover { border-color: var(--blue); transform: translateY(-1px); }
.social-ico {
  width: 38px; height: 38px; border-radius: 9px; background: #171717; border: 1px solid #2b2b2b;
  display: inline-flex; align-items: center; justify-content: center; color: var(--blue);
}
.social-ico svg { width: 19px; height: 19px; }
.social-meta { display: flex; flex-direction: column; line-height: 1.25; }
.social-meta small { font-size: 0.72rem; color: var(--muted); }
.social-meta strong { font-size: 0.84rem; color: var(--text); font-weight: 600; }
.footer-bottom {
  max-width: 1040px; margin: 12px auto 0; padding: 0 6px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
}
.auth-wrap { display: flex; justify-content: center; padding: 28px 0; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.color-grid input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }
.panel-box h3 { margin: 14px 0 6px; font-size: 0.92rem; color: var(--text-soft); border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* v6: Adaptación total a los 10 selectores de color del panel */
body { background: var(--bg) !important; color: var(--text) !important; }
.navbar, .side-drawer { background: var(--nav-bg) !important; border-color: var(--border) !important; }
.brand, h1, h2, h3, .card h3, .hero-content h1, .stat strong { color: var(--heading) !important; }
.card, .tool-box, .panel-box, .login-card, .stat, .footer-card, .tool-acc, .drawer-group-btn {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
.hero-rain-box { background: var(--bg) !important; border-color: var(--border) !important; }
.card-icon-box, .social-box, .social-ico, .icon-btn, .btn-secondary, .lang-btn, .dns-chip, input, select, textarea {
  background: var(--bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.brand-mark, button, .btn-primary, .dns-chip.active, .mode-tab.active {
  background-color: var(--blue) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(0,0,0,0.22) 100%) !important;
  border-color: rgba(0,0,0,0.35) !important;
  color: #ffffff !important;
}
.btn-secondary, .icon-btn, .dns-chip:not(.active), .mode-tab:not(.active), .copy-mini {
  background-image: none !important;
}
button.danger, .lang-btn.danger, .btn-secondary.danger {
  background-color: #dc2626 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(0,0,0,0.22) 100%) !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}
.title-accent, .card-cta, .social-ico { color: var(--blue) !important; }
.tag-ok { color: var(--green) !important; border-color: var(--green) !important; background: transparent !important; }
.dot-green { background: var(--green) !important; box-shadow: 0 0 8px var(--green) !important; }
.dot-blue { background: var(--blue) !important; box-shadow: 0 0 8px var(--blue) !important; }
.tool-custom-img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }

/* v7: Anuncios intercalados, bloque en herramienta y modal 20s -> 10h */
html.m00-adfree .ad-slot,
html.m00-adfree .ad-card,
html.m00-adfree .ad-tool-box { display: none !important; }

.ad-card, .ad-tool-box {
  background: var(--surface) !important;
  border: 1px dashed var(--border) !important;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ad-tool-box { margin-bottom: 18px; }
.ad-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ad-vip-link { font-size: 0.78rem; color: var(--blue); font-weight: 600; }
.ad-card-body {
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 8px; text-align: center;
}
.m00-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.m00-modal-box {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}
.m00-modal-box h3 { margin: 0; font-size: 1.2rem; color: var(--heading); }
.m00-modal-box p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.m00-modal-slot {
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 8px;
}
.m00-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

/* v8: Centrado estricto de anuncios en portada y herramientas */
.ad-card, .ad-tool-box {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}
.ad-card-head { width: 100%; }
.ad-card-body {
  width: 100% !important;
  padding: 6px 0;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}
.ad-card-body > div,
.ad-card-body iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
  display: block !important;
}
.ad-frame-300 {
  width: 300px;
  max-width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}
