/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #0d0f14;
  --bg-card:   #161a23;
  --bg-header: #10131a;
  --accent:    #4f8ef7;
  --accent2:   #7c3aed;
  --text:      #e4e6ee;
  --text-muted:#8a8fa8;
  --border:    #1f2437;
  --radius:    12px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Previne overflow horizontal em qualquer elemento */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, table { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon { display:flex; align-items:center; }
.logo-svg  { width: 26px; height: 30px; display: block; filter: drop-shadow(0 1px 3px rgba(37,99,235,0.4)); }

.logo-text strong { color: var(--accent); }

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

/* Botão Planos no nav */
.btn-tool-nav {
  background: linear-gradient(135deg, #7c3aed, #4f8ef7);
  color: #fff; border: none; border-radius: 8px;
  padding: .4rem 1rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.btn-tool-nav:hover { opacity: .85; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1rem;
  gap: 0.75rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1a1f35 0%, var(--bg) 70%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary, a.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== FEATURES ===== */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== TOOL BUTTONS (hero tabs) ===== */
.btn-tool {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-tool:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-tool.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== TOOL PANELS ===== */
.tool-panel[hidden] { display: none !important; }

/* ===== SPEED TEST ===== */
.speed-info-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.speed-info-card {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
  max-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.si-icon  { font-size: 1.2rem; }
.si-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.si-val   { font-size: 0.78rem; font-weight: 600; color: var(--text); word-break: break-all; text-align: center; }

/* Pulsing start button */
.speed-start-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
}

.speed-start-btn {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, opacity 0.2s;
  animation: speedPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(79,142,247,0.35);
}

.speed-start-btn:hover {
  transform: scale(1.06);
  animation: none;
  box-shadow: 0 6px 32px rgba(79,142,247,0.5);
}

@keyframes speedPulse {
  0%   { box-shadow: 0 0 0 0   rgba(79,142,247,0.45); }
  70%  { box-shadow: 0 0 0 26px rgba(79,142,247,0);   }
  100% { box-shadow: 0 0 0 0   rgba(79,142,247,0);    }
}

.speed-hint { color: var(--text-muted); font-size: 0.9rem; }

/* Progress */
.speed-testing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.speed-progress-bar {
  width: 100%;
  max-width: 340px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.speed-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s ease;
  border-radius: 3px;
}

/* Results */
.speed-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 2rem;
}

.speed-metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.speed-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.speed-metric-icon { font-size: 2rem; }
.speed-metric-val  { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.speed-metric-unit { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.speed-metric-lbl  { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }

.speed-metric.download .speed-metric-val { color: #4ade80; }
.speed-metric.upload   .speed-metric-val { color: #60a5fa; }
.speed-metric.ping-m   .speed-metric-val { color: #facc15; }

/* Qualidade da conexão */
.speed-quality-card {
  margin-top: 1.5rem;
  background: var(--bg-card, #1a1d26);
  border: 1px solid var(--border, #2d3149);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 340px;
}
.speed-quality-label {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.speed-quality-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #8892b0);
  line-height: 1.4;
}

/* ===== SPY CHECKER ===== */
.spy-status-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.spy-card {
  flex: 1;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color 0.3s;
}

.spy-card.safe    { border-color: #22c55e; background: rgba(34,197,94,0.04); }
.spy-card.warning { border-color: #f59e0b; background: rgba(245,158,11,0.04); }
.spy-card.danger  { border-color: #ef4444; background: rgba(239,68,68,0.04); }

.spy-icon   { font-size: 2.5rem; }
.spy-label  { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spy-status { font-size: 1rem; font-weight: 600; }

.spy-badge { font-size: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }
.spy-badge.granted { background: rgba(245,158,11,0.15); color: #f59e0b; }
.spy-badge.denied  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.spy-badge.prompt  { background: rgba(100,116,139,0.15); color: #94a3b8; }

.spy-devices {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.spy-devices-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.spy-device-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.spy-device-item:last-child { border-bottom: none; }
.spy-device-icon { font-size: 1.15rem; }

.spy-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.spy-cam-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.spy-cam-preview video {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}

.spy-mic-monitor { margin-bottom: 1.25rem; }

.spy-mic-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.spy-mic-bar {
  width: 100%;
  max-width: 320px;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.spy-mic-level {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  border-radius: 6px;
  transition: width 0.08s;
}

.spy-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.partner-logo { font-size: 2.5rem; margin-bottom: 0.75rem; }
.partner-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.partner-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.partner-cta {
  text-align: center;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
}

.partner-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ===== VERIFICAR MÍDIA ===== */
.midia-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.midia-sec-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.midia-sec-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.midia-sec-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.midia-sec-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.midia-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
  outline: none;
}

.midia-textarea:focus { border-color: var(--accent); }

.midia-char-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 1rem;
}

.midia-loader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Garante que [hidden] não seja sobreposto por display:flex/block */
[hidden] { display: none !important; }

/* Fact-check result */
.fact-verdict-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.25rem 0;
  transition: border-color 0.3s, background 0.3s;
}

.fact-verdict-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fact-verdict-badge {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(100,116,139,0.15);
  color: var(--text-muted);
}

.fact-confidence-wrap { margin-bottom: 1rem; }

.fact-confidence-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.fact-confidence-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.fact-confidence-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.3s;
}

.fact-summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.fact-detail {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.fact-sources {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.fact-sources h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.fact-sources ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.fact-sources li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fact-sources a { color: var(--accent); text-decoration: none; }
.fact-sources a:hover { text-decoration: underline; }

/* Image detection tabs */
.midia-img-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.midia-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.midia-tab:hover { border-color: var(--accent); color: var(--text); }

.midia-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.midia-input-row {
  display: flex;
  gap: 0.75rem;
}

.midia-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.midia-input:focus { border-color: var(--accent); }

.midia-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.midia-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(79,142,247,0.05);
}

.midia-drop-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.midia-drop-hint { font-size: 0.8rem; margin-top: 0.4rem; }

.midia-drop-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}

/* Image result */
.img-result-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.img-preview {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-score-section {
  flex: 1;
  min-width: 200px;
}

.ai-score-bar-wrap { margin-bottom: 1rem; }

.ai-score-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ai-score-bar {
  width: 100%;
  height: 14px;
  background: var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.ai-score-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.7s ease, background 0.3s;
}

.ai-verdict-badge {
  display: inline-block;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
  margin-bottom: 0.75rem;
}

.ai-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== DETECTOR ESCOLAR ===== */
.det-panel { display: none; }
.det-panel.active { display: block; }

.det-ocr-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== ANTI-GOLPE ===== */

/* Tabs scrolláveis */
.ag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ag-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ag-tab:hover { border-color: var(--accent); color: var(--text); }

.ag-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Painéis internos */
.ag-panel { display: none; }
.ag-panel.active { display: block; }

.ag-panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.ag-char-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0.3rem 0 0.75rem;
}

.ag-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #ef4444;
  margin-top: 0.75rem;
}

/* Card de resultado */
.ag-result-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  transition: border-color 0.3s;
}

.ag-result-card.safe    { border-color: #22c55e; background: rgba(34,197,94,0.04); }
.ag-result-card.warning { border-color: #f59e0b; background: rgba(245,158,11,0.04); }
.ag-result-card.danger  { border-color: #ef4444; background: rgba(239,68,68,0.04); }

/* Verdict badge */
.ag-verdict-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ag-verdict-icon { font-size: 2rem; line-height: 1; }

.ag-verdict-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ag-verdict-badge.golpe    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.ag-verdict-badge.suspeito { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ag-verdict-badge.legitimo { background: rgba(34,197,94,0.15);  color: #22c55e; }

.ag-verdict-tipo {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Confiança */
.ag-confidence-wrap { margin: 0.75rem 0; }

.ag-confidence-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.ag-confidence-bar {
  width: 100%;
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ag-confidence-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Info grid (para CNPJ, Telefone, Pix) */
.ag-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ag-info-item {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.ag-info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ag-info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Lista de alertas / riscos */
.ag-risk-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.ag-risk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.ag-risk-item:last-child { border-bottom: none; }
.ag-risk-item::before { content: '•'; flex-shrink: 0; margin-top: 1px; }
.ag-risk-item.ok     { color: #22c55e; }
.ag-risk-item.warn   { color: #f59e0b; }
.ag-risk-item.danger { color: #ef4444; }

/* Texto de análise/orientação */
.ag-analise {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0.5rem 0;
}

.ag-oque-fazer {
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* QR Code */
.ag-qr-video {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
  display: block;
  margin: 0 auto;
}

/* Proteção de tela */
.protecao-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.protecao-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.protecao-card-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }

.protecao-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.protecao-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Toggle switch */
.protecao-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.protecao-toggle-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}

.protecao-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.protecao-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.protecao-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 28px;
  transition: background 0.25s;
  cursor: pointer;
}

.protecao-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.protecao-toggle input:checked + .protecao-slider { background: var(--accent); }
.protecao-toggle input:checked + .protecao-slider::before { transform: translateX(24px); }

/* Blur overlay quando inativo */
.ag-blur-active { filter: blur(12px); transition: filter 0.3s; }

/* PWA hint */
.ag-pwa-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Dicas list */
.ag-dicas-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ag-dicas-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.ag-dicas-list li:last-child { border-bottom: none; }
.ag-dicas-list li::before { content: '✅'; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }

  .hero { padding: 3.5rem 0 3rem; }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .ag-info-grid { grid-template-columns: 1fr; }

  /* ── Hero compacto para mobile ── */
  .hero { padding: 1.5rem 0 1rem; }
  .hero h1 { font-size: 1.4rem; margin-bottom: 0.6rem; }
  .hero p  { font-size: 0.88rem; margin-bottom: 1rem; padding: 0 0.5rem; }

  /* ── Botões de ferramentas: grade 2 colunas ── */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0 0.75rem;
    width: 100%;
  }
  .btn-tool {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  /* Ver Planos ocupa linha inteira */
  .btn-tool.btn-plans { grid-column: 1 / -1; text-align: center; justify-content: center; display: flex; }

  /* ── Header compacto ── */
  .header { padding: 0.55rem 0; }
  .logo-text { font-size: 0.95rem; }
  .user-greeting { display: none; }
  .btn-dashboard-hero { font-size: 0.75rem; padding: 0.32rem 0.75rem; }
  .btn-auth-login, .btn-auth-register { font-size: 0.75rem; padding: 0.3rem 0.65rem; }

  /* ── Conteúdo dos painéis ── */
  .sec-verify { padding-top: 1.25rem; }
  .tool-panel { padding-bottom: 1rem; }
  .sec-title { font-size: 1.3rem; }
  .sec-sub { font-size: 0.85rem; }

  /* ── Botões de ação largura total ── */
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* ── Anti-golpe tabs ── */
  .ag-tab { font-size: 0.72rem; padding: 0.38rem 0.6rem; }

  /* ── Speed test cards ── */
  .speed-info-card { flex: 1 1 calc(50% - 0.25rem); max-width: none; }
  .speed-metrics { gap: 1.25rem; }
  .speed-metric-val { font-size: 2rem; }

  /* ── Modais full-width no mobile ── */
  .modal-box { padding: 1.1rem; max-width: calc(100vw - 1rem); border-radius: 0.75rem; }
  .modal-box input, .modal-box textarea, .modal-box select {
    font-size: 16px; /* evita zoom no iOS */
  }

  /* ── Guardian posição mobile ── */
  .guardian { bottom: 20px; right: 12px; }
  .guardian-reopen { bottom: 20px; right: 12px; }
  .guardian-tip { right: 62px; width: calc(100vw - 100px); max-width: 220px; }
}

/* ════════════════════════════════════════════════════════════
   v04 — MONETIZAÇÃO
════════════════════════════════════════════════════════════ */

/* ── Auth Header ─────────────────────────────────────────── */
.header .container { flex-wrap: wrap; gap: 0.5rem; }
.header-auth, .header-user { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.btn-auth-login  { background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 0.35rem 0.85rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s; }
.btn-auth-login:hover  { background: rgba(79,142,247,0.1); }
.btn-auth-register { background: var(--accent); color: #fff;
  padding: 0.35rem 0.85rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer;
  border: none; transition: opacity 0.2s; }
.btn-auth-register:hover { opacity: 0.85; }
.user-greeting { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.btn-dashboard, .btn-logout {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 0.3rem 0.65rem; border-radius: 6px; font-size: 0.78rem; cursor: pointer;
  transition: border-color 0.2s; }
.btn-dashboard:hover { border-color: var(--accent); color: var(--accent); }
.btn-logout:hover    { border-color: #ef4444; color: #ef4444; }

/* Botão "Meu Painel" destacado no header */
.btn-dashboard-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 20px;
  padding: .42rem 1.1rem; font-size: .86rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 3px 12px rgba(79,142,247,.35);
  white-space: nowrap;
}
.btn-dashboard-hero:hover { opacity: .88; box-shadow: 0 4px 18px rgba(79,142,247,.5); transform: translateY(-1px); }

/* ── Botão Planos no hero ────────────────────────────────── */
.btn-plans {
  background: linear-gradient(135deg, #7c3aed, #4f8ef7) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* ── Modais ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--bg-card); border-radius: var(--radius); padding: 2rem;
  width: 100%; max-width: 440px; position: relative;
  max-height: 90vh; overflow-y: auto; border: 1px solid var(--border);
}
.modal-wide { max-width: 760px; }
.modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: none; border: none; font-size: 1.1rem; cursor: pointer;
  color: var(--text-muted); transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-box h3  { font-size: 1.25rem; margin-bottom: 1.25rem; }
.modal-box h4  { font-size: 1rem; margin-bottom: 0.75rem; }
.modal-box input {
  display: block; width: 100%; margin-bottom: 0.75rem;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 0.6rem 0.85rem; border-radius: 8px; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.modal-box input:focus { border-color: var(--accent); }
.btn-full { width: 100%; margin-top: 0.25rem; }
.modal-divider { text-align: center; color: var(--text-muted); margin: 1rem 0; font-size: 0.82rem; position: relative; }
.modal-divider::before, .modal-divider::after {
  content: ''; display: inline-block; width: 38%; height: 1px;
  background: var(--border); vertical-align: middle; margin: 0 0.5rem;
}
.modal-link  { text-align: center; font-size: 0.84rem; margin-top: 1rem; color: var(--text-muted); }
.modal-link a { color: var(--accent); text-decoration: none; }
.modal-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.85rem;
  margin-bottom: 0.75rem; }

/* ── Seletor de período ──────────────────────────────────── */
.period-selector { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.period-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  padding: 0.4rem 0.9rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.35rem;
}
.period-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,0.1); }
.period-badge { background: #22c55e; color: #fff; border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.7rem; }

/* ── Planos grid (v2 — visual redesign) ─────────────────── */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.75rem; align-items: start;
}
.plan-card {
  background: var(--bg-card); border-radius: 18px; padding: 1.75rem 1.4rem 1.5rem; text-align: center;
  border: 1px solid var(--border); position: relative; display: flex; flex-direction: column;
  transition: all 0.3s; overflow: hidden;
}
.plan-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border);
}
.plan-card:nth-child(1)::before { background: #64748b; }
.plan-card:nth-child(2)::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.plan-card:nth-child(3)::before { background: linear-gradient(90deg, #4f8ef7, #7c3aed); }
.plan-card:nth-child(4)::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.35); border-color: rgba(79,142,247,.4); }
.plan-featured {
  border-color: var(--accent); transform: translateY(-10px);
  background: linear-gradient(170deg, rgba(79,142,247,.1), rgba(124,58,237,.06));
  box-shadow: 0 8px 40px rgba(79,142,247,.2);
}
.plan-featured:hover { transform: translateY(-14px); box-shadow: 0 20px 60px rgba(79,142,247,.28); }
.plan-badge {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff; border-radius: 2rem; padding: .28rem 1.1rem;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(79,142,247,.45); letter-spacing: .04em;
}
.plan-icon { font-size: 2.2rem; margin: .75rem 0 .6rem; line-height: 1; }
.plan-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .35rem; }
.plan-desc { font-size: .78rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.45; min-height: 2.2rem; }
.plan-price { font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: .2rem; }
.plan-price span { font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.plan-price-zero { font-size: 2.4rem; font-weight: 900; color: var(--text-muted); line-height: 1; margin-bottom: .2rem; }
.plan-total { font-size: .78rem; color: var(--text-muted); margin-bottom: 1rem; min-height: 1.1rem; }
.plan-total.hidden { visibility: hidden; }
.plan-total s { opacity: .55; }
.plan-total strong { color: var(--accent); font-weight: 700; }
.plan-divider { height: 1px; background: var(--border); margin: .85rem 0 1rem; }
.plan-features { list-style: none; text-align: left; font-size: .84rem; flex: 1; margin-bottom: 1.25rem; }
.plan-features li {
  padding: .42rem 0; display: flex; align-items: center; gap: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.plan-features li:last-child { border-bottom: none; }
.plan-feat-icon { font-size: .85rem; flex-shrink: 0; }
.plan-feat-no { color: var(--text-muted); opacity: .5; text-decoration: line-through; }

/* ── PIX ─────────────────────────────────────────────────── */
#pixQrImg    { width: 200px; height: 200px; margin: 0 auto 0.5rem; display: block; border-radius: 8px; }
#pixCodigo   { width: 100%; height: 58px; font-size: 0.72rem; resize: none;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 0.5rem; margin-bottom: 0.75rem; }
.pix-info    { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }

/* ── Dashboard ───────────────────────────────────────────── */
.dash-plan-info {
  background: var(--bg); border-radius: 8px; padding: 1rem 1.25rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--border); margin-bottom: 1rem; font-size: 0.88rem;
}
.dash-plan-badge { font-weight: 700; color: var(--accent); font-size: 1rem; }
.dash-stat       { color: var(--text-muted); }
.dash-stat strong { color: var(--text); }
.dash-filters { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.dash-filter-label { font-size: 0.82rem; color: var(--text-muted); }
.dash-select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.82rem; cursor: pointer;
}
.dash-filter-btn { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.dash-history { max-height: 320px; overflow-y: auto; }
.dash-hist-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; gap: 0.5rem;
}
.dash-hist-tipo  { font-weight: 600; color: var(--accent); white-space: nowrap; }
.dash-hist-resumo { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dash-hist-data  { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }
.dash-empty      { text-align: center; color: var(--text-muted); padding: 2rem 0; font-size: 0.9rem; }

/* ── Bloco de Anúncio ────────────────────────────────────── */
.ad-container {
  border: 1px dashed var(--border); border-radius: 8px;
  padding: 0.75rem; margin: 1rem 0; text-align: center;
}
.ad-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* ── AD Gate Modal ───────────────────────────────────────── */
.adgate-overlay { z-index: 1200; }
.adgate-box {
  max-width: 480px; width: 95%;
  text-align: center;
  padding: 2rem 1.75rem 1.75rem;
}
.adgate-header { margin-bottom: 1.25rem; }
.adgate-icon { font-size: 2rem; margin-bottom: .5rem; }
.adgate-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.adgate-sub { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

.adgate-ad-area { margin: 1rem 0; min-height: 250px; border-radius: .6rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.adgate-ad-placeholder {
  min-height: 120px; background: var(--bg2);
  border: 1px dashed var(--border); border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem;
}

.adgate-countdown { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: .75rem 0; }
.adgate-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: var(--accent);
  transition: border-color .3s;
}
.adgate-ring.done { border-color: #22c55e; color: #22c55e; }
.adgate-countdown-label { font-size: .75rem; color: var(--text-muted); }

/* Smart Link card dentro do modal */
.adgate-smartlink-card {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #1a2035, #0d1420);
  border: 1px solid var(--accent); border-radius: .75rem;
  padding: 1.25rem 1rem; text-decoration: none; color: var(--text);
  width: 100%; transition: transform .2s, box-shadow .2s;
}
.adgate-smartlink-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(79,142,247,.25); }
.adgate-sl-icon { font-size: 2rem; flex-shrink: 0; }
.adgate-sl-text { flex: 1; text-align: left; }
.adgate-sl-text strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.adgate-sl-text span { font-size: .8rem; color: var(--text-muted); }
.adgate-sl-cta { background: var(--accent); color: #fff; border-radius: .5rem;
  padding: .5rem .85rem; font-size: .82rem; font-weight: 700; white-space: nowrap; }

.adgate-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.adgate-btn-register { font-size: .9rem; }
.adgate-btn-continue { font-size: .85rem; }
.adgate-btn-continue:disabled { opacity: .35; cursor: not-allowed; }

/* ── Feature lock ────────────────────────────────────────── */
.feature-locked { position: relative; pointer-events: none; }
.feature-locked::after {
  content: "🔒 Requer Plano Standard ou Business";
  position: absolute; inset: 0; background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; color: #fff; font-weight: 700; font-size: 0.88rem;
  text-align: center; pointer-events: all;
}

/* ── Pagamento modal ─────────────────────────────────────── */
.pag-header { margin-bottom: 1rem; }
.pag-valor-wrap { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.pag-plano-badge { background: var(--accent); color: #fff; border-radius: 4px;
  padding: .15rem .55rem; font-size: .75rem; font-weight: 700; }
.pag-valor { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.pag-method-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.pag-method-btn { flex: 1; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); padding: .55rem .5rem; border-radius: 8px;
  font-size: .875rem; cursor: pointer; transition: all .2s; }
.pag-method-btn.active { border-color: var(--accent); color: var(--accent);
  background: rgba(79,142,247,.1); font-weight: 600; }

.pag-section { }
.stripe-info-box { background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .84rem; }
.stripe-recorrencia { color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }
.btn-stripe { background: linear-gradient(135deg, #635bff, #4f46e5) !important;
  font-size: 1rem; padding: .8rem; letter-spacing: .02em; }
.card-brands { display: flex; gap: .4rem; justify-content: center; margin-top: .85rem; }
.card-brands span { background: var(--bg); border: 1px solid var(--border);
  padding: .2rem .55rem; border-radius: 4px; font-size: .7rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: .05em; }

/* ════════════════════════════════════════════════════════════
   TELA CHEIA DE PLANOS — pl-*
════════════════════════════════════════════════════════════ */
.pl-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg); overflow-y: auto;
  display: flex; flex-direction: column;
}
.pl-wrap {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 2rem 1.75rem 3rem;
  display: flex; flex-direction: column; gap: 1.75rem;
  flex: 1;
}
/* Cabeçalho */
.pl-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.pl-header-left h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .3rem; }
.pl-header-left p  { color: var(--text-muted); font-size: .95rem; }
.pl-header-right {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.pl-close-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 50%;
  width: 40px; height: 40px; font-size: 1rem;
  cursor: pointer; flex-shrink: 0; transition: all .2s;
}
.pl-close-btn:hover { border-color: var(--accent); color: var(--text); }

/* Grid de planos — 4 colunas no desktop, fill height */
.pl-overlay .plans-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.pl-overlay .plan-card { height: 100%; }

/* Rodapé de garantia */
.pl-footer {
  text-align: center; color: var(--text-muted); font-size: .82rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.pl-footer span { display: flex; align-items: center; gap: .3rem; }

/* Responsivo */
@media (max-width: 900px) {
  .pl-overlay .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-overlay .plan-featured { transform: none; }
}
@media (max-width: 500px) {
  .pl-overlay .plans-grid { grid-template-columns: 1fr; }
  .pl-wrap { padding: 1rem 1rem 2rem; }
  .pl-header { flex-direction: column; }
  .pl-header-left h2 { font-size: 1.35rem; }
}

/* ── Toast de sucesso pós-pagamento ─────────────────────── */
.pag-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: #22c55e; color: #fff; padding: .85rem 1.75rem; border-radius: 2rem;
  font-weight: 700; font-size: .95rem; z-index: 2000; box-shadow: 0 4px 20px rgba(34,197,94,.4);
  animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(20px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ── Responsive tweaks v04 ───────────────────────────────── */
@media (max-width: 600px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .header-auth, .header-user { font-size: 0.8rem; }
  .dash-plan-info { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 400px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD PROFISSIONAL — dp-*
════════════════════════════════════════════════════════════ */
.dp-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
}

.dp-layout { display: flex; height: 100%; width: 100%; }

/* ── Sidebar ── */
.dp-sidebar {
  width: 260px; min-width: 260px;
  background: var(--bg-header); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
  transition: transform .3s ease;
}
.dp-sidebar-top { padding: 1.25rem 1rem 1rem; }
.dp-logo-row { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.dp-logo-icon { font-size: 1.4rem; }
.dp-logo-text { font-size: 1rem; font-weight: 600; flex: 1; }
.dp-close-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: .2rem;
  border-radius: 4px; transition: background .2s;
}
.dp-close-btn:hover { background: var(--border); color: var(--text); }

.dp-user-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--bg); border-radius: 10px; padding: .85rem; border: 1px solid var(--border);
}
.dp-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.dp-user-info { min-width: 0; }
.dp-user-name { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-user-email { font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-plan-badge {
  display: inline-block; margin-top: .25rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 3px; padding: .1rem .4rem; color: #fff;
}
.dp-plan-badge.free     { background: #64748b; }
.dp-plan-badge.basic    { background: #0ea5e9; }
.dp-plan-badge.standard { background: var(--accent); }
.dp-plan-badge.business { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* ── Nav ── */
.dp-nav {
  padding: 1rem .75rem; flex: 1;
  display: flex; flex-direction: column; gap: .25rem;
}
.dp-nav-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: 10px;
  color: var(--text-muted); font-size: .9rem;
  transition: all .2s; text-align: left;
}
.dp-nav-btn:hover { background: var(--border); color: var(--text); }
.dp-nav-btn.active { background: rgba(79,142,247,.15); color: var(--accent); font-weight: 600; }
.dp-nav-icon { font-size: 1.1rem; }
.dp-logout-btn { color: #ef4444 !important; }
.dp-logout-btn:hover { background: rgba(239,68,68,.1) !important; }
.dp-sidebar-footer { padding: .75rem; border-top: 1px solid var(--border); }

/* ── Main content ── */
.dp-main {
  flex: 1; overflow-y: auto; padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.dp-back-btn {
  display: none; background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: .9rem; font-weight: 600;
  padding: .4rem 0; margin-bottom: .5rem; text-align: left;
}

/* ── Sections ── */
.dp-sec { display: none; flex-direction: column; gap: 1.25rem; }
.dp-sec.active { display: flex; }
.dp-sec-header h2 { font-size: 1.4rem; font-weight: 700; }

/* ── Welcome banner ── */
.dp-welcome {
  background: linear-gradient(135deg, rgba(79,142,247,.15), rgba(124,58,237,.15));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem; display: flex; align-items: center; justify-content: space-between;
}
.dp-welcome-title { font-size: 1.25rem; font-weight: 700; }
.dp-welcome-sub { color: var(--text-muted); font-size: .88rem; margin-top: .25rem; }
.dp-welcome-shield { font-size: 3rem; }

/* ── Stats grid ── */
.dp-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.dp-stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem; text-align: center;
}
.dp-stat-icon { font-size: 1.4rem; margin-bottom: .4rem; }
.dp-stat-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: .2rem; }
.dp-stat-lbl { font-size: .78rem; color: var(--text-muted); }

/* ── Usage bar ── */
.dp-usage-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.dp-usage-labels { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: .5rem; }
.dp-usage-track { background: var(--border); border-radius: 99px; height: 8px; overflow: hidden; }
.dp-usage-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .5s ease; }

/* ── Card ── */
.dp-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem;
}
.dp-card h4 { font-size: 1rem; font-weight: 700; }
.dp-card-header { display: flex; align-items: center; justify-content: space-between; }
.dp-link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: .85rem; }

/* ── Hist item ── */
.dp-hist-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; gap: .5rem;
}
.dp-hist-item:last-child { border-bottom: none; }
.dp-hist-tipo {
  background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
  padding: .1rem .45rem; font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.dp-hist-resumo { flex: 1; color: var(--text-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-hist-data { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }

/* ── Profile hero ── */
.dp-profile-hero {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.dp-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.dp-profile-hero-name { font-size: 1.2rem; font-weight: 700; }
.dp-profile-hero-email { font-size: .85rem; color: var(--text-muted); }
.dp-profile-hero-since { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Form fields ── */
.dp-field { display: flex; flex-direction: column; gap: .35rem; }
.dp-field label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.dp-field input {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .6rem .85rem; font-size: .9rem;
}
.dp-field input:focus { outline: none; border-color: var(--accent); }
.dp-msg { font-size: .85rem; }
.dp-msg.ok  { color: #22c55e; }
.dp-msg.err { color: #ef4444; }

/* ── Current plan card ── */
.dp-current-plan {
  background: linear-gradient(135deg, rgba(79,142,247,.12), rgba(124,58,237,.12));
  border: 1px solid var(--accent); border-radius: 14px; padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.dp-cp-left h3 { font-size: 1.3rem; font-weight: 800; }
.dp-cp-left p  { font-size: .84rem; color: var(--text-muted); margin-top: .25rem; }
.dp-cp-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.dp-cp-expira { font-size: .8rem; color: var(--text-muted); }

/* ── History filters ── */
.dp-hist-filters { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.btn-outline {
  background: none; border: 1px solid var(--border); color: var(--text);
  padding: .5rem 1rem; border-radius: 8px; cursor: pointer; font-size: .88rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Shortcuts ── */
.dp-shortcuts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dp-shortcut {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem .75rem; cursor: pointer; color: var(--text); font-size: .82rem;
  transition: all .2s; font-weight: 600;
}
.dp-shortcut span:first-child { font-size: 1.6rem; }
.dp-shortcut:hover { border-color: var(--accent); background: rgba(79,142,247,.08); color: var(--accent); }
.dp-shortcut-accent { border-color: var(--accent2); color: var(--accent2); }
.dp-shortcut-accent:hover { background: rgba(124,58,237,.1); }

/* ── Misc ── */
.dp-loading { color: var(--text-muted); font-size: .88rem; }
.dp-empty   { color: var(--text-muted); font-size: .88rem; text-align: center; padding: 1.5rem 0; }

/* ── MOBILE dashboard ── */
@media (max-width: 700px) {
  .dp-sidebar {
    position: absolute; inset: 0; z-index: 10;
    width: 100%; min-width: unset;
    transition: transform .3s ease;
  }
  .dp-sidebar.dp-sidebar-hidden { transform: translateX(-100%); }
  .dp-main { padding: 1.25rem 1rem; }
  .dp-back-btn { display: block; }
  .dp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-profile-hero { flex-direction: column; text-align: center; }
  .dp-current-plan { flex-direction: column; }
  .dp-cp-right { align-items: flex-start; }
  .dp-pay-layout { grid-template-columns: 1fr; }
  .dp-pix-layout { grid-template-columns: 1fr; }
  .dp-pix-qr-wrap img { width: 200px; height: 200px; }
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO ASSINAR — dp-pay-*
════════════════════════════════════════════════════════════ */

/* Botão assinar na nav */
.dp-nav-assinar { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .85rem !important; }
.dp-nav-assinar, .dp-nav-assinar:not(.active) { color: var(--accent) !important; font-weight: 600; }
.dp-nav-assinar:hover { background: rgba(79,142,247,.12) !important; }

/* Botão admin na nav */
.dp-nav-admin { color: #f59e0b !important; font-weight: 600; }
.dp-nav-admin:hover { background: rgba(245,158,11,.12) !important; }

/* Barra de período */
.dp-pay-period-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem 1.25rem;
}
.dp-pay-period-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.dp-pay-period-btns { display: flex; gap: .5rem; }
.dp-period-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  padding: .35rem .85rem; border-radius: 8px; cursor: pointer; font-size: .84rem;
  transition: all .2s; display: flex; align-items: center; gap: .35rem;
}
.dp-period-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,.1); font-weight: 600; }
.dp-period-badge { background: #22c55e; color: #fff; border-radius: 4px; padding: .05rem .3rem; font-size: .65rem; font-weight: 700; }

/* Layout 2 colunas */
.dp-pay-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start;
}

/* PLANO picker (esquerda) */
.dp-pay-plans { display: flex; flex-direction: column; gap: .85rem; }
.dp-plan-picker { display: flex; flex-direction: column; gap: .6rem; }

.dp-plan-opt {
  display: block; cursor: pointer;
  border: 2px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: all .25s; position: relative;
}
.dp-plan-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.dp-plan-opt:hover { border-color: rgba(79,142,247,.5); }
.dp-plan-opt:has(input:checked) { border-color: var(--accent); background: rgba(79,142,247,.07); }
.dp-plan-opt-featured { border-color: var(--accent); }
.dp-plan-opt-badge {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .85rem;
  text-align: center; letter-spacing: .05em;
}
.dp-plan-opt-inner { padding: .85rem 1rem; }
.dp-plan-opt-top {
  display: flex; align-items: center; gap: .6rem;
}
.dp-plan-opt-icon { font-size: 1.3rem; }
.dp-plan-opt-name { font-weight: 700; font-size: .95rem; flex: 1; }
.dp-plan-opt-price { font-size: .88rem; color: var(--accent); font-weight: 600; text-align: right; }
.dp-plan-opt-price strong { font-size: 1.1rem; }
.dp-plan-opt-feats {
  list-style: none; margin-top: .5rem; display: flex; flex-direction: column; gap: .15rem;
  font-size: .8rem; color: var(--text-muted);
}

/* Total box */
.dp-pay-total-box {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, rgba(79,142,247,.12), rgba(124,58,237,.1));
  border: 1px solid var(--accent); border-radius: 10px; padding: .85rem 1.1rem;
  font-size: .9rem; font-weight: 600;
}
.dp-pay-total-val { font-size: 1.4rem; font-weight: 900; color: var(--accent); }

/* Pagamento (direita) */
.dp-pay-right {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}

/* Info stripe */
.dp-pay-stripe-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.1rem; font-size: .85rem; line-height: 1.5;
}
.dp-pay-stripe-logo { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: #635bff; }
.dp-pay-recorrencia { color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }

/* PIX layout */
.dp-pix-layout {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
}
.dp-pix-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.dp-pix-qr-wrap img { width: 220px; height: 220px; border-radius: 10px; border: 2px solid var(--border); }
.dp-pix-hint { font-size: .75rem; color: var(--text-muted); text-align: center; }
#pixCodigo {
  width: 100%; height: 72px; font-size: .73rem; resize: none;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .5rem; margin-bottom: .5rem;
}
.dp-pix-info-box {
  margin-top: .85rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem; font-size: .8rem; line-height: 1.7;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   GUARDIÃO FLUTUANTE — BoShield Real-Time Guardian
   ══════════════════════════════════════════════════ */
.guardian {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  user-select: none;
}

/* Anel colorido */
.guardian-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 2.5px solid #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
  position: relative;
}

/* Estados de cor */
.guardian-ring.idle    { border-color: #6b7280; box-shadow: 0 2px 16px rgba(0,0,0,.45); }
.guardian-ring.loading { border-color: #4f8ef7; box-shadow: 0 0 0 3px #4f8ef722; }
.guardian-ring.green   { border-color: #22c55e; box-shadow: 0 0 0 3px #22c55e33, 0 0 22px #22c55e44; }
.guardian-ring.blue    { border-color: #4f8ef7; box-shadow: 0 0 0 3px #4f8ef733, 0 0 22px #4f8ef744; }
.guardian-ring.yellow  { border-color: #eab308; box-shadow: 0 0 0 3px #eab30833, 0 0 22px #eab30844; }
.guardian-ring.orange  { border-color: #f97316; box-shadow: 0 0 0 3px #f9731633, 0 0 22px #f9731644; }
.guardian-ring.red     { border-color: #ef4444; box-shadow: 0 0 0 4px #ef444444, 0 0 28px #ef444466; animation: grd-pulse 1.2s ease-in-out infinite; }
.guardian-ring.purple  { border-color: #a855f7; box-shadow: 0 0 0 3px #a855f733, 0 0 22px #a855f744; }

@keyframes grd-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #ef444444, 0 0 28px #ef444466; }
  50%       { box-shadow: 0 0 0 7px #ef444466, 0 0 40px #ef444488; }
}

/* Shield SVG — usa currentColor herdado do estado do anel */
.guardian-shield-svg {
  width: 30px;
  height: 34px;
  color: #6b7280;
  transition: color .35s;
  flex-shrink: 0;
}
.guardian-ring.green   .guardian-shield-svg { color: #22c55e; }
.guardian-ring.blue    .guardian-shield-svg { color: #4f8ef7; }
.guardian-ring.yellow  .guardian-shield-svg { color: #eab308; }
.guardian-ring.orange  .guardian-shield-svg { color: #f97316; }
.guardian-ring.red     .guardian-shield-svg { color: #ef4444; }
.guardian-ring.purple  .guardian-shield-svg { color: #a855f7; }
.guardian-ring.loading .guardian-shield-svg { color: #4f8ef7; }

/* Checkmark — oculto durante loading/badge */
.guardian-shield-svg.has-badge .gi-check { opacity: 0; }

/* Spinner de loading */
.guardian-spinner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #4f8ef7;
  animation: grd-spin .8s linear infinite;
}
@keyframes grd-spin { to { transform: rotate(360deg); } }

/* Botão X */
.guardian-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1f2937;
  border: 1.5px solid #374151;
  color: #9ca3af;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  z-index: 1;
  transition: background .15s, color .15s;
}
.guardian-x:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* Tooltip / popup */
.guardian-tip {
  position: absolute;
  right: 64px;
  bottom: 0;
  width: 230px;
  background: #111827;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 10000;
  animation: grd-tip-in .15s ease-out;
}
@keyframes grd-tip-in {
  from { opacity: 0; transform: scale(.9) translateX(8px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}
.guardian-tip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.guardian-tip-icon { font-size: 1rem; }
.guardian-tip-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.guardian-tip-body {
  color: #9ca3af;
  font-size: 0.77rem;
  margin-bottom: 8px;
}
.guardian-tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.guardian-tip-actions button {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
  transition: background .15s;
}
.guardian-tip-actions button:hover { background: #374151; }
.guardian-tip-actions button.primary { background: #4f8ef7; border-color: #4f8ef7; color: #fff; }

/* Re-open button */
.guardian-reopen {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 9997;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid #374151;
  font-size: 1rem;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s;
}
.guardian-reopen:hover { opacity: 1; }
