:root {
  --cw-ink: #0B1220;
  --cw-muted: #64748B;
  --cw-navy: #0F1B3D;
  --cw-line: rgba(15, 23, 42, 0.1);
  --cw-red: #C8102E;
  --cw-gold: #E8B931;
  --cw-soft: #F4F6FB;
  --cw-white: #fff;
  --cw-indigo: #2A4578;
}
* { box-sizing: border-box; }
body.cw-body {
  margin: 0;
  font-family: 'Jura', system-ui, sans-serif;
  color: var(--cw-ink);
  background: linear-gradient(180deg, #fff 0%, var(--cw-soft) 40%, #eef2ff 100%);
  min-height: 100vh;
}
a { color: var(--cw-indigo); font-weight: 700; }
.cw-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--cw-line);
  backdrop-filter: blur(8px);
}
.cw-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cw-red), var(--cw-gold), transparent 78%);
}
.cw-header__inner {
  max-width: 1120px; margin: 0 auto;
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.cw-logo img { display: block; width: min(200px, 48vw); height: auto; }
.cw-nav { display: none; gap: .35rem; flex: 1; }
.cw-nav a {
  text-decoration: none; color: #334155; font-weight: 700; font-size: .82rem;
  padding: .45rem .7rem; letter-spacing: .02em;
}
.cw-nav a:hover, .cw-nav a.is-active { color: var(--cw-red); }
.cw-header__cta { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.cw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: .86rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.cw-btn--primary { background: linear-gradient(180deg, #3A5A9A, #2A4578); color: #fff; border: 1px solid rgba(232,185,49,.45); }
.cw-btn--ghost { background: #fff; color: var(--cw-indigo); border: 1.5px solid rgba(42,69,120,.2); }
.cw-btn--ghost { display: none; }
.cw-burger {
  width: 42px; height: 42px; border: 1px solid var(--cw-line); background: #fff;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer;
}
.cw-burger span { display: block; height: 2px; background: var(--cw-navy); }
.cw-mobile-nav {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .5rem 1rem 1rem; border-top: 1px solid var(--cw-line); background: #fff;
}
.cw-mobile-nav a { text-decoration: none; color: var(--cw-ink); font-weight: 700; padding: .65rem .4rem; }
.cw-main { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.cw-bc { font-size: .82rem; font-weight: 700; color: var(--cw-muted); margin-bottom: .75rem; }
.cw-bc a { text-decoration: none; }
.cw-hub-hero h1, .cw-tool-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .5rem; letter-spacing: -.02em; }
.cw-lead { color: #475569; font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.1rem; max-width: 62ch; }
.cw-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #B45309; }
.cw-hub-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.5rem; }
.cw-hub-filters button {
  border: 1.5px solid var(--cw-line); background: #fff; font-family: inherit; font-weight: 700;
  padding: .45rem .75rem; cursor: pointer; color: #334155;
}
.cw-hub-filters button.is-on { background: var(--cw-navy); color: #fff; border-color: var(--cw-navy); }
.cw-cat { margin: 1.5rem 0 2rem; }
.cw-cat h2 { font-size: 1.15rem; margin: 0 0 .85rem; color: var(--cw-navy); }
.cw-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cw-grid--sm { grid-template-columns: 1fr 1fr; }
.cw-card {
  background: #fff; border: 1.5px solid var(--cw-line); padding: 1rem 1.05rem; text-decoration: none; color: inherit;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
  transition: transform .15s ease, border-color .15s ease;
}
.cw-card:hover { transform: translateY(-2px); border-color: rgba(232,185,49,.55); }
.cw-card i { color: #B45309; margin-bottom: .45rem; display: inline-block; }
.cw-card strong { display: block; color: var(--cw-navy); margin-bottom: .3rem; }
.cw-card span { color: var(--cw-muted); font-size: .9rem; line-height: 1.4; }
.cw-tool-panel, .cw-tool-result, .cw-rate, .cw-seo-copy {
  background: #fff; border: 1.5px solid var(--cw-line); padding: 1rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
.cw-tool-panel { margin-top: 1rem; }
.cw-tool-result { margin-top: .85rem; display: none; }
.cw-tool-result.is-on { display: block; }
.cw-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.cw-field label { font-weight: 800; font-size: .82rem; color: #334155; }
.cw-field input, .cw-field select, .cw-field textarea {
  border: 1.5px solid var(--cw-line); padding: .75rem .85rem; font: inherit; width: 100%;
  background: #fbfcff;
}
.cw-field-row { display: grid; gap: .65rem; }
.cw-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.cw-muted { color: var(--cw-muted); font-size: .92rem; }
.cw-ok { color: #047857; font-weight: 800; }
.cw-bad { color: #b91c1c; font-weight: 800; }
.cw-pre {
  background: #0F1B3D; color: #e2e8f0; padding: .85rem; overflow: auto;
  font-size: .82rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.cw-rate, .cw-seo-copy, .cw-related, .cw-cta-band { margin-top: 1.5rem; }
.cw-rate h2, .cw-seo-copy h2, .cw-related h2, .cw-cta-band h2 { margin-top: 0; }
.cw-rate {
  padding: 0 !important;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #f7f9fc 55%, #eef2f8 100%);
}
.cw-rate__grid {
  display: grid;
  gap: 0;
}
@media (min-width: 720px) {
  .cw-rate__grid { grid-template-columns: minmax(180px, 240px) 1fr; }
}
.cw-rate__score {
  background: linear-gradient(160deg, #0F1B3D 0%, #1a2f5c 50%, #2A4578 100%);
  color: #fff;
  padding: 1.35rem 1.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  position: relative;
}
.cw-rate__score::after {
  content: "";
  position: absolute; inset: auto 12% 0 12%; height: 3px;
  background: linear-gradient(90deg, transparent, #E8B931, transparent);
}
.cw-rate__eyebrow {
  margin: 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: rgba(253,230,138,.85);
}
.cw-rate__avg { display: flex; align-items: baseline; gap: .35rem; line-height: 1; }
.cw-rate__avg-num { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.cw-rate__avg-max { font-size: 1.1rem; opacity: .7; font-weight: 700; }
.cw-rate__avg-stars { display: flex; gap: .15rem; font-size: 1.15rem; color: rgba(255,255,255,.28); }
.cw-rate__avg-stars .is-on { color: #E8B931; text-shadow: 0 0 12px rgba(232,185,49,.45); }
.cw-rate__count { margin: .25rem 0 0; font-size: .88rem; opacity: .8; font-weight: 600; }
.cw-rate__form { padding: 1.25rem 1.2rem 1.35rem; }
.cw-rate__form h2 { font-size: 1.2rem; color: var(--cw-navy); margin: 0 0 .35rem; }
.cw-rate__pick-label {
  margin: .85rem 0 .35rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #B45309; min-height: 1.1em;
}
.cw-star-pick { display: flex; gap: .35rem; margin: 0 0 1rem; }
.cw-star-pick button {
  border: 1.5px solid var(--cw-line); background: #fff;
  width: 48px; height: 48px; font-size: 1.45rem; color: #cbd5e1; cursor: pointer; line-height: 1;
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cw-star-pick button:hover { transform: translateY(-3px) scale(1.05); }
.cw-star-pick button.is-on, .cw-star-pick button.is-hover {
  color: #E8B931; border-color: rgba(232,185,49,.65);
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  box-shadow: 0 8px 18px rgba(232,185,49,.22);
}
.cw-star-pick button.is-on { animation: cwStarPop .28s ease; }
@keyframes cwStarPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.cw-rate__ta-label {
  display: block; font-weight: 800; font-size: .82rem; color: #334155; margin-bottom: .35rem;
}
.cw-rate__ta-label span { font-weight: 600; color: var(--cw-muted); }
.cw-rate__form textarea {
  border: 1.5px solid var(--cw-line); padding: .85rem 1rem; font: inherit; width: 100%;
  background: #fff; resize: vertical; min-height: 88px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cw-rate__form textarea:focus {
  outline: 0; border-color: rgba(42,69,120,.45);
  box-shadow: 0 0 0 3px rgba(42,69,120,.12);
}
.cw-rate__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: .85rem;
}
.cw-rate-msg { margin: 0; font-weight: 700; font-size: .9rem; color: var(--cw-muted); }
.cw-rate-msg.is-ok { color: #047857; }
.cw-rate-msg.is-err { color: #b91c1c; }
.cw-rate.is-sent .cw-rate__form {
  position: relative;
}
.cw-rate.is-sent .cw-rate__form::before {
  content: "Obrigado pela avaliação!";
  display: block; margin-bottom: .75rem; padding: .75rem 1rem;
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #6ee7b7; color: #065f46; font-weight: 800;
  animation: cwGeoIn .4s ease both;
}
.cw-comments {
  border-top: 1px solid var(--cw-line); padding: 1.1rem 1.2rem 1.25rem;
  background: rgba(255,255,255,.65);
}
.cw-comments__title {
  margin: 0 0 .85rem; font-size: .95rem; color: var(--cw-navy);
}
.cw-comments__item {
  border: 1.5px solid var(--cw-line); background: #fff; margin: 0 0 .65rem;
  padding: .85rem 1rem; border-left: 3px solid #E8B931;
}
.cw-comments__item:last-child { margin-bottom: 0; }
.cw-comments__head {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem;
}
.cw-mini-stars { color: #E8B931; letter-spacing: .05em; font-size: .95rem; }
.cw-comments cite { font-style: normal; color: var(--cw-muted); font-size: .78rem; font-weight: 700; }
.cw-comments__item p { margin: 0; color: #334155; line-height: 1.45; }
.cw-cta-band {
  background: linear-gradient(120deg, #fff, #eef2ff);
  border: 1.5px solid var(--cw-line); padding: 1.2rem;
}
.cw-cta-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.cw-footer {
  border-top: 1px solid var(--cw-line); background: #0b1220; color: #94a3b8;
  padding: 1.25rem 1rem; font-size: .85rem;
}
.cw-footer__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.cw-footer a { color: #e2e8f0; text-decoration: none; }
@media (min-width: 760px) {
  .cw-nav { display: flex; }
  .cw-btn--ghost { display: inline-flex; }
  .cw-burger { display: none; }
  .cw-grid { grid-template-columns: 1fr 1fr; }
  .cw-field-row { grid-template-columns: 1fr 140px; }
  .cw-tool-panel, .cw-tool-result, .cw-rate, .cw-seo-copy { padding: 1.25rem 1.35rem; }
}
@media (min-width: 1000px) {
  .cw-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* —— GeoIP premium —— */
.cw-geo {
  display: grid;
  gap: 1rem;
}
.cw-geo__hero-ip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #0F1B3D 0%, #1e3a5f 55%, #2A4578 100%);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: cwGeoIn .55s ease both;
}
.cw-geo__hero-ip .cw-geo__label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 800;
  width: 100%;
}
.cw-geo__ip {
  font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.cw-geo__copy {
  border: 1px solid rgba(232,185,49,.45); background: rgba(255,255,255,.08);
  color: #fff; font: inherit; font-weight: 800; padding: .45rem .8rem; cursor: pointer;
}
.cw-geo__copy:hover { background: rgba(232,185,49,.2); }
.cw-geo__badge {
  font-size: .75rem; font-weight: 800; padding: .3rem .55rem;
  background: rgba(232,185,49,.2); color: #FDE68A; border: 1px solid rgba(232,185,49,.35);
}
.cw-geo__grid {
  display: grid; gap: .65rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) {
  .cw-geo__grid { grid-template-columns: repeat(3, 1fr); }
}
.cw-geo__card {
  background: #fff; border: 1.5px solid var(--cw-line); padding: .85rem .9rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  animation: cwGeoIn .5s ease both;
  transition: transform .2s ease, border-color .2s ease;
}
.cw-geo__card:hover { transform: translateY(-2px); border-color: rgba(232,185,49,.5); }
.cw-geo__card:nth-child(1) { animation-delay: .05s; }
.cw-geo__card:nth-child(2) { animation-delay: .1s; }
.cw-geo__card:nth-child(3) { animation-delay: .15s; }
.cw-geo__card:nth-child(4) { animation-delay: .2s; }
.cw-geo__card:nth-child(5) { animation-delay: .25s; }
.cw-geo__card:nth-child(6) { animation-delay: .3s; }
.cw-geo__card small {
  display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800; color: var(--cw-muted); margin-bottom: .25rem;
}
.cw-geo__card strong {
  display: block; font-size: .98rem; color: var(--cw-navy); line-height: 1.35; word-break: break-word;
}
.cw-geo__map-wrap {
  position: relative; height: min(320px, 55vw); min-height: 220px;
  border: 1.5px solid var(--cw-line); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  animation: cwGeoIn .6s .15s ease both;
  background: #dbe4f0;
}
.cw-geo__map-wrap #cwGeoMap { width: 100%; height: 100%; }
.cw-geo__lookup {
  display: grid; gap: .65rem; margin-top: .25rem;
}
@media (min-width: 640px) {
  .cw-geo__lookup { grid-template-columns: 1fr auto; align-items: end; }
}
.cw-geo__pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: cwPulse 1.6s infinite; margin-right: .4rem; vertical-align: middle;
}
@keyframes cwGeoIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cwPulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.cw-tool-result.cw-geo-result {
  background: transparent; border: 0; box-shadow: none; clip-path: none; padding: 0;
}
.cw-tool-result.cw-geo-result.is-on { display: block; }

/* —— Resultados premium (portas / DNS / SSL / e-mail) —— */
.cw-tool-result.cw-pro-result {
  background: transparent; border: 0; box-shadow: none; clip-path: none; padding: 0;
}
.cw-pro { display: grid; gap: .85rem; }
.cw-pro__status {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1.15rem 1.25rem; color: #fff;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: cwGeoIn .45s ease both;
}
.cw-pro__status--ok { background: linear-gradient(135deg, #065f46, #047857 60%, #059669); }
.cw-pro__status--bad { background: linear-gradient(135deg, #7f1d1d, #b91c1c 55%, #dc2626); }
.cw-pro__status--warn { background: linear-gradient(135deg, #92400e, #b45309 55%, #d97706); }
.cw-pro__status--info { background: linear-gradient(135deg, #0F1B3D, #1e3a5f 55%, #2A4578); }
.cw-pro__status-title { font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.cw-pro__status-sub { opacity: .88; font-weight: 600; font-size: .92rem; width: 100%; margin: 0; }
.cw-pro__meter {
  width: 100%; height: 8px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; margin-top: .35rem;
}
.cw-pro__meter > i { display: block; height: 100%; background: #E8B931; border-radius: 99px; transition: width .6s ease; }
.cw-pro__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cw-pro__chip {
  border: 1.5px solid var(--cw-line); background: #fff; font: inherit; font-weight: 700;
  font-size: .78rem; padding: .4rem .65rem; cursor: pointer; color: #334155;
}
.cw-pro__chip:hover, .cw-pro__chip.is-on { border-color: var(--cw-navy); background: var(--cw-navy); color: #fff; }
.cw-pro__recs { display: grid; gap: .5rem; }
.cw-pro__rec {
  background: #0F1B3D; color: #e2e8f0; padding: .75rem .9rem; font-size: .86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  animation: cwGeoIn .4s ease both; word-break: break-word;
}
.cw-pro__hint {
  background: #fff; border: 1.5px solid var(--cw-line); padding: .85rem 1rem; font-size: .9rem; color: #475569;
  animation: cwGeoIn .5s ease both;
}

/* Blacklist / redirects */
.cw-bl-list { display: grid; gap: .45rem; }
.cw-bl-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  background: #fff; border: 1.5px solid var(--cw-line); padding: .7rem .85rem;
  animation: cwGeoIn .35s ease both;
}
.cw-bl-row:nth-child(1) { animation-delay: .03s; }
.cw-bl-row:nth-child(2) { animation-delay: .06s; }
.cw-bl-row:nth-child(3) { animation-delay: .09s; }
.cw-bl-row:nth-child(4) { animation-delay: .12s; }
.cw-bl-row:nth-child(5) { animation-delay: .15s; }
.cw-bl-row:nth-child(6) { animation-delay: .18s; }
.cw-bl-row:nth-child(7) { animation-delay: .21s; }
.cw-bl-row:nth-child(8) { animation-delay: .24s; }
.cw-bl-row:nth-child(9) { animation-delay: .27s; }
.cw-bl-row:nth-child(10) { animation-delay: .3s; }
.cw-bl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.cw-bl-dot--ok { background: #10b981; }
.cw-bl-dot--bad { background: #ef4444; animation: cwPulse 1.2s infinite; }
.cw-bl-dot--err { background: #94a3b8; }
.cw-bl-name { font-weight: 800; color: var(--cw-navy); font-size: .92rem; }
.cw-bl-zone { display: block; font-size: .72rem; color: var(--cw-muted); font-weight: 600; margin-top: .1rem; }
.cw-bl-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .5rem; border: 1px solid transparent;
}
.cw-bl-badge--ok { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.cw-bl-badge--bad { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.cw-bl-badge--err { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }
.cw-redir-step {
  display: grid; gap: .25rem; padding: .75rem .9rem; background: #fff; border: 1.5px solid var(--cw-line);
  border-left: 3px solid #2A4578; animation: cwGeoIn .35s ease both;
}
.cw-redir-step + .cw-redir-step { margin-top: .4rem; }
.cw-redir-code { font-weight: 800; color: #B45309; }

/* Code output friendly */
.cw-code {
  background: #0F1B3D;
  color: #e2e8f0;
  overflow: hidden;
  animation: cwGeoIn .4s ease both;
  border: 1px solid rgba(232,185,49,.25);
}
.cw-code__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .85rem; background: rgba(255,255,255,.06);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #FDE68A;
}
.cw-code__copy {
  border: 1px solid rgba(232,185,49,.45); background: rgba(255,255,255,.08);
  color: #fff; font: inherit; font-weight: 800; font-size: .78rem; padding: .35rem .7rem; cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.cw-code__copy:hover { background: rgba(232,185,49,.2); }
.cw-code__body {
  margin: 0; padding: .9rem 1rem 1.1rem; overflow: auto;
  font-size: .86rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

