/* ═══════════════════════════════════════════════
   TEMAS — Dark (padrão) e Light
═══════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
  --bg:       #0a0d14;
  --surface:  #111520;
  --surface2: #171d2e;
  --border:   #1f2d45;
  --text:     #eef0f7;
  --muted:    #5a6a85;
  --shadow:   rgba(0,0,0,0.4);
  --grid-line: rgba(76,201,240,0.02);
  --score-ring-bg: #1f2d45;
  --header-bg: rgba(10,13,20,0.85);
  --footer-bg: rgba(10,13,20,0.7);
  --search-bg: #111520;
  --accent:  #f72585;
  --accent2: #7209b7;
  --accent3: #4cc9f0;
  --green:   #06d6a0;
  --warn:    #ffd166;
  --danger:  #ef233c;
  --safe:    #06d6a0;
  --pix:     #32bcad;
  --radial1: rgba(247,37,133,0.07);
  --radial2: rgba(114,9,183,0.07);
}

[data-theme="light"] {
  --bg:       #f4f6fb;
  --surface:  #ffffff;
  --surface2: #eef1f8;
  --border:   #dde3f0;
  --text:     #0f1624;
  --muted:    #3d4f6e;
  --shadow:   rgba(0,0,0,0.08);
  --grid-line: rgba(114,9,183,0.04);
  --score-ring-bg: #dde3f0;
  --header-bg: rgba(244,246,251,0.92);
  --footer-bg: rgba(244,246,251,0.95);
  --search-bg: #ffffff;
  --accent:  #d90166;
  --accent2: #6200b3;
  --accent3: #0ea5d0;
  --green:   #059669;
  --warn:    #d97706;
  --danger:  #dc2626;
  --safe:    #059669;
  --pix:     #0d9488;
  --radial1: rgba(209,1,102,0.05);
  --radial2: rgba(98,0,179,0.04);
}

/* Light theme — reforço de legibilidade */
[data-theme="light"] body { color: #0f1624; }
[data-theme="light"] .hero-sub,
[data-theme="light"] .hero-question,
[data-theme="light"] .score-summary,
[data-theme="light"] .metric-desc,
[data-theme="light"] .metric-name,
[data-theme="light"] .reco-title,
[data-theme="light"] .disclaimer,
[data-theme="light"] .loading-sub,
[data-theme="light"] .pix-subtitle,
[data-theme="light"] .pix-thanks,
[data-theme="light"] .modal-body,
[data-theme="light"] .modal-footer-txt,
[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-bottom,
[data-theme="light"] .usage-text { color: #253450; }

/* Textos de apoio adicionais no tema claro */
[data-theme="light"] h1 .word-ou   { color: #3d4f6e; }
[data-theme="light"] .hero-eyebrow { color: #0a7fa8; border-color: rgba(10,127,168,0.3); background: rgba(10,127,168,0.06); }
[data-theme="light"] .example-tag  { color: #253450; }

[data-theme="light"] .logo-domain,
[data-theme="light"] .score-sublabel { color: #4a5e82; }

[data-theme="light"] .search-box { color: #0f1624; }
[data-theme="light"] .search-box::placeholder { color: #6677a0; }

[data-theme="light"] .example-tag { color: #4a5a80; border-color: #c8d4e8; }
[data-theme="light"] .example-tag:hover { color: var(--accent); border-color: var(--accent); }

[data-theme="light"] .metric-value { color: #0f1624; }
[data-theme="light"] .reco-item    { color: #1a2840; }
[data-theme="light"] .score-domain { color: #0f1624; }

[data-theme="light"] .loading-label { color: var(--accent); }

[data-theme="light"] .pill-free { color: #047857; border-color: rgba(5,150,105,0.4); background: rgba(5,150,105,0.08); }
[data-theme="light"] .theme-toggle { background: #e8edf8; border-color: #c8d4e8; color: #3a4a65; }
[data-theme="light"] .btn-donate   { color: #fff; border-color: #0d9488; background: linear-gradient(135deg, #0d9488, #0a7a6e); box-shadow: 0 3px 12px rgba(13,148,136,0.3); }
[data-theme="light"] .btn-donate svg { fill: #fff; }

[data-theme="light"] .social-btn { color: #4a5a80; background: #f0f3fa; border-color: #c8d4e8; }
[data-theme="light"] .social-btn:hover { color: var(--accent); }

[data-theme="light"] .pix-key-text { color: #0f1624; }
[data-theme="light"] .modal-title  { color: var(--danger); }
[data-theme="light"] .modal-counter-date { color: #0f1624; }

/* ═══════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh; overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, var(--radial1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--radial2) 0%, transparent 50%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
header {
  position: relative; z-index: 20;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg); backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 0 16px rgba(247,37,133,0.3); }
.logo-text { line-height: 1; }
.logo-name { font-family: 'Unbounded', sans-serif; font-size: 0.9rem; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.logo-name .slash { color: var(--accent); }
.logo-domain { font-family: 'Space Mono', monospace; font-size: 0.55rem; color: var(--muted); letter-spacing: 0.05em; margin-top: 2px; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  min-width: 0;
}

/* Linha 1: contador + gratuito + tema (desktop)
   No mobile: contador + gratuito ficam numa sub-linha, tema em outra */
.header-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pill-free {
  font-family: 'Space Mono', monospace; font-size: 0.55rem;
  color: var(--green); border: 1px solid rgba(6,214,160,0.4);
  background: rgba(6,214,160,0.06); padding: 4px 9px;
  border-radius: 20px; letter-spacing: 0.06em; white-space: nowrap;
}

/* ── Alternador de tema ── */
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted); font-size: 0.85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-dark  { display: block; }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark  { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: block; }

/* Mobile: tema quebra para linha própria, mas fica só com o ícone */
@media (max-width: 539px) {
  .header-pills {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100vw - 150px);
  }
  .theme-toggle {
    order: 10;
    /* mantém tamanho de ícone — sem texto, sem expansão */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-self: flex-end;
  }
}

/* ── Botão doação ── */
.btn-donate {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Space Mono', monospace; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff;
  border: 1px solid var(--pix);
  background: linear-gradient(135deg, #32bcad, #0d9488);
  padding: 5px 11px; border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap; align-self: flex-end;
  box-shadow: 0 3px 12px rgba(50,188,173,0.35);
}
.btn-donate:hover { opacity: 0.88; transform: scale(1.04); box-shadow: 0 4px 18px rgba(50,188,173,0.5); }
.btn-donate svg { width: 10px; height: 10px; fill: #fff; flex-shrink: 0; }

/* ── Usage counter ── */
.usage-counter { display: none; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; transition: background 0.3s; }
.usage-counter.show { display: flex; }
.usage-dots { display: flex; gap: 3px; }
.usage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.usage-dot.used { background: var(--accent3); }
.usage-dot.used.last { background: var(--warn); }
.usage-dot.used.full { background: var(--danger); }
.usage-text { font-size: 0.62rem; color: var(--text); }

/* ═══════════════════════════════════════════════
   MAIN / HERO
═══════════════════════════════════════════════ */
main { position: relative; z-index: 10; max-width: 880px; margin: 0 auto; padding: 60px 24px 60px; }
.hero { text-align: center; margin-bottom: 44px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--accent3); letter-spacing: 0.2em; text-transform: uppercase; background: rgba(76,201,240,0.06); border: 1px solid rgba(76,201,240,0.2); padding: 5px 16px; border-radius: 20px; margin-bottom: 22px; }
.hero-eyebrow::before { content: '●'; font-size: 0.5rem; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
h1 { font-family: 'Unbounded', sans-serif; font-size: clamp(1.9rem,5.5vw,3.8rem); font-weight: 900; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 6px; }
h1 .word-fraude { color: var(--accent); }
h1 .word-ou     { color: var(--muted); font-weight: 400; font-size: 0.75em; }
h1 .word-nao    { background: linear-gradient(90deg, var(--accent3), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-question  { font-family: 'Space Mono', monospace; font-size: clamp(0.72rem,1.5vw,0.92rem); color: var(--muted); margin-bottom: 24px; letter-spacing: 0.04em; }
.hero-question span { color: var(--accent); }
.hero-sub { font-size: 0.95rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   SEARCH — Desktop: tudo numa linha
               Mobile: input + clear em cima,
                       botão verificar abaixo
═══════════════════════════════════════════════ */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Linha superior: ícone + input + botão limpar */
.search-row {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box {
  width: 100%;
  background: var(--search-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 48px 16px 52px;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem; color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.3s;
}
.search-box::placeholder { color: var(--muted); }
.search-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,37,133,0.12); }
.search-box:disabled { opacity: 0.35; cursor: not-allowed; }

.search-ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; pointer-events: none; z-index: 1; }

.btn-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; padding: 6px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s; line-height: 1;
}
.btn-clear:hover { color: var(--text); background: rgba(127,127,127,0.1); }
.btn-clear.show { display: flex; }

/* Botão verificar — linha própria no mobile */
.btn-verify {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; border: none; border-radius: 14px;
  padding: 15px 22px; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(247,37,133,0.28);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-verify:hover  { opacity: 0.88; transform: scale(1.01); }
.btn-verify:active { transform: scale(0.99); }
.btn-verify:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Desktop: btn-verify fica dentro da row */
@media (min-width: 540px) {
  .search-wrap { display: block; position: relative; }
  .search-row  { display: block; }
  .search-box  { padding: 18px 52px 18px 56px; border-radius: 16px; padding-right: 186px; }
  .btn-clear   { right: 168px; }
  .btn-verify  {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: auto; border-radius: 11px; padding: 11px 22px; font-size: 0.72rem;
  }
  .btn-verify:hover  { opacity: 0.88; transform: translateY(-50%) scale(1.02); }
  .btn-verify:active { transform: translateY(-50%) scale(0.99); }
  .btn-verify:disabled { transform: translateY(-50%); }
}

/* ── EXEMPLOS ── */
.examples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.example-tag { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.example-tag:hover { color: var(--accent); border-color: var(--accent); background: rgba(247,37,133,0.04); }
.example-tag:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── ERROS ── */
.error-wrap { display: none; background: rgba(239,35,60,0.07); border: 1px solid rgba(239,35,60,0.3); border-radius: 14px; padding: 16px 20px; text-align: center; color: var(--danger); font-family: 'Space Mono', monospace; font-size: 0.8rem; margin-bottom: 18px; }
.error-wrap.show { display: block; }

/* ── LOADING ── */
.loading-wrap { display: none; flex-direction: column; align-items: center; gap: 20px; padding: 56px 0; text-align: center; }
.loading-wrap.show { display: flex; }
.scan-anim  { width: 80px; height: 80px; position: relative; display: flex; align-items: center; justify-content: center; }
.scan-ring  { position: absolute; width: 80px; height: 80px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent);  animation: spin 1s linear infinite; }
.scan-ring2 { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent2); animation: spin 0.65s linear infinite reverse; }
.scan-ring3 { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent3); animation: spin 1.3s linear infinite; }
.scan-dot   { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 8px var(--accent); }
@keyframes spin  { to{transform:rotate(360deg)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.loading-label { font-family: 'Unbounded', sans-serif; font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.14em; }
.loading-sub   { font-family: 'Space Mono', monospace; font-size: 0.74rem; color: var(--muted); }
.progress-bar  { width: min(280px, 80vw); height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3)); border-radius: 2px; transition: width 0.45s ease; }

/* ── RESULTS ── */
.results-wrap { display: none; }
.results-wrap.show { display: block; animation: fadeUp 0.45s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

.score-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 28px; margin-bottom: 18px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; transition: background 0.3s, border-color 0.3s; }
.score-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--radial1), transparent 70%); pointer-events: none; }
.score-ring-wrap { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.score-sublabel { font-family: 'Space Mono', monospace; font-size: 0.52rem; color: var(--muted); margin-top: 3px; }
.score-info { flex: 1; min-width: 180px; }
.score-domain  { font-family: 'Unbounded', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; word-break: break-all; letter-spacing: -0.02em; }
.score-verdict { display: inline-flex; align-items: center; gap: 7px; font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.verdict-safe   { background: rgba(6,214,160,.1);   color: var(--safe);   border: 1px solid rgba(6,214,160,.35); }
.verdict-warn   { background: rgba(255,209,102,.1); color: var(--warn);   border: 1px solid rgba(255,209,102,.35); }
.verdict-danger { background: rgba(239,35,60,.1);   color: var(--danger); border: 1px solid rgba(239,35,60,.35); }
.score-summary  { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 18px; transition: border-color 0.2s, transform 0.2s, background 0.3s; animation: fadeUp 0.5s ease forwards; opacity: 0; }
.metric-card:hover { border-color: rgba(247,37,133,0.3); transform: translateY(-2px); }
.metric-card:nth-child(1){animation-delay:.04s} .metric-card:nth-child(2){animation-delay:.08s}
.metric-card:nth-child(3){animation-delay:.12s} .metric-card:nth-child(4){animation-delay:.16s}
.metric-card:nth-child(5){animation-delay:.20s} .metric-card:nth-child(6){animation-delay:.24s}
.metric-card:nth-child(7){animation-delay:.28s} .metric-card:nth-child(8){animation-delay:.32s}
.metric-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.metric-title-row { display: flex; align-items: center; gap: 7px; }
.metric-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; background: rgba(247,37,133,0.07); }
.metric-name { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.metric-badge { font-family: 'Space Mono', monospace; font-size: 0.58rem; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.badge-safe   { background: rgba(6,214,160,.1);   color: var(--safe); }
.badge-warn   { background: rgba(255,209,102,.1); color: var(--warn); }
.badge-danger { background: rgba(239,35,60,.1);   color: var(--danger); }
.metric-value { font-size: 1rem; font-weight: 700; margin-bottom: 5px; word-break: break-word; }
.metric-desc  { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); line-height: 1.55; }

.reco-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; animation: fadeUp 0.5s ease 0.36s forwards; opacity: 0; transition: background 0.3s; }
.reco-title { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.reco-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.reco-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.reco-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; line-height: 1.55; }
.reco-dot  { width: 18px; height: 18px; border-radius: 50%; font-size: 0.62rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.reco-dot.ok   { background: rgba(6,214,160,.15);   color: var(--safe); }
.reco-dot.warn { background: rgba(255,209,102,.15); color: var(--warn); }
.reco-dot.bad  { background: rgba(239,35,60,.15);   color: var(--danger); }

.ads-wrap   { margin-bottom: 16px; text-align: center; animation: fadeUp 0.5s ease 0.42s forwards; opacity: 0; }
.disclaimer { text-align: center; font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--muted); margin-top: 8px; line-height: 1.8; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer { position: relative; z-index: 10; border-top: 1px solid var(--border); background: var(--footer-bg); backdrop-filter: blur(16px); padding: 36px 24px 28px; transition: background 0.3s; }
.footer-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo  { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.footer-logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.footer-logo-name { font-family: 'Unbounded', sans-serif; font-size: 0.85rem; font-weight: 900; letter-spacing: -0.02em; }
.footer-logo-name .slash { color: var(--accent); }
.footer-tagline { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--muted); text-align: center; }
.social-links { display: flex; gap: 10px; align-items: center; }
.social-btn { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s, transform 0.2s, background 0.2s; color: var(--muted); }
.social-btn:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(247,37,133,0.08); color: var(--text); }
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { width: 100%; display: flex; align-items: center; justify-content: center; padding-top: 18px; border-top: 1px solid var(--border); font-family: 'Space Mono', monospace; font-size: 0.58rem; color: var(--muted); text-align: center; line-height: 1.8; }

/* ═══════════════════════════════════════════════
   MODAIS
═══════════════════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(10,13,20,0.88); backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.show { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes popIn   { from{opacity:0;transform:scale(.85)} to{opacity:1;transform:scale(1)} }
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }

.modal-box { background: var(--surface); border: 1.5px solid rgba(239,35,60,0.35); border-radius: 24px; padding: 44px 36px; max-width: 460px; width: 100%; text-align: center; animation: popIn .4s cubic-bezier(.34,1.56,.64,1); position: relative; overflow: hidden; }
.modal-box::before { content: ''; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(239,35,60,0.07), transparent 70%); pointer-events: none; }
.modal-emoji { font-size: 3.5rem; display: block; margin-bottom: 18px; animation: shake 0.5s ease 0.4s both; }
@keyframes shake { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-12deg)} 40%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(8deg)} }
.modal-title { font-family: 'Unbounded', sans-serif; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--danger); margin-bottom: 12px; }
.modal-body  { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.modal-body strong { color: var(--text); }
.modal-counter { display: inline-flex; flex-direction: column; align-items: center; background: rgba(239,35,60,0.07); border: 1px solid rgba(239,35,60,0.25); border-radius: 14px; padding: 14px 32px; margin-bottom: 18px; }
.modal-counter-label { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 4px; }
.modal-counter-date  { font-family: 'Unbounded', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.modal-footer-txt { font-family: 'Space Mono', monospace; font-size: 0.66rem; color: var(--muted); line-height: 1.7; }

/* ── Modal PIX ── */
.pix-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 110;
  background: rgba(10,13,20,0.92); backdrop-filter: blur(12px);
  align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 540px) { .pix-modal-overlay { align-items: center; padding: 16px; } }
.pix-modal-overlay.show { display: flex; animation: fadeIn .3s ease; }

.pix-modal-box {
  background: var(--surface);
  border: 1.5px solid rgba(50,188,173,0.35);
  border-radius: 24px 24px 0 0;
  padding: 48px 20px 32px; width: 100%; max-width: 100%;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  text-align: center; position: relative;
  animation: slideUp .35s cubic-bezier(.34,1.2,.64,1);
}
@media (min-width: 540px) {
  .pix-modal-box { border-radius: 24px; padding: 48px 36px 36px; max-width: 420px; animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }
}
.pix-modal-box::before { content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(50,188,173,0.07), transparent 70%); pointer-events: none; }
.pix-modal-box::after  { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; background: var(--border); border-radius: 2px; }
@media (min-width: 540px) { .pix-modal-box::after { display: none; } }

.pix-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; z-index: 2; }
.pix-close:hover { background: rgba(239,35,60,0.12); color: var(--danger); border-color: var(--danger); }
.pix-icon     { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.pix-title    { font-family: 'Unbounded', sans-serif; font-size: 1.15rem; font-weight: 900; letter-spacing: -0.03em; color: var(--pix); margin-bottom: 8px; }
.pix-subtitle { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.pix-subtitle strong { color: var(--text); }
.pix-qr-wrap  { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 16px; box-shadow: 0 0 24px rgba(50,188,173,0.2); }
.pix-qr-wrap img { width: min(170px,55vw); height: min(170px,55vw); display: block; border-radius: 4px; }
.pix-qr-label { font-family: 'Space Mono', monospace; font-size: 0.55rem; color: #aaa; letter-spacing: 0.08em; }
.pix-key-wrap { display: flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; cursor: pointer; transition: border-color 0.2s; }
.pix-key-wrap:hover { border-color: var(--pix); }
.pix-key-text { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; min-width: 0; }
.pix-copy-btn { font-family: 'Space Mono', monospace; font-size: 0.56rem; font-weight: 700; color: var(--pix); background: rgba(50,188,173,0.1); border: 1px solid rgba(50,188,173,0.3); border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0; }
.pix-copy-btn:hover { background: rgba(50,188,173,0.2); }
.pix-copy-btn.copied { color: var(--safe); border-color: var(--safe); background: rgba(6,214,160,0.1); }
.pix-thanks { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: var(--muted); line-height: 1.7; }
.pix-thanks strong { color: var(--pix); }

/* ═══════════════════════════════════════════════
   FLOATING BUTTONS
═══════════════════════════════════════════════ */
.fab-whatsapp { position: fixed; left: 20px; bottom: 24px; z-index: 50; width: 50px; height: 50px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; box-shadow: 0 4px 18px rgba(37,211,102,0.45); transition: transform 0.2s, box-shadow 0.2s; animation: fabIn 0.5s cubic-bezier(.34,1.56,.64,1) 1s both; }
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(37,211,102,0.6); }
.fab-whatsapp svg { width: 24px; height: 24px; fill: #fff; }
.fab-top { position: fixed; right: 20px; bottom: 24px; z-index: 50; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: #fff; box-shadow: 0 4px 18px rgba(247,37,133,0.4); transition: transform 0.2s, opacity 0.3s; opacity: 0; pointer-events: none; }
.fab-top.visible { opacity: 1; pointer-events: all; }
.fab-top:hover   { transform: scale(1.1) translateY(-2px); }
.fab-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes fabIn { from{opacity:0;transform:scale(0.5)} to{opacity:1;transform:scale(1)} }

/* ═══════════════════════════════════════════════
   RESPONSIVE — extra small
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .logo-domain { display: none; }
  .score-card  { flex-direction: column; align-items: flex-start; gap: 16px; }
  .modal-box   { padding: 32px 16px; }
  footer       { padding: 24px 16px 20px; }
}
@media (max-width: 340px) {
  .logo-name   { font-size: 0.78rem; }
  .pill-free   { display: none; }
  .btn-donate  { font-size: 0.5rem; padding: 4px 7px; }
}
