/* ═══════════════════════════════════════════════════════════════════════════
   DevFix — app.css
   EXCLUSIVO do sistema (app.php).
   Depende de: tokens.css + layout.css (reset, vars, header, footer)
   
   Aliases de retrocompatibilidade para o motor JS existente.
═══════════════════════════════════════════════════════════════════════════ */
:root {
    --accent-2:     #3B82F6;
    --accent-3:     #f59e0b;
    --accent-err:   #f87171;
    --accent-warn:  #fbbf24;
    --accent2-glow: rgba(96,165,250,0.12);
}

/* ── APP DASHBOARD HEADER ────────────────────────────────────────────────── */
.app-dashboard-header {
    padding: 32px 24px 0px;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    text-align: center;
}

.app-dashboard-inner {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.app-dashboard-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.app-dashboard-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* ── SEARCH EXAMPLES / MONITOR BUTTON ──────────────────────────────────── */
.search-examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.examples-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.example-pill {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.example-pill:hover {
    background: var(--bg-raised);
    border-color: var(--text-muted);
}

.example-pill svg {
    color: var(--accent);
}

/* ── CRAWLERS GRID ───────────────────────────────────────────────────────── */
.crawlers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 800px) {
    .crawlers-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.crawler-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.crawler-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.crawler-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.crawler-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}
.crawler-pill.ok {
    background: rgba(74,222,128,0.1);
    color: var(--accent);
}
.crawler-pill.error {
    background: rgba(248,113,113,0.1);
    color: var(--accent-err);
}
.crawler-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.crawler-code-box, .crawler-results {
    background: #0a0b0f;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: 0.8rem;
    color: #e2e8f0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.crawler-code-box {
    font-family: var(--font-mono);
    max-height: 120px;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
}
.crawler-results {
    font-family: var(--font-body);
}



/* ═══════════════════════════════════════════════════════════════════════════
   LOADING BAR + ESTADOS
═══════════════════════════════════════════════════════════════════════════ */
.loading-bar {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.4s var(--ease);
    box-shadow: 0 0 8px var(--accent);
}

.estado-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Spinner premium */
.spinner-premium {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.sp-ring-2 {
    inset: 8px;
    border-top-color: var(--accent-2);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.sp-icon { font-size: 1.2rem; position: relative; z-index: 1; }

.dots-anim::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTADO WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
.resultado-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.resultado-inner {
    animation: fadeInUp 0.4s var(--ease) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RES HEADER ─────────────────────────────────────────────────────────── */
.res-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.res-url-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.ok    { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status-dot.warn  { background: var(--accent-warn); }
.status-dot.error { background: var(--accent-err); }

.res-url-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-2);
    text-decoration: none;
    word-break: break-all;
}

.res-url-text:hover { text-decoration: underline; }

.res-meta-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.res-meta-sep { color: var(--border); font-size: 0.8rem; }

/* Score Widget */
.score-widget {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.score-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.score-track {
    fill: none;
    stroke: var(--bg-raised);
    stroke-width: 5;
}

.score-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    transition: stroke-dashoffset 1s var(--ease), stroke 0.5s;
}

.score-fill.good     { stroke: var(--accent); }
.score-fill.average  { stroke: var(--accent-3); }
.score-fill.poor     { stroke: var(--accent-err); }
.score-fill.excellent{ stroke: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

.score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.score-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════════════════════ */
.tabs-nav {
    display: flex;
    gap: 2px;
    padding: 12px 0 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 16px 12px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    margin-bottom: -1px;
}

.tab-btn svg { opacity: 0.6; transition: opacity var(--dur); }

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-raised);
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn.active svg { opacity: 1; }

/* Painéis */
.tab-panel {
    padding: 28px 0;
    animation: fadeTab 0.2s var(--ease) both;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREVIEW CARDS
═══════════════════════════════════════════════════════════════════════════ */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card largo ocupa toda a linha */
.preview-card-wide { grid-column: 1 / -1; }

.preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    min-width: 0; /* evita overflow em grid */
    transition: border-color var(--dur), box-shadow var(--dur);
}

.preview-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-md);
}

.preview-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-raised);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Facebook Preview ─────────────────────────────────────────────────────── */
.preview-fb { background: var(--bg-surface); }

.pfb-img-wrap {
    position: relative;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    overflow: hidden;
}

.pfb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.pfb-img.loaded { display: block; }

.pfb-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pfb-body {
    padding: 12px 16px 14px;
    background: var(--bg-raised);
    border-top: 3px solid #3a5998;
}

.pfb-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.pfb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pfb-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ── WhatsApp Preview ─────────────────────────────────────────────────────── */
.preview-wa {
    background: var(--bg-surface);
    padding: 16px;
}

.pwa-img-wrap {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    position: relative;
    margin-bottom: 12px;
}

.pwa-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.pwa-img.loaded { display: block; }

.pwa-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pwa-body {
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: var(--r-md);
    padding: 12px;
    border-left: 4px solid #25D366;
}

.pwa-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #25D366;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pwa-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pwa-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* ── Twitter Preview ─────────────────────────────────────────────────────── */
.preview-tw {
    background: var(--bg-surface);
    padding: 16px;
}

.ptw-img-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    position: relative;
    margin-bottom: 10px;
}

.ptw-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ptw-img.loaded { display: block; }

.ptw-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.ptw-body {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
}

.ptw-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptw-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.ptw-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Discord Preview ─────────────────────────────────────────────────────── */
.preview-dc { background: #313338; border-radius: 0 0 var(--r-xl) var(--r-xl); }

.pdc-bar {
    height: 4px;
    background: #5865F2;
}

.pdc-body {
    padding: 14px 16px 16px;
    border-left: 4px solid #5865F2;
    margin: 10px;
    background: rgba(88,101,242,0.08);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.pdc-site {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5865F2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.pdc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00aff4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdc-desc {
    font-size: 0.8rem;
    color: #b9bbbe;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pdc-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--r-md);
    display: none;
}

.pdc-img.loaded { display: block; }

.pdc-img-ph {
    background: #1e1f22;
    border-radius: var(--r-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    min-height: 80px;
}

/* ── Google Preview ─────────────────────────────────────────────────────── */
.preview-google { padding: 20px; }

.pg-domain-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.pg-favicon {
    width: 26px;
    height: 26px;
    background: var(--bg-raised);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pg-favicon img { width: 16px; height: 16px; }

.pg-domain-info { display: flex; flex-direction: column; }

.pg-domain-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.pg-breadcrumb {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.pg-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: #8ab4f8;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

[data-theme="light"] .pg-title { color: #1a0dab; }

.pg-title:hover { text-decoration: underline; }

.pg-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAGS TABLE
═══════════════════════════════════════════════════════════════════════════ */
.tags-section {}

.tags-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tags-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 0;
}

.tags-badge {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 99px;
}

.tags-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.tags-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tags-table thead th {
    background: var(--bg-raised);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}

.tags-table tbody tr {
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--dur);
}

.tags-table tbody tr:last-child { border-bottom: none; }
.tags-table tbody tr:hover { background: var(--bg-raised); }

.tags-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Coluna de propriedade */
.td-prop {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-2);
    white-space: nowrap;
}

/* Coluna de valor */
.td-valor {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 400px;
}

.td-valor-link {
    color: var(--accent-2);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    word-break: break-all;
}

.td-valor-link:hover { text-decoration: underline; }

.td-valor-img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 8px;
}

.td-vazio {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
}

/* Status pills */
.td-status { white-space: nowrap; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

.pill-ok {
    background: rgba(74,222,128,0.1);
    color: var(--accent);
    border: 1px solid rgba(74,222,128,0.25);
}

.pill-error {
    background: rgba(248,113,113,0.1);
    color: var(--accent-err);
    border: 1px solid rgba(248,113,113,0.25);
}

.pill-warn {
    background: rgba(251,191,36,0.1);
    color: var(--accent-warn);
    border: 1px solid rgba(251,191,36,0.25);
}

.pill-info {
    background: rgba(96,165,250,0.1);
    color: var(--accent-2);
    border: 1px solid rgba(96,165,250,0.25);
}

/* Coluna comprimento */
.td-len {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
}

.len-ok   { color: var(--accent); }
.len-warn { color: var(--accent-warn); }
.len-bad  { color: var(--accent-err); }

/* ═══════════════════════════════════════════════════════════════════════════
   SCHEMA.ORG
═══════════════════════════════════════════════════════════════════════════ */
.schema-content {}

.schema-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.schema-type {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--accent2-glow);
    border-radius: 99px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.schema-json {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-code);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CODE EDITOR (SNIPPET)
═══════════════════════════════════════════════════════════════════════════ */
.snippet-intro {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.snippet-intro code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--bg-raised);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    color: var(--accent-2);
    border: 1px solid var(--border);
}

.code-editor-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-editor-header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }

.code-filename {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-editor {
    background: var(--bg-code);
    color: var(--text-code);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    padding: 24px;
    overflow-x: auto;
    white-space: pre;
    min-height: 200px;
    outline: none;
    margin: 0;
    counter-reset: line;
}

/* Syntax highlight básico via JS classes */
.hl-tag   { color: #f87171; }
.hl-attr  { color: #a78bfa; }
.hl-val   { color: #a8d8c8; }
.hl-com   { color: #4a5568; font-style: italic; }
.hl-eq    { color: #fbbf24; }

/* Botão copiar */
.btn-copy-snippet {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    margin-left: auto;
}

.btn-copy-snippet:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIAGNÓSTICO
═══════════════════════════════════════════════════════════════════════════ */
.diag-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.diag-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.diag-error { color: var(--accent-err); }
.diag-warn  { color: var(--accent-warn); }

.diag-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diag-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--r-md);
}

.diag-list.lista-erros li {
    background: rgba(248,113,113,0.06);
    border: 1px solid rgba(248,113,113,0.12);
    color: var(--text-primary);
}

.diag-list.lista-avisos li {
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.12);
    color: var(--text-primary);
}

.diag-list li::before {
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 1px;
}

.sem-diag {
    font-size: 0.875rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Redirects */
.redirect-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
}

.redirect-item:last-child { border-bottom: none; }

.redirect-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    font-weight: 700;
}

.code-200 { background: rgba(74,222,128,0.1); color: var(--accent); }
.code-301, .code-302 { background: rgba(251,191,36,0.1); color: var(--accent-warn); }
.code-404, .code-500 { background: rgba(248,113,113,0.1); color: var(--accent-err); }

.redirect-url {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    word-break: break-all;
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.chk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
    transition: all var(--dur) var(--ease);
}

.chk-item.chk-ok {
    background: rgba(74,222,128,0.06);
    border-color: rgba(74,222,128,0.2);
    color: var(--text-primary);
}

.chk-item.chk-fail {
    background: rgba(248,113,113,0.06);
    border-color: rgba(248,113,113,0.2);
    color: var(--text-muted);
}

.chk-icon { font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   SEÇÕES INFORMATIVAS
═══════════════════════════════════════════════════════════════════════════ */
.info-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.info-section-alt { background: var(--bg-surface); }

.info-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.info-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur), transform var(--dur);
}

.step-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-card h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Ref Grid */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ref-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}

.ref-card h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ref-card ul { list-style: none; }

.ref-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-card li:last-child { border-bottom: none; }
.ref-card li::before { content: '→'; color: var(--text-muted); font-size: 0.75rem; }

.ref-card code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-2);
    background: var(--bg-code);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer-bottom {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.footer-logo strong { color: var(--accent); font-weight: 600; font-style: normal; }

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.sem-dados {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 20px 0;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLACK PREVIEW
═══════════════════════════════════════════════════════════════════════════ */
.preview-slack { background: var(--bg-surface); padding: 16px; }

.psl-wrap {
    display: flex;
    gap: 0;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.psl-bar {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #E01E5A 0%, #ECB22E 50%, #2EB67D 100%);
}

.psl-body { padding: 12px 14px; flex: 1; }

.psl-domain {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-family: var(--font-mono);
}

.psl-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1264a3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="light"] .psl-title { color: #1264a3; }

.psl-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.psl-img-wrap {
    position: relative;
    background: var(--bg-code);
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 1200/630;
    max-height: 140px;
}

.psl-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.psl-img.loaded { display: block; }

.psl-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TELEGRAM PREVIEW
═══════════════════════════════════════════════════════════════════════════ */
.preview-tg { background: #17212B; padding: 16px; border-radius: 0 0 var(--r-xl) var(--r-xl); }

.ptg-bubble {
    background: #1c2a3a;
    border-radius: 4px 12px 12px 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 320px;
}

.ptg-img-wrap {
    position: relative;
    background: #111c27;
    aspect-ratio: 1200/630;
    overflow: hidden;
}

.ptg-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ptg-img.loaded { display: block; }

.ptg-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a5068;
}

.ptg-body {
    padding: 10px 12px 12px;
    border-left: 3px solid #26A5E4;
}

.ptg-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #26A5E4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptg-desc {
    font-size: 0.8rem;
    color: #8db0c8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ptg-domain {
    font-size: 0.72rem;
    color: #4a6680;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPETOR DE IMAGEM OG
═══════════════════════════════════════════════════════════════════════════ */
.img-inspector-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-code);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0;
}

.img-inspector-body { padding: 20px; }

/* Campo de input da imagem */
.img-inspector-input-row { margin-bottom: 20px; }

.img-inspector-field { display: flex; flex-direction: column; gap: 6px; }

.iif-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.iif-wrap {
    display: flex;
    gap: 8px;
    background: var(--bg-code);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px 6px 6px 14px;
    transition: border-color var(--dur);
}

.iif-wrap:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px var(--accent2-glow);
}

.iif-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 0;
}

.iif-input::placeholder { color: var(--text-muted); }

.iif-btn {
    background: var(--accent-2);
    color: #0a0b0f;
    border: none;
    border-radius: var(--r-sm);
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.iif-btn:hover {
    background: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(96,165,250,0.35);
}

/* Loading do inspetor */
.img-inspector-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}
.img-inspector-loading[hidden] {
    display: none !important;
}

.img-insp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-2);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Resultado: layout em duas colunas */
.img-insp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.img-insp-col-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Prévia da imagem */
.img-insp-preview-wrap {
    position: relative;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 1200/630;
    margin-bottom: 10px;
}

.img-insp-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: repeating-conic-gradient(#1a1c25 0% 25%, #14151c 0% 50%) 0 0 / 20px 20px;
    display: none;
}

.img-insp-preview.loaded { display: block; }

.img-insp-preview-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-align: center;
    padding: 16px;
}

/* Régua de proporção */
.img-ratio-ruler { margin-top: 0; }

.ratio-bar-wrap {
    position: relative;
    height: 6px;
    background: var(--bg-code);
    border-radius: 99px;
    border: 1px solid var(--border);
    margin-bottom: 6px;
    overflow: visible;
}

.ratio-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-err), var(--accent-warn), var(--accent), var(--accent-warn), var(--accent-err));
    border-radius: 99px;
    transition: width 0.5s var(--ease);
    max-width: 100%;
}

/* Marcador da proporção ideal (1.91:1 = ~63%) */
.ratio-ideal-mark {
    position: absolute;
    top: -4px;
    left: 62.5%;
    width: 2px;
    height: 14px;
    background: var(--accent);
    border-radius: 1px;
    transform: translateX(-50%);
}

.ratio-ideal-mark::after {
    content: '1.91:1';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--accent);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.ratio-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 20px;
}

/* Itens de diagnóstico */
.img-insp-diag-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.img-diag-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-raised);
    transition: background var(--dur);
}

.img-diag-item:hover { background: var(--bg-hover); }

.img-diag-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }

.img-diag-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.img-diag-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1;
}

.img-diag-val {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    word-break: break-all;
    line-height: 1.3;
}

.img-diag-val.val-ok    { color: var(--accent); }
.img-diag-val.val-error { color: var(--accent-err); }
.img-diag-val.val-warn  { color: var(--accent-warn); }

/* Avisos da imagem */
.img-diag-avisos {
    margin-top: 8px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: var(--r-md);
    padding: 12px 14px;
}

.img-diag-avisos-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-warn);
    margin-bottom: 8px;
}

.img-diag-avisos ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.img-diag-avisos li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.img-diag-avisos li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-warn);
    font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVIDADE
═══════════════════════════════════════════════════════════════════════════ */

/* Tablet paisagem: 2 colunas */
@media (max-width: 1100px) {
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-card-wide { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero { padding: 60px 20px 80px; }
    .hero-title { font-size: 2rem; }
    .search-wrap { border-radius: var(--r-lg); padding: 4px 4px 4px 14px; }
    .search-btn { padding: 10px 18px; font-size: 0.85rem; }
    /* Mobile: 1 coluna */
    .preview-grid { grid-template-columns: 1fr; }
    .preview-card-wide { grid-column: 1; }
    .resultado-wrapper { padding: 0 16px 60px; }
    .tab-btn span { display: none; }
    .checklist-grid { grid-template-columns: 1fr 1fr; }
    .res-header { flex-direction: column; }
    /* Inspetor de imagem: empilha colunas no mobile */
    .img-insp-cols { grid-template-columns: 1fr; }
    .iif-wrap { flex-direction: column; gap: 6px; padding: 10px 12px; }
    .iif-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .hero { padding: 48px 16px 64px; }
    .search-btn .btn-text::after { content: '→'; }
    .search-btn .btn-text { font-size: 0; }
    .search-btn .btn-text::after { font-size: 1rem; }
    .checklist-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr; }
}

/* ── Animações de entrada ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #2: HISTORY DRAWER
═══════════════════════════════════════════════════════════════════════════ */
.btn-history {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
    position: relative;
}
.btn-history:hover { color: var(--accent-2); border-color: var(--accent-2); }

.history-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.history-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 370px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.history-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.drawer-close:hover { color: var(--text-primary); }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.drawer-clear-btn {
    width: 100%;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    color: var(--accent-err);
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--dur);
}
.drawer-clear-btn:hover { background: rgba(248,113,113,0.15); }

.sem-dados {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 0.9rem;
}

.hist-item {
    padding: 12px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--dur);
    border-bottom: 1px solid var(--border-soft);
}
.hist-item:hover {
    background: var(--bg-raised);
}
.hist-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.hist-domain {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 500;
}
.hist-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hist-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hist-score {
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.hist-score-good { color: var(--accent); }
.hist-score-avg  { color: var(--accent-warn); }
.hist-score-poor { color: var(--accent-err); }
.hist-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hist-diff, .history-diff {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    font-family: var(--font-mono);
}
.diff-up {
    background: rgba(74,222,128,0.12);
    color: var(--accent);
}
.diff-down {
    background: rgba(248,113,113,0.12);
    color: var(--accent-err);
}
.history-diff {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    animation: fadeInUp 0.4s var(--ease) both;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #1: PERFORMANCE AUDIT STYLES
═══════════════════════════════════════════════════════════════════════════ */
.perf-score-bar {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-raised);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}
.perf-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.perf-score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.perf-score-num {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.perf-bar-track {
    height: 8px;
    background: var(--bg-base);
    border-radius: 99px;
    overflow: hidden;
}
.perf-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s var(--ease);
}
.perf-bar-fill.grade-good { background: linear-gradient(90deg, var(--accent), #22d3ee); }
.perf-bar-fill.grade-avg  { background: linear-gradient(90deg, #eab308, #f97316); }
.perf-bar-fill.grade-poor { background: linear-gradient(90deg, var(--accent-err), #dc2626); }

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .perf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .perf-grid { grid-template-columns: 1fr; }
}

.perf-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    text-align: center;
    transition: border-color var(--dur);
}
.perf-card:hover { border-color: var(--accent-2); }
.perf-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.perf-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.perf-card-val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}
.perf-card-val.val-ok    { color: var(--accent); }
.perf-card-val.val-warn  { color: var(--accent-warn); }
.perf-card-val.val-error { color: var(--accent-err); }

.perf-checks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.perf-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--dur);
}
.perf-check-item.check-ok   { border-left: 3px solid var(--accent); }
.perf-check-item.check-fail { border-left: 3px solid var(--accent-err); }
.perf-check-icon { font-size: 1.1rem; flex-shrink: 0; padding-top: 1px; }
.perf-check-info { flex: 1; }
.perf-check-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.perf-check-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.perf-check-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #c8d0e0;
    background: var(--bg-code);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.btn-monitor {
    background: linear-gradient(135deg, var(--accent-2), #818cf8);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--r-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    letter-spacing: 0.03em;
}
.btn-monitor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(96,165,250,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #4: OG IMAGE CREATOR
═══════════════════════════════════════════════════════════════════════════ */
.ogimg-creator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
@media (max-width: 800px) {
    .ogimg-creator { grid-template-columns: 1fr; }
}

.ogimg-preview-col {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.ogimg-preview-col canvas {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ogimg-controls-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ogimg-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.ogimg-input, .ogimg-select {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--dur);
}
.ogimg-input:focus, .ogimg-select:focus { border-color: var(--accent); }
.ogimg-select { cursor: pointer; }
.ogimg-select option { background: var(--bg-surface); }

.ogimg-color {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    background: transparent;
    padding: 2px;
}
.ogimg-color::-webkit-color-swatch-wrapper { padding: 0; }
.ogimg-color::-webkit-color-swatch { border: none; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #5: MONITOR MODAL
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s var(--ease);
}
.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    width: 450px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s var(--ease) both;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-body { padding: 24px; }
.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}
.modal-field { margin-bottom: 16px; }
.modal-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.modal-input {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--dur);
}
.modal-input:focus { border-color: var(--accent); }
.modal-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}
.modal-submit {
    width: 100%;
    background: var(--accent);
    color: #0a0b0f;
    border: none;
    padding: 12px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur);
    margin-top: 8px;
}
.modal-submit:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74,222,128,0.4);
}
.modal-status {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #3: API DOCS SECTION
═══════════════════════════════════════════════════════════════════════════ */
.api-example-card {
    max-width: 740px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-editor-wrap {
    background: var(--bg-code);
    border-bottom: 1px solid var(--border);
}
.code-editor-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}
.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    align-self: flex-start;
    word-break: break-all;
    margin-top: 4px;
}
[data-theme="light"] .perf-check-val {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .perf-check-item:hover {
    background: #ffffff;
    border-color: rgba(0,0,0,0.15);
}


/* --- Extração Automática de Inline Styles (Auditoria V2) --- */
.csp-style-87fa3a { text-decoration: none; color: inherit; cursor: pointer; }
.csp-style-6e9504 { padding: 6px 14px; font-size: 13px; margin-left: 10px; border-radius: 6px; background: linear-gradient(135deg, #FF6B6B 0%, #FECA57 100%); border: none; font-weight: 600; }
.csp-style-b1b1f4 { padding:10px; cursor: pointer; }
.csp-style-adb344 { background-color: var(--accent); margin-top: 10px; }
.csp-style-7d701b { max-width: 800px; }
.csp-style-675b7c { display: flex; gap: 10px; margin-bottom: 20px; }
.csp-style-fbe3ef { white-space: nowrap; padding: 0 20px; }
.csp-style-96ab08 { margin-top: 20px; max-height: 400px; overflow-y: auto; }
.csp-style-72c33a { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }
.csp-style-63dc25 { margin-right:4px; }
.csp-style-214d83 { margin-left: 10px; }
.csp-style-3da5c5 { cursor:pointer; background:none; border:none; color:var(--accent); font-weight:bold; padding:0; font-family:inherit; font-size:0.9rem; }
.csp-style-d6d412 { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: var(--r-sm); border: 1px solid var(--border-soft); display: none; }
.csp-style-827f07 { background: var(--bg-surface); border: 1px dashed var(--border); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-md); }
.csp-style-73ac18 { width: 64px; height: 64px; box-shadow: none; margin: 0; }
.csp-style-a8098e { max-width: 100%; max-height: 100%; object-fit: contain; }
.csp-style-224b51 { display: none; }
.csp-style-0425ba { margin-top: 16px; font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); font-weight: 500; }
.csp-style-cdd8ca { text-align: center; }
.csp-style-9b992f { display:inline-block; padding: 20px; text-align: center; width: 100%; }
.csp-style-2787f9 { font-size:0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.csp-style-4dea33 { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.csp-style-bad75b { margin-top: 40px; }
.csp-style-b512c9 { display: flex; align-items: center; gap: 10px; }
.csp-style-8ef655 { width: 16px; height: 16px; display: inline-block; }
.csp-style-890957 { display:none; font-size: 0.8rem; color: var(--accent); text-decoration: none; margin-top: 10px; }
.csp-style-d77719 { color: var(--text-muted); font-size: 0.85rem; }
.csp-style-be9ed8 { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.csp-style-6eb4b6 { color: var(--accent); }
.csp-style-8fdd06 { background: var(--bg-surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border); max-width: 100%; overflow-x: auto; }
.csp-style-1acca5 { max-height: 250px; }
.csp-style-119a33 { opacity: 0.5; margin-bottom: 25px; }
.csp-style-9a9b49 { background: rgba(255,107,107,0.1); color:#ff6b6b; }
.csp-style-da21c8 { background: rgba(254,202,87,0.1); color:#feca57; }
.csp-style-ea5fa8 { background: rgba(29,209,161,0.1); color:#1dd1a1; }
.csp-style-c57a8f { background: rgba(72,219,251,0.1); color:#48dbfb; }
.csp-style-b7816e { text-align: center; font-weight: 500; font-size: 0.95rem; }
.csp-style-5e9646 { font-size: 1.1rem; margin-top: 32px; }
.csp-style-135c76 { text-align: center; margin-top: 28px; }
.csp-style-bc0275 { color: var(--text-secondary); max-width: 600px; margin: 0 auto 30px; text-align: center; line-height: 1.7; }
.csp-style-dee1f8 { font-size: 0.85rem; line-height: 1.6; }
.csp-style-fd496c { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4); padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.csp-style-85e091 { color: #FF6B6B; margin-top: 0; display: flex; align-items: center; gap: 8px; }
.csp-style-1551e6 { font-size: 24px; }
.csp-style-a5a038 { font-size: 14px; font-weight: normal; color: var(--text-secondary); }
.csp-style-f95b73 { list-style: none; padding: 0; margin: 15px 0 0 0; }
.csp-style-ccd7dd { margin-bottom: 8px; }
.csp-style-f83770 { font-size: 14px; color: var(--text-secondary); margin-bottom: 15px; }
.csp-style-0f3f4f { width: 100%; font-size: 16px; padding: 14px; background: linear-gradient(135deg, #FF6B6B 0%, #FECA57 100%); border: none; }


/* Shared Footer Styles */
.footer { background: #111827; color: #9ca3af; padding: 60px 5% 40px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 16px; display: inline-block; }
.footer-links { display: flex; gap: 40px; }
.footer-links h4 { color: #fff; font-weight: 600; margin: 0 0 20px; }
.footer-links a { display: block; color: #9ca3af; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 0.9rem; }

.wpp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; border-radius: 50px; height: 60px; padding: 0 25px 0 20px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(37,211,102,0.3); z-index: 9999; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wpp-text { color: #fff; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.wpp-float:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 25px rgba(37,211,102,0.4); }
.wpp-float svg { width: 32px; height: 32px; flex-shrink: 0; }

.cookie-consent { position: fixed; bottom: 30px; left: 30px; max-width: 350px; background: #111827; color: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); z-index: 9998; border: 1px solid rgba(255,255,255,0.1); transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p { font-size: 0.85rem; line-height: 1.5; color: #9ca3af; margin: 0 0 15px; }
.cookie-consent button { background: #4f46e5; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background 0.2s; width: 100%; }
@media (max-width: 768px) {
    .wpp-float { bottom: 20px; right: 20px; width: 60px; height: 60px; padding: 0; justify-content: center; }
    .wpp-text { display: none; }
    .cookie-consent { bottom: 20px; left: 20px; right: 20px; max-width: auto; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}



/* ── CRAWLERS GRID ───────────────────────────────────────────────────────── */
.crawlers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 800px) {
    .crawlers-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.crawler-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.crawler-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.crawler-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.crawler-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}
.crawler-pill.ok {
    background: rgba(74,222,128,0.1);
    color: var(--accent);
}
.crawler-pill.error {
    background: rgba(248,113,113,0.1);
    color: var(--accent-err);
}
.crawler-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.crawler-code-box, .crawler-results {
    background: #0a0b0f;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: 0.8rem;
    color: #e2e8f0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.crawler-code-box {
    font-family: var(--font-mono);
    max-height: 120px;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
}
.crawler-results {
    font-family: var(--font-body);
}



/* ═══════════════════════════════════════════════════════════════════════════
   LOADING BAR + ESTADOS
═══════════════════════════════════════════════════════════════════════════ */
.loading-bar {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.4s var(--ease);
    box-shadow: 0 0 8px var(--accent);
}

.estado-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Spinner premium */
.spinner-premium {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.sp-ring-2 {
    inset: 8px;
    border-top-color: var(--accent-2);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.sp-icon { font-size: 1.2rem; position: relative; z-index: 1; }

.dots-anim::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTADO WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
.resultado-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.resultado-inner {
    animation: fadeInUp 0.4s var(--ease) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RES HEADER ─────────────────────────────────────────────────────────── */
.res-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.res-url-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.ok    { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status-dot.warn  { background: var(--accent-warn); }
.status-dot.error { background: var(--accent-err); }

.res-url-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-2);
    text-decoration: none;
    word-break: break-all;
}

.res-url-text:hover { text-decoration: underline; }

.res-meta-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.res-meta-sep { color: var(--border); font-size: 0.8rem; }

/* Score Widget */
.score-widget {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.score-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.score-track {
    fill: none;
    stroke: var(--bg-raised);
    stroke-width: 5;
}

.score-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    transition: stroke-dashoffset 1s var(--ease), stroke 0.5s;
}

.score-fill.good     { stroke: var(--accent); }
.score-fill.average  { stroke: var(--accent-3); }
.score-fill.poor     { stroke: var(--accent-err); }
.score-fill.excellent{ stroke: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

.score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.score-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════════════════════ */
.tabs-nav {
    display: flex;
    gap: 2px;
    padding: 12px 0 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 16px 12px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    margin-bottom: -1px;
}

.tab-btn svg { opacity: 0.6; transition: opacity var(--dur); }

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-raised);
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn.active svg { opacity: 1; }

/* Painéis */
.tab-panel {
    padding: 28px 0;
    animation: fadeTab 0.2s var(--ease) both;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREVIEW CARDS
═══════════════════════════════════════════════════════════════════════════ */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card largo ocupa toda a linha */
.preview-card-wide { grid-column: 1 / -1; }

.preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    min-width: 0; /* evita overflow em grid */
    transition: border-color var(--dur), box-shadow var(--dur);
}

.preview-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-md);
}

.preview-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-raised);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Facebook Preview ─────────────────────────────────────────────────────── */
.preview-fb { background: var(--bg-surface); }

.pfb-img-wrap {
    position: relative;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    overflow: hidden;
}

.pfb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.pfb-img.loaded { display: block; }

.pfb-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pfb-body {
    padding: 12px 16px 14px;
    background: var(--bg-raised);
    border-top: 3px solid #3a5998;
}

.pfb-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.pfb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pfb-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ── WhatsApp Preview ─────────────────────────────────────────────────────── */
.preview-wa {
    background: var(--bg-surface);
    padding: 16px;
}

.pwa-img-wrap {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    position: relative;
    margin-bottom: 12px;
}

.pwa-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.pwa-img.loaded { display: block; }

.pwa-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pwa-body {
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: var(--r-md);
    padding: 12px;
    border-left: 4px solid #25D366;
}

.pwa-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #25D366;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pwa-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pwa-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* ── Twitter Preview ─────────────────────────────────────────────────────── */
.preview-tw {
    background: var(--bg-surface);
    padding: 16px;
}

.ptw-img-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 1200/630;
    position: relative;
    margin-bottom: 10px;
}

.ptw-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ptw-img.loaded { display: block; }

.ptw-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.ptw-body {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
}

.ptw-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptw-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.ptw-domain {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Discord Preview ─────────────────────────────────────────────────────── */
.preview-dc { background: #313338; border-radius: 0 0 var(--r-xl) var(--r-xl); }

.pdc-bar {
    height: 4px;
    background: #5865F2;
}

.pdc-body {
    padding: 14px 16px 16px;
    border-left: 4px solid #5865F2;
    margin: 10px;
    background: rgba(88,101,242,0.08);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.pdc-site {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5865F2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.pdc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00aff4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdc-desc {
    font-size: 0.8rem;
    color: #b9bbbe;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pdc-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--r-md);
    display: none;
}

.pdc-img.loaded { display: block; }

.pdc-img-ph {
    background: #1e1f22;
    border-radius: var(--r-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    min-height: 80px;
}

/* ── Google Preview ─────────────────────────────────────────────────────── */
.preview-google { padding: 20px; }

.pg-domain-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.pg-favicon {
    width: 26px;
    height: 26px;
    background: var(--bg-raised);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pg-favicon img { width: 16px; height: 16px; }

.pg-domain-info { display: flex; flex-direction: column; }

.pg-domain-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.pg-breadcrumb {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.pg-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: #8ab4f8;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

[data-theme="light"] .pg-title { color: #1a0dab; }

.pg-title:hover { text-decoration: underline; }

.pg-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAGS TABLE
═══════════════════════════════════════════════════════════════════════════ */
.tags-section {}

.tags-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tags-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 0;
}

.tags-badge {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 99px;
}

.tags-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.tags-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tags-table thead th {
    background: var(--bg-raised);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}

.tags-table tbody tr {
    border-bottom: 1px solid var(--border-soft);
    transition: background var(--dur);
}

.tags-table tbody tr:last-child { border-bottom: none; }
.tags-table tbody tr:hover { background: var(--bg-raised); }

.tags-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Coluna de propriedade */
.td-prop {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-2);
    white-space: nowrap;
}

/* Coluna de valor */
.td-valor {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 400px;
}

.td-valor-link {
    color: var(--accent-2);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    word-break: break-all;
}

.td-valor-link:hover { text-decoration: underline; }

.td-valor-img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 8px;
}

.td-vazio {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
}

/* Status pills */
.td-status { white-space: nowrap; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

.pill-ok {
    background: rgba(74,222,128,0.1);
    color: var(--accent);
    border: 1px solid rgba(74,222,128,0.25);
}

.pill-error {
    background: rgba(248,113,113,0.1);
    color: var(--accent-err);
    border: 1px solid rgba(248,113,113,0.25);
}

.pill-warn {
    background: rgba(251,191,36,0.1);
    color: var(--accent-warn);
    border: 1px solid rgba(251,191,36,0.25);
}

.pill-info {
    background: rgba(96,165,250,0.1);
    color: var(--accent-2);
    border: 1px solid rgba(96,165,250,0.25);
}

/* Coluna comprimento */
.td-len {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
}

.len-ok   { color: var(--accent); }
.len-warn { color: var(--accent-warn); }
.len-bad  { color: var(--accent-err); }

/* ═══════════════════════════════════════════════════════════════════════════
   SCHEMA.ORG
═══════════════════════════════════════════════════════════════════════════ */
.schema-content {}

.schema-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.schema-type {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--accent2-glow);
    border-radius: 99px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.schema-json {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-code);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CODE EDITOR (SNIPPET)
═══════════════════════════════════════════════════════════════════════════ */
.snippet-intro {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.snippet-intro code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--bg-raised);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    color: var(--accent-2);
    border: 1px solid var(--border);
}

.code-editor-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-editor-header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }

.code-filename {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-editor {
    background: var(--bg-code);
    color: var(--text-code);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    padding: 24px;
    overflow-x: auto;
    white-space: pre;
    min-height: 200px;
    outline: none;
    margin: 0;
    counter-reset: line;
}

/* Syntax highlight básico via JS classes */
.hl-tag   { color: #f87171; }
.hl-attr  { color: #a78bfa; }
.hl-val   { color: #a8d8c8; }
.hl-com   { color: #4a5568; font-style: italic; }
.hl-eq    { color: #fbbf24; }

/* Botão copiar */
.btn-copy-snippet {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    margin-left: auto;
}

.btn-copy-snippet:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIAGNÓSTICO
═══════════════════════════════════════════════════════════════════════════ */
.diag-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.diag-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.diag-error { color: var(--accent-err); }
.diag-warn  { color: var(--accent-warn); }

.diag-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diag-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--r-md);
}

.diag-list.lista-erros li {
    background: rgba(248,113,113,0.06);
    border: 1px solid rgba(248,113,113,0.12);
    color: var(--text-primary);
}

.diag-list.lista-avisos li {
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.12);
    color: var(--text-primary);
}

.diag-list li::before {
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 1px;
}

.sem-diag {
    font-size: 0.875rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Redirects */
.redirect-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
}

.redirect-item:last-child { border-bottom: none; }

.redirect-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    font-weight: 700;
}

.code-200 { background: rgba(74,222,128,0.1); color: var(--accent); }
.code-301, .code-302 { background: rgba(251,191,36,0.1); color: var(--accent-warn); }
.code-404, .code-500 { background: rgba(248,113,113,0.1); color: var(--accent-err); }

.redirect-url {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    word-break: break-all;
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.chk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
    transition: all var(--dur) var(--ease);
}

.chk-item.chk-ok {
    background: rgba(74,222,128,0.06);
    border-color: rgba(74,222,128,0.2);
    color: var(--text-primary);
}

.chk-item.chk-fail {
    background: rgba(248,113,113,0.06);
    border-color: rgba(248,113,113,0.2);
    color: var(--text-muted);
}

.chk-icon { font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   SEÇÕES INFORMATIVAS
═══════════════════════════════════════════════════════════════════════════ */
.info-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.info-section-alt { background: var(--bg-surface); }

.info-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.info-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur), transform var(--dur);
}

.step-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-card h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Ref Grid */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ref-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}

.ref-card h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ref-card ul { list-style: none; }

.ref-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-card li:last-child { border-bottom: none; }
.ref-card li::before { content: '→'; color: var(--text-muted); font-size: 0.75rem; }

.ref-card code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-2);
    background: var(--bg-code);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer-bottom {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.footer-logo strong { color: var(--accent); font-weight: 600; font-style: normal; }

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.sem-dados {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 20px 0;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLACK PREVIEW
═══════════════════════════════════════════════════════════════════════════ */
.preview-slack { background: var(--bg-surface); padding: 16px; }

.psl-wrap {
    display: flex;
    gap: 0;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.psl-bar {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #E01E5A 0%, #ECB22E 50%, #2EB67D 100%);
}

.psl-body { padding: 12px 14px; flex: 1; }

.psl-domain {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-family: var(--font-mono);
}

.psl-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1264a3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="light"] .psl-title { color: #1264a3; }

.psl-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.psl-img-wrap {
    position: relative;
    background: var(--bg-code);
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 1200/630;
    max-height: 140px;
}

.psl-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.psl-img.loaded { display: block; }

.psl-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TELEGRAM PREVIEW
═══════════════════════════════════════════════════════════════════════════ */
.preview-tg { background: #17212B; padding: 16px; border-radius: 0 0 var(--r-xl) var(--r-xl); }

.ptg-bubble {
    background: #1c2a3a;
    border-radius: 4px 12px 12px 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 320px;
}

.ptg-img-wrap {
    position: relative;
    background: #111c27;
    aspect-ratio: 1200/630;
    overflow: hidden;
}

.ptg-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.ptg-img.loaded { display: block; }

.ptg-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a5068;
}

.ptg-body {
    padding: 10px 12px 12px;
    border-left: 3px solid #26A5E4;
}

.ptg-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #26A5E4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptg-desc {
    font-size: 0.8rem;
    color: #8db0c8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ptg-domain {
    font-size: 0.72rem;
    color: #4a6680;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPETOR DE IMAGEM OG
═══════════════════════════════════════════════════════════════════════════ */
.img-inspector-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-code);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0;
}

.img-inspector-body { padding: 20px; }

/* Campo de input da imagem */
.img-inspector-input-row { margin-bottom: 20px; }

.img-inspector-field { display: flex; flex-direction: column; gap: 6px; }

.iif-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.iif-wrap {
    display: flex;
    gap: 8px;
    background: var(--bg-code);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 6px 6px 6px 14px;
    transition: border-color var(--dur);
}

.iif-wrap:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px var(--accent2-glow);
}

.iif-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 0;
}

.iif-input::placeholder { color: var(--text-muted); }

.iif-btn {
    background: var(--accent-2);
    color: #0a0b0f;
    border: none;
    border-radius: var(--r-sm);
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.iif-btn:hover {
    background: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(96,165,250,0.35);
}

/* Loading do inspetor */
.img-inspector-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}
.img-inspector-loading[hidden] {
    display: none !important;
}

.img-insp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-2);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Resultado: layout em duas colunas */
.img-insp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.img-insp-col-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Prévia da imagem */
.img-insp-preview-wrap {
    position: relative;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 1200/630;
    margin-bottom: 10px;
}

.img-insp-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: repeating-conic-gradient(#1a1c25 0% 25%, #14151c 0% 50%) 0 0 / 20px 20px;
    display: none;
}

.img-insp-preview.loaded { display: block; }

.img-insp-preview-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-align: center;
    padding: 16px;
}

/* Régua de proporção */
.img-ratio-ruler { margin-top: 0; }

.ratio-bar-wrap {
    position: relative;
    height: 6px;
    background: var(--bg-code);
    border-radius: 99px;
    border: 1px solid var(--border);
    margin-bottom: 6px;
    overflow: visible;
}

.ratio-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-err), var(--accent-warn), var(--accent), var(--accent-warn), var(--accent-err));
    border-radius: 99px;
    transition: width 0.5s var(--ease);
    max-width: 100%;
}

/* Marcador da proporção ideal (1.91:1 = ~63%) */
.ratio-ideal-mark {
    position: absolute;
    top: -4px;
    left: 62.5%;
    width: 2px;
    height: 14px;
    background: var(--accent);
    border-radius: 1px;
    transform: translateX(-50%);
}

.ratio-ideal-mark::after {
    content: '1.91:1';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--accent);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.ratio-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 20px;
}

/* Itens de diagnóstico */
.img-insp-diag-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.img-diag-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-raised);
    transition: background var(--dur);
}

.img-diag-item:hover { background: var(--bg-hover); }

.img-diag-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }

.img-diag-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.img-diag-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1;
}

.img-diag-val {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    word-break: break-all;
    line-height: 1.3;
}

.img-diag-val.val-ok    { color: var(--accent); }
.img-diag-val.val-error { color: var(--accent-err); }
.img-diag-val.val-warn  { color: var(--accent-warn); }

/* Avisos da imagem */
.img-diag-avisos {
    margin-top: 8px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: var(--r-md);
    padding: 12px 14px;
}

.img-diag-avisos-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-warn);
    margin-bottom: 8px;
}

.img-diag-avisos ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.img-diag-avisos li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.img-diag-avisos li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-warn);
    font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVIDADE
═══════════════════════════════════════════════════════════════════════════ */

/* Tablet paisagem: 2 colunas */
@media (max-width: 1100px) {
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-card-wide { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero { padding: 60px 20px 80px; }
    .hero-title { font-size: 2rem; }
    .search-wrap { border-radius: var(--r-lg); padding: 4px 4px 4px 14px; }
    .search-btn { padding: 10px 18px; font-size: 0.85rem; }
    /* Mobile: 1 coluna */
    .preview-grid { grid-template-columns: 1fr; }
    .preview-card-wide { grid-column: 1; }
    .resultado-wrapper { padding: 0 16px 60px; }
    .tab-btn span { display: none; }
    .checklist-grid { grid-template-columns: 1fr 1fr; }
    .res-header { flex-direction: column; }
    /* Inspetor de imagem: empilha colunas no mobile */
    .img-insp-cols { grid-template-columns: 1fr; }
    .iif-wrap { flex-direction: column; gap: 6px; padding: 10px 12px; }
    .iif-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .hero { padding: 48px 16px 64px; }
    .search-btn .btn-text::after { content: '→'; }
    .search-btn .btn-text { font-size: 0; }
    .search-btn .btn-text::after { font-size: 1rem; }
    .checklist-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr; }
}

/* ── Animações de entrada ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #2: HISTORY DRAWER
═══════════════════════════════════════════════════════════════════════════ */
.btn-history {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
    position: relative;
}
.btn-history:hover { color: var(--accent-2); border-color: var(--accent-2); }

.history-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.history-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 370px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.history-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.drawer-close:hover { color: var(--text-primary); }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.drawer-clear-btn {
    width: 100%;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    color: var(--accent-err);
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--dur);
}
.drawer-clear-btn:hover { background: rgba(248,113,113,0.15); }

.sem-dados {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 0.9rem;
}

.hist-item {
    padding: 12px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--dur);
    border-bottom: 1px solid var(--border-soft);
}
.hist-item:hover {
    background: var(--bg-raised);
}
.hist-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.hist-domain {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 500;
}
.hist-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hist-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hist-score {
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.hist-score-good { color: var(--accent); }
.hist-score-avg  { color: var(--accent-warn); }
.hist-score-poor { color: var(--accent-err); }
.hist-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hist-diff, .history-diff {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    font-family: var(--font-mono);
}
.diff-up {
    background: rgba(74,222,128,0.12);
    color: var(--accent);
}
.diff-down {
    background: rgba(248,113,113,0.12);
    color: var(--accent-err);
}
.history-diff {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    animation: fadeInUp 0.4s var(--ease) both;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #1: PERFORMANCE AUDIT STYLES
═══════════════════════════════════════════════════════════════════════════ */
.perf-score-bar {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-raised);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}
.perf-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.perf-score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.perf-score-num {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.perf-bar-track {
    height: 8px;
    background: var(--bg-base);
    border-radius: 99px;
    overflow: hidden;
}
.perf-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s var(--ease);
}
.perf-bar-fill.grade-good { background: linear-gradient(90deg, var(--accent), #22d3ee); }
.perf-bar-fill.grade-avg  { background: linear-gradient(90deg, #eab308, #f97316); }
.perf-bar-fill.grade-poor { background: linear-gradient(90deg, var(--accent-err), #dc2626); }

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .perf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .perf-grid { grid-template-columns: 1fr; }
}

.perf-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    text-align: center;
    transition: border-color var(--dur);
}
.perf-card:hover { border-color: var(--accent-2); }
.perf-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.perf-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.perf-card-val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}
.perf-card-val.val-ok    { color: var(--accent); }
.perf-card-val.val-warn  { color: var(--accent-warn); }
.perf-card-val.val-error { color: var(--accent-err); }

.perf-checks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.perf-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--dur);
}
.perf-check-item.check-ok   { border-left: 3px solid var(--accent); }
.perf-check-item.check-fail { border-left: 3px solid var(--accent-err); }
.perf-check-icon { font-size: 1.1rem; flex-shrink: 0; padding-top: 1px; }
.perf-check-info { flex: 1; }
.perf-check-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.perf-check-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.perf-check-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #c8d0e0;
    background: var(--bg-code);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.btn-monitor {
    background: linear-gradient(135deg, var(--accent-2), #818cf8);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--r-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    letter-spacing: 0.03em;
}
.btn-monitor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(96,165,250,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #4: OG IMAGE CREATOR
═══════════════════════════════════════════════════════════════════════════ */
.ogimg-creator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
@media (max-width: 800px) {
    .ogimg-creator { grid-template-columns: 1fr; }
}

.ogimg-preview-col {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.ogimg-preview-col canvas {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ogimg-controls-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ogimg-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.ogimg-input, .ogimg-select {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--dur);
}
.ogimg-input:focus, .ogimg-select:focus { border-color: var(--accent); }
.ogimg-select { cursor: pointer; }
.ogimg-select option { background: var(--bg-surface); }

.ogimg-color {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    background: transparent;
    padding: 2px;
}
.ogimg-color::-webkit-color-swatch-wrapper { padding: 0; }
.ogimg-color::-webkit-color-swatch { border: none; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #5: MONITOR MODAL
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s var(--ease);
}
.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    width: 450px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s var(--ease) both;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-body { padding: 24px; }
.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}
.modal-field { margin-bottom: 16px; }
.modal-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.modal-input {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--dur);
}
.modal-input:focus { border-color: var(--accent); }
.modal-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}
.modal-submit {
    width: 100%;
    background: var(--accent);
    color: #0a0b0f;
    border: none;
    padding: 12px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur);
    margin-top: 8px;
}
.modal-submit:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74,222,128,0.4);
}
.modal-status {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE #3: API DOCS SECTION
═══════════════════════════════════════════════════════════════════════════ */
.api-example-card {
    max-width: 740px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-editor-wrap {
    background: var(--bg-code);
    border-bottom: 1px solid var(--border);
}
.code-editor-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}
.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    align-self: flex-start;
    word-break: break-all;
    margin-top: 4px;
}
[data-theme="light"] .perf-check-val {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .perf-check-item:hover {
    background: #ffffff;
    border-color: rgba(0,0,0,0.15);
}


/* --- Extração Automática de Inline Styles (Auditoria V2) --- */
.csp-style-87fa3a { text-decoration: none; color: inherit; cursor: pointer; }
.csp-style-6e9504 { padding: 6px 14px; font-size: 13px; margin-left: 10px; border-radius: 6px; background: linear-gradient(135deg, #FF6B6B 0%, #FECA57 100%); border: none; font-weight: 600; }
.csp-style-b1b1f4 { padding:10px; cursor: pointer; }
.csp-style-adb344 { background-color: var(--accent); margin-top: 10px; }
.csp-style-7d701b { max-width: 800px; }
.csp-style-675b7c { display: flex; gap: 10px; margin-bottom: 20px; }
.csp-style-fbe3ef { white-space: nowrap; padding: 0 20px; }
.csp-style-96ab08 { margin-top: 20px; max-height: 400px; overflow-y: auto; }
.csp-style-72c33a { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }
.csp-style-63dc25 { margin-right:4px; }
.csp-style-214d83 { margin-left: 10px; }
.csp-style-3da5c5 { cursor:pointer; background:none; border:none; color:var(--accent); font-weight:bold; padding:0; font-family:inherit; font-size:0.9rem; }
.csp-style-d6d412 { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: var(--r-sm); border: 1px solid var(--border-soft); display: none; }
.csp-style-827f07 { background: var(--bg-surface); border: 1px dashed var(--border); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-md); }
.csp-style-73ac18 { width: 64px; height: 64px; box-shadow: none; margin: 0; }
.csp-style-a8098e { max-width: 100%; max-height: 100%; object-fit: contain; }
.csp-style-224b51 { display: none; }
.csp-style-0425ba { margin-top: 16px; font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); font-weight: 500; }
.csp-style-cdd8ca { text-align: center; }
.csp-style-9b992f { display:inline-block; padding: 20px; text-align: center; width: 100%; }
.csp-style-2787f9 { font-size:0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.csp-style-4dea33 { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.csp-style-bad75b { margin-top: 40px; }
.csp-style-b512c9 { display: flex; align-items: center; gap: 10px; }
.csp-style-8ef655 { width: 16px; height: 16px; display: inline-block; }
.csp-style-890957 { display:none; font-size: 0.8rem; color: var(--accent); text-decoration: none; margin-top: 10px; }
.csp-style-d77719 { color: var(--text-muted); font-size: 0.85rem; }
.csp-style-be9ed8 { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.csp-style-6eb4b6 { color: var(--accent); }
.csp-style-8fdd06 { background: var(--bg-surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border); max-width: 100%; overflow-x: auto; }
.csp-style-1acca5 { max-height: 250px; }
.csp-style-119a33 { opacity: 0.5; margin-bottom: 25px; }
.csp-style-9a9b49 { background: rgba(255,107,107,0.1); color:#ff6b6b; }
.csp-style-da21c8 { background: rgba(254,202,87,0.1); color:#feca57; }
.csp-style-ea5fa8 { background: rgba(29,209,161,0.1); color:#1dd1a1; }
.csp-style-c57a8f { background: rgba(72,219,251,0.1); color:#48dbfb; }
.csp-style-b7816e { text-align: center; font-weight: 500; font-size: 0.95rem; }
.csp-style-5e9646 { font-size: 1.1rem; margin-top: 32px; }
.csp-style-135c76 { text-align: center; margin-top: 28px; }
.csp-style-bc0275 { color: var(--text-secondary); max-width: 600px; margin: 0 auto 30px; text-align: center; line-height: 1.7; }
.csp-style-dee1f8 { font-size: 0.85rem; line-height: 1.6; }
.csp-style-fd496c { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4); padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.csp-style-85e091 { color: #FF6B6B; margin-top: 0; display: flex; align-items: center; gap: 8px; }
.csp-style-1551e6 { font-size: 24px; }
.csp-style-a5a038 { font-size: 14px; font-weight: normal; color: var(--text-secondary); }
.csp-style-f95b73 { list-style: none; padding: 0; margin: 15px 0 0 0; }
.csp-style-ccd7dd { margin-bottom: 8px; }
.csp-style-f83770 { font-size: 14px; color: var(--text-secondary); margin-bottom: 15px; }
.csp-style-0f3f4f { width: 100%; font-size: 16px; padding: 14px; background: linear-gradient(135deg, #FF6B6B 0%, #FECA57 100%); border: none; }


/* Shared Footer Styles */
.footer { background: #111827; color: #9ca3af; padding: 60px 5% 40px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 16px; display: inline-block; }
.footer-links { display: flex; gap: 40px; }
.footer-links h4 { color: #fff; font-weight: 600; margin: 0 0 20px; }
.footer-links a { display: block; color: #9ca3af; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 0.9rem; }

.wpp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; border-radius: 50px; height: 60px; padding: 0 25px 0 20px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(37,211,102,0.3); z-index: 9999; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wpp-text { color: #fff; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.wpp-float:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 25px rgba(37,211,102,0.4); }
.wpp-float svg { width: 32px; height: 32px; flex-shrink: 0; }

.cookie-consent { position: fixed; bottom: 30px; left: 30px; max-width: 350px; background: #111827; color: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); z-index: 9998; border: 1px solid rgba(255,255,255,0.1); transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p { font-size: 0.85rem; line-height: 1.5; color: #9ca3af; margin: 0 0 15px; }
.cookie-consent button { background: #4f46e5; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background 0.2s; width: 100%; }
@media (max-width: 768px) {
    .wpp-float { bottom: 20px; right: 20px; width: 60px; height: 60px; padding: 0; justify-content: center; }
    .wpp-text { display: none; }
    .cookie-consent { bottom: 20px; left: 20px; right: 20px; max-width: auto; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}



/* ── SEARCH FORM (Recriado para Dashboard) ───────────────────────────────── */
.search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 6px 6px 6px 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease);
}

.search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent2-glow);
}

.search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.search-form.carregando .search-btn {
    pointer-events: none;
    opacity: 0.8;
}

/* ── HISTORY DRAWER ──────────────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.drawer-overlay[hidden] {
    opacity: 0;
    pointer-events: none;
    display: block !important;
}

.history-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.drawer-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.drawer-close:hover { color: var(--text-primary); }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.hist-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.hist-item:hover {
    background: var(--bg-raised);
}

.hist-item-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: flex-start;
}

.hist-domain {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    max-width: 200px;
}

.hist-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.hist-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hist-score {
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-display);
}

.hist-score-good { color: var(--accent); }
.hist-score-avg { color: var(--accent-warn); }
.hist-score-poor { color: var(--accent-err); }

.hist-diff {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.diff-up { background: rgba(74,222,128,0.15); color: var(--accent); }
.diff-down { background: rgba(248,113,113,0.15); color: var(--accent-err); }

.hist-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.drawer-clear-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.drawer-clear-btn:hover {
    background: rgba(248,113,113,0.1);
    color: var(--accent-err);
    border-color: rgba(248,113,113,0.3);
}

.sem-dados {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}
