.lsa-wrapper {
    max-width: 1040px;
    margin: 25px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
}

.lsa-search-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-align: center;
}

.lsa-search-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.lsa-search-box p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
}

.lsa-input-group {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}

.lsa-input-group input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

.lsa-input-group button#lsa-btn-analisar {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

#lsa-btn-limpar {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

/* Spinner */
.lsa-spinner-box { text-align: center; padding: 40px; }
.lsa-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: lsa-spin 1s linear infinite;
}
@keyframes lsa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SCORE & BANNER */
.lsa-score-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    gap: 20px;
}

.lsa-score-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.lsa-completeness-badge {
    margin-top: 6px;
    font-size: 11px;
    color: #0f172a;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.lsa-banner-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lsa-banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lsa-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 28px;
    flex-shrink: 0;
}
.lsa-score-low { background: #ef4444; }
.lsa-score-med { background: #f59e0b; }
.lsa-score-high { background: #10b981; }
.lsa-score-circle span { font-size: 11px; opacity: 0.9; }

/* FINANCIAL BOX & VELOCÍMETRO */
.lsa-financial-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 12px;
    padding: 22px;
    margin: 20px 0;
    color: #ffffff;
}
.lsa-fin-header h4 { margin: 5px 0; font-size: 18px; color: #ffffff; }
.fin-badge { background: #ef4444; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 14px; font-weight: 700; text-transform: uppercase; }
.lsa-fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.lsa-fin-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 15px; text-align: center; }
.lsa-fin-card .fin-number { font-size: 24px; font-weight: 800; }
.lsa-fin-card.danger .fin-number { color: #f87171; }
.lsa-fin-card.warning .fin-number { color: #fbbf24; }
.lsa-fin-card.success .fin-number { color: #4ade80; }
.lsa-fin-card .fin-label { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.lsa-fin-card .fin-sub { font-size: 11px; color: #94a3b8; margin: 4px 0 0; }

/* PROVA SOCIAL & ADVANCED METRICS */
.lsa-reputation-risk-box { border-radius: 10px; padding: 18px; margin: 20px 0; }
.lsa-reputation-risk-box.is-vulnerable { background: #fff1f2; border: 1px solid #fecdd3; }
.lsa-reputation-risk-box.is-protected { background: #f0fdf4; border: 1px solid #bbf7d0; }
.risk-badge { background: #be123c; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 14px; }

.lsa-advanced-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}
.adv-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}
.adv-metric-card .m-label { font-size: 11px; font-weight: 700; color: #475569; margin-bottom: 2px; }
.adv-metric-card .m-val { font-size: 16px; font-weight: 800; color: #0f172a; }
.adv-metric-card small { font-size: 10px; color: #64748b; margin-top: 2px; }

.lsa-justifications-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
}
.just-label { font-size: 11px; font-weight: 700; color: #475569; display: block; margin-bottom: 6px; }
.just-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.lsa-just-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.lsa-just-tag.green { background: #dcfce7; color: #166534; }
.lsa-just-tag.red { background: #fee2e2; color: #991b1b; }

.lsa-risk-simulation { background: #ffffff; border: 1px solid #fecdd3; border-radius: 8px; padding: 12px; display: flex; gap: 15px; align-items: center; margin-top: 10px; }
.sim-calc { font-weight: 800; font-size: 16px; display: flex; gap: 6px; }
.calc-before { color: #16a34a; }
.calc-after { color: #dc2626; }
.sim-desc { font-size: 12px; color: #475569; }

/* GERADOR DE RESPOSTAS IA */
.lsa-ai-reply-generator {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
}
.reply-gen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.reply-gen-buttons { display: flex; gap: 8px; }
.btn-gen-reply {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-gen-reply:hover { background: #2563eb; }
.reply-output-box { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.reply-output-box textarea {
    width: 100%;
    height: 70px;
    padding: 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    resize: none;
    outline: none;
    box-sizing: border-box;
}
#lsa-btn-copy-reply {
    align-self: flex-end;
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

/* LOCALO APP SHELL */
.localo-app-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 25px 0;
}
.localo-app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}
.localo-brand { font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -0.5px; }
.localo-brand b { color: #2563eb; }
.localo-trial-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}
.localo-app-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 600px;
}
.localo-sidebar-pane {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    max-height: 640px;
    overflow-y: auto;
}
.localo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}
.localo-helper-link { color: #2563eb; text-decoration: none; font-size: 11px; }
.localo-search-input-box { display: flex; gap: 6px; margin-bottom: 12px; }
.localo-search-input-box input {
    flex: 1;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}
.localo-search-input-box button {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
.localo-kw-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.localo-kw-pill {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.localo-kw-pill.active { background: #2563eb; color: #ffffff; border-color: #2563eb; }

.localo-target-profile-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}
.target-profile-top { display: flex; gap: 12px; margin-bottom: 12px; }
.localo-rank-tag {
    background: #ea580c;
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    height: fit-content;
    text-transform: uppercase;
}
.target-profile-meta h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; color: #0f172a; }
.target-category { margin: 0; font-size: 11px; color: #64748b; }
.target-stars { font-size: 11px; color: #eab308; margin-top: 3px; }
.target-stars span { color: #64748b; }
.localo-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
}

.localo-competitors-header {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.localo-competitors-scroll { display: flex; flex-direction: column; gap: 8px; }
.localo-comp-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.localo-comp-card.active { background: #eff6ff; border-color: #3b82f6; }
.localo-card-header { display: flex; gap: 10px; align-items: flex-start; }
.localo-comp-card .localo-rank-tag { background: #10b981; }
.localo-card-title { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: #0f172a; }
.localo-card-stars { font-size: 10px; color: #eab308; }
.localo-card-stars span { color: #64748b; }
.localo-card-expanded { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cbd5e1; }
.localo-stat-row { display: flex; justify-content: space-between; font-size: 11px; color: #475569; margin-bottom: 4px; }
.localo-bar-bg { height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.localo-bar-fill { height: 100%; background: #10b981; }
.diff-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.diff-low { background: #dcfce7; color: #15803d; }
.diff-med { background: #fef3c7; color: #b45309; }
.diff-high { background: #fee2e2; color: #b91c1c; }

/* MAP PANE */
.localo-map-pane { position: relative; width: 100%; height: 100%; min-height: 600px; }
.localo-map-canvas { width: 100%; height: 100%; }
.localo-floating-meta {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-size: 12px;
    font-weight: 600;
}
.rank-trend { color: #16a34a; font-weight: 800; }

/* OVERVIEW DO PERFIL */
.localo-profile-overview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
}
.lpo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.lpo-header-left { display: flex; align-items: center; gap: 15px; }
.lpo-header-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: #e2e8f0; }
.lpo-header-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lpo-header-details h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #0f172a; }
.lpo-header-badges { display: flex; align-items: center; gap: 10px; }
.lpo-stars { font-size: 12px; color: #eab308; font-weight: 700; }
.lpo-open-pill { background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.lpo-header-right { display: flex; align-items: center; gap: 10px; }
.lpo-opt-label { font-size: 12px; color: #64748b; font-weight: 600; }
.lpo-protection-badge { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }
.lpo-tag-pill { background: #ffffff; border: 1px solid #cbd5e1; color: #475569; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }

.lpo-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.lpo-kpi-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.lpo-kpi-title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.lpo-kpi-content { display: flex; align-items: center; gap: 10px; }
.lpo-kpi-bar-bg { flex: 1; height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.lpo-kpi-bar-fill { height: 100%; background: #22c55e; }
.lpo-kpi-percent { font-size: 13px; font-weight: 800; color: #15803d; }
.lpo-kpi-value-row { display: flex; align-items: baseline; gap: 8px; }
.lpo-main-val { font-size: 20px; font-weight: 800; color: #0f172a; }
.lpo-badge-up { color: #16a34a; font-size: 12px; font-weight: 800; }
.lpo-kpi-sub { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.lpo-bottom-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; }
.lpo-kw-table-box, .lpo-tasks-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }
.lpo-box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.lpo-box-header h5 { margin: 0; font-size: 14px; font-weight: 700; color: #0f172a; }
.lpo-task-count-header { display: flex; align-items: center; gap: 8px; }
.lpo-task-count-pill { background: #ef4444; color: #ffffff; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 10px; }
.lpo-task-progress-mini { display: flex; align-items: center; gap: 8px; }
.task-progress-bar { width: 60px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.task-progress-fill { height: 100%; background: #22c55e; transition: width 0.3s ease; }
#lsa-tasks-progress-label { font-size: 11px; font-weight: 800; color: #15803d; }
.lpo-kw-rows-wrap { display: flex; flex-direction: column; gap: 10px; }
.lpo-kw-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 50px; align-items: center; padding: 8px 10px; background: #f8fafc; border-radius: 8px; font-size: 12px; }
.lpo-kw-name { font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpo-kw-chart svg { width: 65px; height: 18px; display: block; }
.lpo-kw-rank { display: flex; align-items: center; gap: 5px; }
.lpo-rank-badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.lpo-rank-badge.top { background: #dcfce7; color: #15803d; }
.lpo-rank-badge.mid { background: #ffedd5; color: #c2410c; }
.lpo-rank-badge.low { background: #fee2e2; color: #b91c1c; }
.lpo-trend { font-size: 10px; font-weight: 700; }
.lpo-trend.up { color: #16a34a; }
.lpo-trend.down { color: #dc2626; }
.lpo-kw-date { font-size: 10px; color: #94a3b8; text-align: right; }

.lpo-tasks-list { display: flex; flex-direction: column; gap: 10px; }
.lpo-task-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 8px; }
.lpo-task-item.is-completed { background: #f1f5f9; opacity: 0.65; }
.lpo-task-item.is-completed .lpo-task-info h6 { text-decoration: line-through; color: #64748b; }
.lsa-task-chk { cursor: pointer; width: 16px; height: 16px; }
.lpo-task-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.icon-blue { background: #eff6ff; }
.icon-purple { background: #f5f3ff; }
.icon-green { background: #f0fdf4; }
.lpo-task-info h6 { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: #0f172a; }
.lpo-task-info p { margin: 0; font-size: 11px; color: #64748b; line-height: 1.3; }

/* TERMOS DE PESQUISA */
.lsa-search-terms-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin: 25px 0; }
.lsa-st-header h4 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; color: #0f172a; }
.lsa-st-sub { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.lsa-st-table { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.lsa-st-table-head { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; background: #f8fafc; padding: 10px 14px; font-size: 11px; font-weight: 800; color: #475569; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
.lsa-st-rows-wrap { display: flex; flex-direction: column; }
.lsa-st-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; font-size: 12px; }
.lsa-st-row:last-child { border-bottom: none; }
.lsa-st-term strong { display: block; color: #0f172a; font-size: 13px; }
.lsa-st-vol { font-size: 11px; color: #64748b; }
.lsa-st-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 12px; width: fit-content; display: inline-block; }
.lsa-st-badge.badge-top { background: #dcfce7; color: #15803d; }
.lsa-st-badge.badge-mid { background: #ffedd5; color: #c2410c; }
.lsa-st-badge.badge-low { background: #fee2e2; color: #b91c1c; }
.lsa-st-status { font-weight: 600; color: #334155; }
.lsa-st-capture { font-size: 11px; color: #64748b; }

/* ON-PAGE & BENCHMARKING */
.lsa-website-audit-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin: 25px 0; }
.lsa-website-audit-box.no-website { background: #fff1f2; border-color: #fecdd3; }
.lsa-web-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 18px; flex-wrap: wrap; gap: 15px; }
.web-header-left h4 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; color: #0f172a; }
.web-badge { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }
.web-badge.badge-danger { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.web-link-preview { font-size: 12px; color: #2563eb; text-decoration: none; font-weight: 600; }
.web-maturity-status { margin: 6px 0 0; font-size: 12px; color: #475569; }
.web-score-circle { width: 65px; height: 65px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.web-score-circle small { font-size: 10px; opacity: 0.85; }
.web-score-circle.score-good { background: #10b981; }
.web-score-circle.score-mid { background: #f59e0b; }
.web-score-circle.score-bad { background: #ef4444; }
.lsa-benchmark-strip { display: flex; align-items: center; justify-content: space-around; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.bench-item { text-align: center; }
.bench-label { display: block; font-size: 11px; color: #64748b; font-weight: 600; }
.bench-val { font-size: 16px; font-weight: 800; }
.bench-val.target { color: #2563eb; }
.bench-val.leader { color: #10b981; }
.bench-val.speed { color: #475569; font-size: 13px; }
.bench-vs { font-size: 12px; font-weight: 800; color: #94a3b8; }
.lsa-onpage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lsa-onpage-row { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; }
.lsa-onpage-row.check-pass { border-left: 4px solid #10b981; }
.lsa-onpage-row.check-warn { border-left: 4px solid #f59e0b; }
.lsa-onpage-row.check-fail { border-left: 4px solid #ef4444; }
.onpage-chk-header { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #0f172a; margin-bottom: 4px; }
.chk-desc { margin: 0; font-size: 11px; color: #64748b; line-height: 1.35; }

/* DIGITAL FOOTPRINT & DIRETÓRIOS */
.lsa-footprint-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin: 25px 0; }
.lsa-footprint-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 18px; flex-wrap: wrap; gap: 15px; }
.footprint-header-left h4 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; color: #0f172a; }
.footprint-badge { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }
.footprint-desc { font-size: 13px; color: #64748b; margin: 4px 0 0; max-width: 750px; line-height: 1.4; }
.lsa-footprint-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.footprint-stat-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; }
.footprint-stat-item .stat-num { font-size: 18px; font-weight: 800; color: #0f172a; }
.footprint-stat-item .stat-txt { font-size: 11px; color: #64748b; margin-top: 2px; }

.lsa-footprint-split { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.lsa-footprint-list { display: flex; flex-direction: column; gap: 10px; }
.lsa-footprint-row { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; gap: 12px; }
.footprint-icon { font-size: 20px; flex-shrink: 0; }
.footprint-details strong { font-size: 13px; color: #0f172a; display: block; margin-bottom: 2px; }
.footprint-details p { margin: 0; font-size: 11px; color: #64748b; }
.soc-pill { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 12px; }
.soc-pill.active { background: #dcfce7; color: #15803d; }
.soc-pill.warn { background: #fef3c7; color: #b45309; }
.soc-pill.bad { background: #fee2e2; color: #b91c1c; }

.lsa-directory-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.lsa-directory-box h5 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #0f172a; }
.lsa-directory-list { display: flex; flex-direction: column; gap: 8px; }
.lsa-dir-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.lsa-dir-row:last-child { border-bottom: none; }
.dir-name small { color: #64748b; }

/* RADAR, PALAVRAS-CHAVE E ALERTAS */
.lsa-audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.lsa-chart-container, .lsa-ai-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }
.lsa-ai-box { background: linear-gradient(145deg, #0f172a, #1e293b); color: #fff; }
.lsa-ai-box h4 { color: #fff; }
.ai-badge { background: #6366f1; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 12px; font-weight: 700; }
.ai-score-num { font-size: 32px; font-weight: 800; color: #38bdf8; }
.ai-desc { font-size: 11px; color: #94a3b8; }
.lsa-keywords-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin: 20px 0; }
.lsa-kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lsa-kw-tag { background: #fee2e2; color: #991b1b; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.lsa-comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.lsa-stat-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; text-align: center; }
.lsa-alerts-container { margin-top: 20px; }
.lsa-alert-item { border-left: 4px solid; padding: 12px 16px; background: #fff; border-radius: 0 6px 6px 0; margin-bottom: 10px; }
.lsa-alert-item.critical { border-color: #ef4444; background: #fef2f2; }
.lsa-alert-item.warning { border-color: #f59e0b; background: #fffbeb; }
.pilar-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; background: #e2e8f0; padding: 2px 5px; border-radius: 4px; }

/* CTA WHATSAPP */
.lsa-cta-box { margin-top: 30px; background: #0f172a; color: #fff; border-radius: 16px; padding: 30px 20px; text-align: center; border: 1px solid #1e293b; }
.lsa-cta-box h4 { margin: 0 0 10px; font-size: 20px; color: #ffffff; }
.lsa-cta-box p { color: #94a3b8; max-width: 600px; margin: 0 auto 20px; font-size: 14px; }
.lsa-cta-box a.lsa-cta-btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: #2563eb; color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 8px; }

/* LEGENDA E THUMB */
.localo-map-legend-box { position: absolute; bottom: 25px; left: 15px; background: rgba(255, 255, 255, 0.95); border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 14px; z-index: 10; max-width: 260px; }
.legend-title { font-size: 11px; font-weight: 800; color: #0f172a; text-transform: uppercase; margin-bottom: 6px; }
.legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.legend-dot { font-size: 10px; font-weight: 800; color: #ffffff; padding: 2px 6px; border-radius: 10px; min-width: 32px; text-align: center; }
.dot-top { background: #10b981; }
.dot-mid { background: #ea580c; }
.dot-low { background: #881337; }
.legend-txt { font-size: 11px; color: #334155; }
.legend-badge-note { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e2e8f0; }
.mini-badge-demo { background: #ffffff; border: 1.2px solid #10b981; color: #10b981; font-size: 8px; font-weight: 800; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.localo-thumb-box { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #e2e8f0; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.localo-thumb-box.main-thumb { width: 54px; height: 54px; }
.localo-thumb-box img { width: 100%; height: 100%; object-fit: cover; }

/* MODAL E PDF */
.lsa-top-actions-bar { display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 20px; margin-bottom: 20px; }
.lsa-report-badge { font-size: 11px; font-weight: 800; color: #475569; }
.lsa-btn-pdf { background: #0f172a; color: #ffffff; border: none; padding: 8px 18px; font-size: 12px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.lsa-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.lsa-modal-card { background: #ffffff; border-radius: 16px; padding: 26px; max-width: 440px; width: 90%; position: relative; }
.lsa-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lsa-modal-header h4 { margin: 0; font-size: 17px; color: #0f172a; }
.lsa-modal-close { font-size: 24px; color: #94a3b8; cursor: pointer; }
.lsa-modal-sub { font-size: 13px; color: #64748b; margin: 0 0 18px; }
.lsa-field { margin-bottom: 14px; }
.lsa-field label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px; }
.lsa-field input { width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; box-sizing: border-box; }
.lsa-modal-btn { width: 100%; background: #2563eb; color: #ffffff; border: none; padding: 12px; font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer; margin-top: 6px; }

@media print {
    .lsa-search-box, .lsa-top-actions-bar, .localo-search-input-box, .localo-kw-cloud, .lsa-modal-overlay, .reply-gen-buttons, #lsa-ai-reply-output,
    header, footer, nav, aside, #wpadminbar, .site-header, .site-footer, .footer-widgets, .widget,
    div[class*="footer"], section[class*="footer"], div[class*="floating"], a[href^="tel:"], button[class*="call"] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
    }
    body, html { background: #ffffff !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .lsa-wrapper { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
    .lsa-results-view { display: block !important; }
    .localo-app-wrapper, .localo-profile-overview-card, .lsa-search-terms-box, .lsa-website-audit-box, .lsa-footprint-box, .lsa-score-banner, .lsa-financial-box, .lsa-reputation-risk-box {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid !important;
        margin-bottom: 20px !important;
    }
    .lsa-cta-box { display: block !important; page-break-inside: avoid !important; background: #0f172a !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

@media (max-width: 768px) {
    .lsa-st-table-head, .lsa-st-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lsa-onpage-grid, .lsa-footprint-stats-grid, .lsa-footprint-split, .lsa-advanced-metrics-grid { grid-template-columns: 1fr; }
}
