/* ============================================================
   Agência Parque — Diagnóstico Completo da Comunicação da Marca
   Design System baseado no padrão interno Agência Parque
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Paleta idêntica ao sistema interno */
    --primary:          #D8581E;
    --primary-dark:     #B8450F;
    --primary-light:    #FFF3EC;
    --primary-gradient: linear-gradient(135deg, #D8581E, #E8733A);

    /* Azul Parque — header, sidebar, tabelas */
    --dark:             #1A1A2E;
    --dark-hover:       rgba(216, 88, 30, 0.12);
    --dark-active:      rgba(216, 88, 30, 0.18);

    /* Superfícies */
    --bg:               #F5F5F7;
    --surface:          #FFFFFF;
    --border:           #E5E7EB;
    --border-light:     #F3F4F6;

    /* Texto */
    --text:             #1A1A2E;
    --text-secondary:   #6B7280;
    --text-muted:       #9CA3AF;

    /* Semânticos */
    --success:          #059669;
    --success-light:    #ECFDF5;
    --warning:          #F59E0B;
    --warning-light:    #FFFBEB;
    --danger:           #DC2626;
    --danger-light:     #FEF2F2;
    --info:             #3B82F6;
    --info-light:       #EFF6FF;

    /* Sombras */
    --shadow-sm:  0 1px 2px rgba(0,0,0,.04);
    --shadow:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 10px 25px rgba(0,0,0,.08);

    /* Bordas arredondadas */
    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;

    --transition: 0.2s ease;

    /* Fontes */
    --fonte-titulo: 'Alegreya Sans', sans-serif;
    --fonte-corpo:  'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fonte-corpo);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--fonte-titulo); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ─── SCROLLBAR ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── ÍCONES SVG ──────────────────────────────────────────────────────── */
.icon-svg {
    display: inline-block;
    width: 16px; height: 16px;
    stroke-width: 1.8;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ─── BOTÕES ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--fonte-corpo);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216,88,30,.3);
}

.btn-outline {
    background: var(--surface);
    color: var(--text) !important;
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: none;
}

/* ─── HEADER ──────────────────────────────────────────────────────────── */
.header {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: 16px; }
.header-logo  { max-height: 28px; width: auto; object-fit: contain; }
.header-badge {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── FORMULÁRIO (index.php) ──────────────────────────────────────────── */
.hero-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--fonte-corpo);
    font-size: 14px;
    transition: all var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216,88,30,.1);
}
.form-control::placeholder { color: var(--text-muted); }

/* ─── TELA DE PROGRESSO ───────────────────────────────────────────────── */
#progress-screen {
    max-width: 580px;
    margin: 64px auto;
    padding: 0 20px;
    width: 100%;
}
.progress-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.progress-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0 10px;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width .3s ease;
}

/* Etapas */
.progress-etapas { text-align: left; margin-top: 20px; }
.etapa-item {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-muted);
    transition: all .3s;
}
.etapa-item.active { color: var(--dark); font-weight: 600; }
.etapa-item.done   { color: var(--success); }
.etapa-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.etapa-item.active .etapa-dot { animation: pulseDot 1s ease-in-out infinite; }
@keyframes pulseDot {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: .5; }
}

/* ─── TELAS DE ERRO ───────────────────────────────────────────────────── */
#erro-screen { max-width: 580px; margin: 64px auto; padding: 0 20px; text-align: center; }

/* ─── RESULTADO: HERO ─────────────────────────────────────────────────── */
#resultado-screen { display: none; width: 100%; }

.hero-resultado {
    background: var(--dark);
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.hero-nota-circulo {
    position: relative;
    width: 110px; height: 110px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-nota-numero {
    position: absolute;
    display: flex; flex-direction: column; align-items: center;
}
.hero-nota-numero .numero {
    font-family: var(--fonte-titulo);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.hero-nota-numero .de10 { font-size: 0.72rem; color: rgba(255,255,255,.5); font-weight: 600; }
.hero-url {
    font-family: var(--fonte-titulo);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.hero-mensagem { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; }
.hero-mensagem strong { color: #fff; }

/* ─── CONTEÚDO DOS RESULTADOS ─────────────────────────────────────────── */
.conteudo-resultados {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
    width: 100%;
}

/* ─── AÇÕES ───────────────────────────────────────────────────────────── */
.acoes-header { margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── ROI BANNER ──────────────────────────────────────────────────────── */
.roi-impact-box {
    background: var(--warning-light);
    border: 1px solid #FDE68A;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.roi-impact-title {
    font-family: var(--fonte-titulo);
    font-weight: 800;
    font-size: 1.1rem;
    color: #78350F;
    display: flex;
    align-items: center;
    gap: 8px;
}
.roi-impact-sub { font-size: 13px; color: #92400E; margin-top: 4px; }

/* ─── CARDS DE MÉTRICAS ───────────────────────────────────────────────── */
.grade-metricas {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.card-metrica {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.card-metrica:hover { box-shadow: var(--shadow-md); }
.card-metrica::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cor-metrica, var(--primary));
    border-radius: var(--radius) var(--radius) 0 0;
}
.metrica-header {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; margin-bottom: 10px; color: var(--text-secondary);
}
.metrica-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ─── TABS ────────────────────────────────────────────────────────────── */
.tabs-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tabs-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border);
}

.tabs-nav {
    display: flex;
    min-width: max-content;
    /* Estilo de tab idêntico ao crud.css */
}
.tab-btn {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--fonte-corpo);
    letter-spacing: 0;
    text-transform: none;
}
.tab-btn:hover { color: var(--text); background: rgba(0,0,0,.03); }
.tab-btn.ativo  { color: var(--primary); border-bottom-color: var(--primary); background: var(--surface); }

.tab-panel { display: none; }
.tab-panel.ativo { display: block; }
.tab-content-inner { padding: 28px 32px; }
.tab-panel > div:not(:empty) + div:not(:empty) { border-top: 1px solid #E2E8F0; }

/* ─── SEÇÃO ───────────────────────────────────────────────────────────── */
.secao-titulo {
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px;
}
.secao-subtitulo { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.secao-sep {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 14px;
}

/* ─── EXPLICAÇÃO HUMANA (info box) ───────────────────────────────────── */
.explicacao-humana {
    background: var(--info-light);
    border-left: 3px solid var(--info);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 13px 16px;
    font-size: 13.5px;
    color: #1E3A8A;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ─── INFO BOXES COLORIDAS ────────────────────────────────────────────── */
.info-box {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
}
.info-box.sucesso { background: var(--success-light); border-color: #A7F3D0; color: #065F46; }
.info-box.alerta  { background: var(--warning-light); border-color: #FDE68A; color: #78350F; }
.info-box.perigo  { background: var(--danger-light);  border-color: #FECACA; color: #7F1D1D; }
.info-box.info    { background: var(--info-light);    border-color: #BFDBFE; color: #1E3A8A; }
.info-box strong  { font-weight: 700; }

/* ─── DATA GRID ───────────────────────────────────────────────────────── */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.data-card:hover { box-shadow: var(--shadow-md); }
.data-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.data-card-value {
    font-family: var(--fonte-titulo);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.data-card-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

/* ─── SEO GRADE ───────────────────────────────────────────────────────── */
.seo-grade { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.seo-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
}
.seo-item:last-child { border-bottom: none; }
.seo-item:hover { background: #FAFAFA; }
.seo-item-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 170px;
}
.seo-item-valor {
    font-size: 13.5px;
    color: var(--text);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* ─── CHECK ITEM ──────────────────────────────────────────────────────── */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-bottom: none;
    font-size: 13.5px;
    transition: background var(--transition);
}
.check-item:first-of-type { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-top: 1px solid var(--border); }
.check-item:last-of-type  { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-bottom: 16px; }
.check-item:hover { background: #FAFAFA; }
.check-icon { flex-shrink: 0; margin-top: 1px; }

/* ─── BADGES ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;         /* pill — padrão AP */
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-ok   { background: var(--success-light); color: var(--success); }
.badge-erro { background: var(--danger-light);  color: var(--danger);  }
.badge-warn { background: var(--warning-light); color: #D97706;        }
.badge-info { background: var(--info-light);    color: var(--info);    }

/* ─── GRID DE IMAGENS COM THUMBNAIL ──────────────────────────────────── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.img-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.img-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.img-card.problema { border-color: #FCA5A5; }
.img-card.ok-card  { border-color: #6EE7B7; }
.img-thumb {
    width: 100%; height: 100px;
    object-fit: cover;
    display: block;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.img-thumb-placeholder {
    width: 100%; height: 100px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
}
.img-card-body { padding: 10px 12px; }
.img-card-nome {
    font-size: 12px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 6px;
}
.img-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ─── TABELAS ─────────────────────────────────────────────────────────── */
.tabela-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tabela-dados { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela-dados th {
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}
.tabela-dados td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}
.tabela-dados tr:last-child td { border-bottom: none; }
.tabela-dados tr:hover td { background: #FAFAFA; }

/* ─── PROBLEMA ITEM ───────────────────────────────────────────────────── */
.problema-grupo-titulo {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 0 10px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.problema-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 13px 16px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
    margin-bottom: 6px;
    transition: box-shadow var(--transition);
}
.problema-item:hover { box-shadow: var(--shadow-sm); }
.problema-categoria {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-muted); margin-bottom: 4px;
}
.problema-texto { font-size: 13.5px; color: var(--text); line-height: 1.55; }

/* ─── RECOMENDAÇÃO ────────────────────────────────────────────────────── */
.recomendacao-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.recomendacao-item:hover { box-shadow: var(--shadow-md); }
.rec-numero {
    width: 28px; height: 28px; min-width: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--fonte-titulo);
    flex-shrink: 0;
    border-radius: 50%;
}
.rec-titulo  { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 5px; }
.rec-detalhe { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.rec-impacto-badge {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1.5px solid;
}

/* ─── SCHEMA CODE ─────────────────────────────────────────────────────── */
.schema-code {
    background: var(--dark);
    color: #94A3B8;
    padding: 14px 16px;
    font-size: 12px;
    font-family: 'Fira Code', 'Consolas', monospace;
    overflow-x: auto;
    max-height: 140px;
    line-height: 1.7;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    margin-top: 6px;
}

/* ─── ROBOTS PRE ──────────────────────────────────────────────────────── */
pre.robots-content {
    background: var(--dark);
    color: #94A3B8;
    padding: 14px 16px;
    font-size: 12px;
    font-family: 'Fira Code', 'Consolas', monospace;
    overflow-x: auto;
    max-height: 200px;
    line-height: 1.7;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* ─── DENSIDADE BARRA ─────────────────────────────────────────────────── */
.densidade-barra { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.densidade-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.densidade-fill  { height: 100%; background: var(--primary); border-radius: 3px; }

/* ─── WHATSAPP FLUTUANTE ──────────────────────────────────────────────── */
#whatsapp-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform .2s;
}
#whatsapp-btn:hover { transform: scale(1.08); }
#whatsapp-btn svg   { width: 30px; height: 30px; fill: #fff; }

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
    margin-top: auto;
    background: var(--dark);
    color: rgba(255,255,255,.45);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* ─── CTA FINAL ───────────────────────────────────────────────────────── */
.cta-final-bloco { background: var(--dark); padding: 56px 24px; text-align: center; }
.cta-final-inner { max-width: 560px; margin: 0 auto; }
.cta-final-titulo {
    font-family: var(--fonte-titulo);
    font-size: 2rem; font-weight: 800;
    color: #fff; margin-bottom: 12px;
}
.cta-final-sub { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 28px; line-height: 1.7; }
.cta-final-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff !important;
    padding: 14px 32px; font-weight: 700; font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background .2s, transform .2s;
}
.cta-final-btn:hover { background: #1DAF58; transform: translateY(-1px); }

/* ─── RESPONSIVIDADE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grade-metricas { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .hero-resultado { flex-direction: column; text-align: center; padding: 28px 20px; gap: 20px; }
    .hero-url { font-size: 1.2rem; }
    .hero-nota-numero .numero { font-size: 2rem; }
    .grade-metricas { grid-template-columns: repeat(2, 1fr); }
    .conteudo-resultados { padding: 20px 16px; }
    .tab-content-inner { padding: 20px; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-item { flex-direction: column; gap: 3px; }
    .seo-item-label { min-width: auto; }
    .seo-item-valor { text-align: left; }
    .img-grid { grid-template-columns: repeat(2, 1fr); }
    .roi-impact-box { flex-direction: column; }
    .recomendacao-item { flex-direction: column; }
    .acoes-header { flex-direction: column; }
    .tabela-wrap { font-size: 12px; }
}

/* ─── IMPRESSÃO ───────────────────────────────────────────────────────── */
@media print {
    body { background: #fff !important; font-size: 12px; }
    .header, .footer, #whatsapp-btn, .acoes-header, .cta-final-bloco, .roi-impact-box { display: none !important; }
    .hero-resultado { -webkit-print-color-adjust: exact; color-adjust: exact; }
    .tab-panel { display: block !important; }
    .tabs-scroll-container { display: none !important; }
    .tab-content-inner { padding: 12px 0 !important; }
    .tabs-wrapper, .card-metrica, .data-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* FIX CHECK-LIST */
.check-list { display: flex; flex-direction: column; width: 100%; margin-bottom: 16px; }
.check-list .check-item { width: 100%; display: flex; align-items: flex-start; }

/* SCROLL LATERAL PARA ABAS */
.tabs-scroll-container {
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.tabs-scroll-container::-webkit-scrollbar { 
    height: 6px; 
}
.tabs-scroll-container::-webkit-scrollbar-track { 
    background: transparent; 
}
.tabs-scroll-container::-webkit-scrollbar-thumb { 
    background: #CBD5E1; 
    border-radius: 4px; 
}
.tabs-scroll-container::-webkit-scrollbar-thumb:hover { 
    background: #94A3B8; 
}

/* FIX MOBILE ULTRA PEQUENO */
@media (max-width: 480px) {
    .grade-metricas { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: 1fr; }
    .hero-url { word-break: break-all; font-size: 1.1rem; }
    .hero-nota-numero .numero { font-size: 1.8rem; }
    .tab-content-inner { padding: 16px 12px; }
    .check-item div { word-break: break-word; }
    .secao-titulo { font-size: 1.15rem; }
    .seo-item { word-break: break-word; }
}



/* --- TABELAS RESPONSIVAS MOBILE (STACKED) --- */
@media (max-width: 768px) {
    .tabela-dados thead {
        display: none;
    }
    .tabela-dados, .tabela-dados tbody, .tabela-dados tr, .tabela-dados td {
        display: block;
        width: 100%;
    }
    .tabela-dados tr {
        margin-bottom: 12px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        padding: 8px 12px;
        background: var(--surface);
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .tabela-dados td {
        border-bottom: 1px solid var(--border-light);
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .tabela-dados td:last-child {
        border-bottom: none;
    }
    .tabela-dados td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 10px;
        margin-right: 15px;
        text-align: left;
    }
    .tabela-dados td.caminho-td {
        white-space: normal !important;
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .tabela-dados td.caminho-td::before {
        margin-right: 0;
    }
    .tabela-wrap {
        border: none;
        box-shadow: none;
        background: transparent;
    }
}

/* --- TAB SCROLL BUTTONS --- */
.tabs-nav-wrapper { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--border-light); background: #FAFAFA; }
.tabs-scroll-container {
    flex: 1;
    scroll-behavior: smooth;
}
.tabs-scroll-btn {
    display: none;
    background: var(--surface);
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 10px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: center;
}
.tabs-scroll-btn:hover {
    color: var(--primary);
    background: #FAFAFA;
}
.tabs-scroll-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
@media (max-width: 768px) {
    .tabs-scroll-btn {
        display: flex;
    }
    .tabs-scroll-container::-webkit-scrollbar { display: none; } .tabs-scroll-container { scrollbar-width: none; }
}


