/* ══════════════════════════════════════════════════════
   Auto Diagnóstico LGPD — Omnisblue
   Complementa style.css sem sobrescrever variáveis globais
   ══════════════════════════════════════════════════════ */

/* ─── Página wrapper ─────────────────────────────────── */
.diag-page { background: var(--white-blue); min-height: 100vh; }

/* ─── Hero do formulário ─────────────────────────────── */
.diag-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-hiper-light) 100%);
    padding: 60px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.diag-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white-blue);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.diag-hero h1 { color: #fff; font-size: clamp(24px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.diag-hero p  { color: rgba(255,255,255,.85); font-size: 17px; max-width: 600px; margin: 0 auto; }
.diag-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 9999px; padding: 6px 16px; margin-bottom: 20px;
    color: #fff; font-size: 13px; font-weight: 600;
}

/* ─── Step progress indicator ────────────────────────── */
.diag-steps-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(7,42,200,.10);
    padding: 24px 32px;
    margin: -50px auto 32px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.diag-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.diag-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: #e8e8e8;
    z-index: 0;
}
.diag-step-progress {
    position: absolute;
    top: 20px;
    left: 28px;
    height: 2px;
    background: var(--blue);
    z-index: 1;
    transition: width .5s ease;
}
.diag-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.diag-step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    transition: all .3s ease;
    border: 2px solid transparent;
}
.diag-step-item.active .diag-step-circle  { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,42,200,.15); }
.diag-step-item.done   .diag-step-circle  { background: var(--green-accent); color: #fff; border-color: var(--green-accent); }
.diag-step-label { font-size: 12px; font-weight: 600; color: #999; text-align: center; max-width: 80px; }
.diag-step-item.active .diag-step-label { color: var(--blue); }
.diag-step-item.done   .diag-step-label { color: var(--green-accent); }

/* ─── Card do formulário ─────────────────────────────── */
.diag-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(7,42,200,.09);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto 40px;
}
.diag-card-title {
    font-size: 22px; font-weight: 800; color: var(--blue-dark);
    margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.diag-card-title span { font-size: 28px; }
.diag-card-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

/* ─── Grupos de campo ────────────────────────────────── */
.diag-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.diag-field-group.full { grid-template-columns: 1fr; }
.diag-field-group.triple { grid-template-columns: 1fr 1fr 1fr; }

.diag-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.diag-field.span2 { grid-column: span 2; }

.diag-label {
    font-size: 13px; font-weight: 700; color: var(--blue-dark);
    display: flex; align-items: center; gap: 6px;
}
.diag-label .required { color: var(--pink-light); }
.diag-label .optional { color: var(--text-muted); font-weight: 400; font-size: 11px; }

.diag-input, .diag-select, .diag-textarea {
    background: var(--white-blue);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text);
    transition: all .2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.diag-input::placeholder, .diag-textarea::placeholder { color: rgba(3,4,94,.4); }
.diag-input:focus, .diag-select:focus, .diag-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(7,42,200,.12);
    background: #fff;
}
.diag-input.error, .diag-select.error, .diag-textarea.error { border-color: #E53935; }
.diag-textarea { resize: vertical; min-height: 100px; }
.diag-select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23072AC8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.diag-error-msg { color: #E53935; font-size: 11px; font-weight: 600; display: none; }
.diag-field.has-error .diag-error-msg { display: block; }

/* ─── Radios estilizados ─────────────────────────────── */
.diag-radio-group {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 24px;
}
.diag-question-label {
    font-size: 15px; font-weight: 700; color: var(--blue-dark);
    margin-bottom: 10px; line-height: 1.5;
}
.diag-question-label small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.diag-radio-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}
.diag-radio-option:hover { border-color: var(--blue-hiper-light); background: #f4f5ff; }
.diag-radio-option input[type="radio"] { display: none; }
.diag-radio-dot {
    width: 20px; height: 20px; min-width: 20px;
    border-radius: 50%; border: 2px solid #ccc;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.diag-radio-option:has(input:checked) { border-color: var(--blue); background: #f0f4ff; }
.diag-radio-option:has(input:checked) .diag-radio-dot { border-color: var(--blue); background: var(--blue); }
.diag-radio-option:has(input:checked) .diag-radio-dot::after {
    content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%;
}
.diag-radio-text { font-size: 14px; font-weight: 500; color: var(--text); }
.diag-radio-text small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }

.diag-radio-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #f0f0f0;
}
.diag-radio-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ─── Checkboxes multi-select (Q14) ──────────────────── */
.diag-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.diag-checkbox-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 13px; font-weight: 500;
}
.diag-checkbox-option:hover { border-color: var(--blue-hiper-light); background: #f4f5ff; }
.diag-checkbox-option input { display: none; }
.diag-check-box {
    width: 18px; height: 18px; min-width: 18px;
    border: 2px solid #ccc; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.diag-checkbox-option:has(input:checked) { border-color: var(--blue); background: #f0f4ff; color: var(--blue-dark); }
.diag-checkbox-option:has(input:checked) .diag-check-box { background: var(--blue); border-color: var(--blue); }
.diag-checkbox-option:has(input:checked) .diag-check-box::after {
    content: '✓'; color: #fff; font-size: 11px; font-weight: 800;
}

/* ─── Separador de seção ─────────────────────────────── */
.diag-section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 36px 0 24px;
}
.diag-section-divider::before, .diag-section-divider::after {
    content: ''; flex: 1; height: 1px; background: #e8e8e8;
}
.diag-section-tag {
    background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 14px; border-radius: 9999px; white-space: nowrap;
}

/* ─── Navegação entre steps ──────────────────────────── */
.diag-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}
.diag-nav .btn-back {
    background: transparent; border: 2px solid #e8e8e8;
    color: var(--text-muted); padding: 12px 28px;
    border-radius: 9999px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all .2s ease;
}
.diag-nav .btn-back:hover { border-color: var(--blue); color: var(--blue); }
.diag-nav .btn-next {
    background: var(--blue); color: #fff;
    border: none; padding: 14px 36px;
    border-radius: 9999px; font-weight: 800; font-size: 15px;
    cursor: pointer; transition: all .2s ease;
    box-shadow: 0 8px 20px rgba(7,42,200,.25);
    display: flex; align-items: center; gap: 8px;
}
.diag-nav .btn-next:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,42,200,.35); }
.diag-nav .btn-submit {
    background: linear-gradient(135deg, var(--green-accent), #00897B);
    color: #fff; border: none; padding: 14px 36px;
    border-radius: 9999px; font-weight: 800; font-size: 15px;
    cursor: pointer; transition: all .2s ease;
    box-shadow: 0 8px 20px rgba(0,191,165,.3);
    display: flex; align-items: center; gap: 8px;
}
.diag-nav .btn-submit:hover { transform: translateY(-2px); }
.diag-nav .btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ─── Tela de sucesso ────────────────────────────────── */
.diag-success {
    text-align: center; padding: 60px 32px;
    animation: fadeInUp .5s ease;
}
.diag-success-icon { font-size: 72px; margin-bottom: 16px; }
.diag-success h2 { font-size: 28px; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.diag-success p  { color: var(--text-muted); font-size: 15px; max-width: 500px; margin: 0 auto 24px; line-height: 1.7; }
.diag-token-display {
    background: var(--white-blue); border: 2px solid var(--blue);
    border-radius: 16px; padding: 20px 32px; display: inline-block; margin: 16px 0;
}
.diag-token-display .label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.diag-token-display .token { font-size: 36px; font-weight: 800; color: var(--blue); letter-spacing: 5px; }

/* ─── Página de resultado / relatório ────────────────── */
.report-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 48px 0 80px;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.report-hero::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 50px; background: var(--white-blue);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.report-hero h1 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; margin-bottom: 8px; }

/* Formulário de token */
.token-form-wrap {
    max-width: 520px; margin: -40px auto 0; position: relative; z-index: 2;
}
.token-form-card {
    background: #fff; border-radius: 24px;
    box-shadow: 0 8px 40px rgba(7,42,200,.12);
    padding: 48px; text-align: center;
}
.token-form-card h2 { font-size: 20px; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.token-form-card p  { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.token-input-group { display: flex; gap: 12px; }
.token-input {
    flex: 1;
    background: var(--white-blue); border: 2px solid transparent;
    border-radius: 12px; padding: 14px 18px;
    font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700;
    color: var(--blue-dark); text-transform: uppercase; letter-spacing: 2px;
    outline: none; transition: all .2s;
}
.token-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 4px 16px rgba(7,42,200,.12); }
.token-input::placeholder { letter-spacing: 1px; font-weight: 500; text-transform: none; color: rgba(3,4,94,.4); }
.token-btn {
    background: var(--blue); color: #fff; border: none;
    border-radius: 12px; padding: 14px 24px;
    font-weight: 800; font-size: 15px; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.token-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.token-error { color: #E53935; font-size: 13px; margin-top: 12px; display: none; }

/* ─── Relatório ──────────────────────────────────────── */
.report-wrap {
    max-width: 960px; margin: 0 auto; padding: 0 24px 80px;
    display: none;
}
.report-wrap.visible { display: block; animation: fadeInUp .5s ease; }

.report-header-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 24px rgba(7,42,200,.08);
    padding: 40px; margin-bottom: 24px;
    display: flex; gap: 32px; align-items: flex-start;
}
.report-meta { flex: 1; }
.report-token-badge {
    background: var(--white-blue); border: 2px solid var(--blue);
    border-radius: 12px; padding: 12px 20px; text-align: center;
    min-width: 160px;
}
.report-token-badge .label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.report-token-badge .value { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: 3px; }
.report-company   { font-size: 24px; font-weight: 800; color: var(--blue-dark); margin-bottom: 4px; }
.report-subtitle  { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.report-info-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.report-tag {
    background: var(--white-blue); border-radius: 9999px;
    padding: 4px 14px; font-size: 12px; font-weight: 600; color: var(--blue-dark);
}

/* Score principal */
.score-main-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 24px rgba(7,42,200,.08);
    padding: 40px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 40px;
}
.score-gauge-wrap { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.score-gauge-wrap canvas { width: 180px !important; height: 180px !important; }
.score-gauge-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.score-gauge-num  { font-size: 36px; font-weight: 800; color: var(--blue-dark); line-height: 1; }
.score-gauge-unit { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.score-main-info  { flex: 1; }
.score-level-badge {
    display: inline-block; padding: 6px 20px; border-radius: 9999px;
    font-size: 14px; font-weight: 800; margin-bottom: 12px;
}
.level-avancada    { background: #E0F5F1; color: #00695C; }
.level-em-desenvolvimento { background: #E3F0FF; color: #0D47A1; }
.level-inicial     { background: #FFF8E1; color: #E65100; }
.level-critica     { background: #FFEBEE; color: #B71C1C; }
.score-main-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Seções de score */
.score-sections {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.score-section-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(7,42,200,.07);
    padding: 24px; text-align: center;
}
.score-section-card .section-name   { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.score-section-card .section-canvas { width: 100px !important; height: 100px !important; margin: 0 auto 8px; display: block; }
.score-section-card .section-pct    { font-size: 22px; font-weight: 800; color: var(--blue-dark); }
.score-section-card .section-pts    { font-size: 12px; color: var(--text-muted); }

/* Dashboard charts */
.dashboard-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
}
.dashboard-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(7,42,200,.07);
    padding: 28px;
}
.dashboard-card.full { grid-column: span 2; }
.dashboard-card h3 {
    font-size: 15px; font-weight: 700; color: var(--blue-dark);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.dashboard-card canvas { width: 100% !important; }

/* Análise detalhada */
.detail-section {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(7,42,200,.07);
    padding: 32px; margin-bottom: 20px;
}
.detail-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 2px solid var(--white-blue);
}
.detail-section-title { font-size: 18px; font-weight: 800; color: var(--blue-dark); }
.detail-score-badge {
    background: var(--white-blue); border-radius: 9999px;
    padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--blue);
}

.detail-question {
    padding: 16px 0; border-bottom: 1px solid #f5f5f5;
}
.detail-question:last-child { border-bottom: none; }
.detail-q-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.detail-q-text   { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; flex: 1; }
.detail-q-pts { flex-shrink: 0; }
.pts-badge {
    display: inline-block; padding: 3px 10px; border-radius: 9999px;
    font-size: 12px; font-weight: 700;
}
.pts-ok      { background: #E0F5F1; color: #00695C; }
.pts-warn    { background: #FFF8E1; color: #E65100; }
.pts-danger  { background: #FFEBEE; color: #B71C1C; }
.detail-answer { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.detail-rec {
    background: #f4f5ff; border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0; padding: 12px 16px;
    font-size: 13px; color: var(--blue-dark); line-height: 1.6;
}
.detail-rec strong { display: block; margin-bottom: 4px; color: var(--blue); }
.detail-rec .lgpd-ref {
    display: inline-block; margin-top: 8px; padding: 2px 10px;
    background: rgba(7,42,200,.08); border-radius: 9999px;
    font-size: 11px; font-weight: 700; color: var(--blue);
}

/* Prioridades */
.priority-table { width: 100%; border-collapse: collapse; }
.priority-table th {
    background: var(--white-blue); padding: 10px 14px;
    font-size: 12px; font-weight: 700; color: var(--blue-dark);
    text-align: left;
}
.priority-table td { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.priority-table tr:last-child td { border-bottom: none; }
.priority-high   { color: #B71C1C; font-weight: 700; }
.priority-medium { color: #E65100; font-weight: 700; }
.priority-low    { color: #1565C0; font-weight: 700; }

/* Rodapé do relatório */
.report-footer-card {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    border-radius: 20px; padding: 40px; text-align: center; color: #fff;
    margin-bottom: 32px;
}
.report-footer-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.report-footer-card p  { opacity: .85; font-size: 14px; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-contact {
    background: #fff; color: var(--blue); padding: 14px 32px;
    border-radius: 9999px; font-weight: 800; font-size: 15px;
    text-decoration: none; display: inline-block;
    transition: all .2s; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }

/* Botão de download PDF */
.btn-download-pdf {
    background: var(--green-accent); color: #fff; border: none;
    padding: 14px 32px; border-radius: 9999px;
    font-weight: 800; font-size: 15px; cursor: pointer;
    transition: all .2s; box-shadow: 0 6px 20px rgba(0,191,165,.3);
    display: flex; align-items: center; gap: 8px;
}
.btn-download-pdf:hover { transform: translateY(-2px); }

.report-actions {
    display: flex; gap: 16px; justify-content: center;
    margin-bottom: 32px; flex-wrap: wrap;
}

/* ─── Loading spinner ────────────────────────────────── */
.diag-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite;
}

/* ─── Animações ──────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.diag-step-content { animation: fadeInUp .35s ease; }

/* PDF gerado via html2pdf.js — captura o elemento diretamente, sem @media print */

/* ─── Lucide icons — alinhamento consistente ─────────────────── */
.diag-page [data-lucide],
.diag-page i[data-lucide] {
    display: inline-block;
    vertical-align: -3px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.diag-card-title [data-lucide]  { vertical-align: -5px; }
.diag-section-tag [data-lucide] { vertical-align: -2px; }
.detail-section-title [data-lucide] { vertical-align: -4px; }
.diag-success-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green-accent), #00897B);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0,191,165,.3);
}

/* ─── Elementos exclusivos da visualização admin ─────── */

/* Banner de aviso admin */
.admin-view-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #A30659 0%, #C2185B 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-view-banner span {
    font-weight: 400;
    opacity: .9;
    font-size: 12px;
}
.admin-view-banner [data-lucide] { flex-shrink: 0; }

/* Badge de pontos por questão */
.admin-points-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Questão com dedução — borda esquerda de destaque */
.detail-question--has-deduction {
    border-left: 3px solid #A30659 !important;
}

/* Bloco de impacto na estimativa (admin) */
.admin-extras {
    margin-top: 10px;
}
.admin-impact-block {
    background: linear-gradient(135deg, rgba(163,6,89,.07) 0%, rgba(194,24,91,.05) 100%);
    border: 1.5px solid rgba(163,6,89,.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
}
.admin-impact-label {
    font-size: 11px;
    font-weight: 700;
    color: #A30659;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.admin-impact-label [data-lucide] { flex-shrink: 0; }
.admin-impact-text {
    font-size: 13px;
    color: #6B1B3A;
    line-height: 1.65;
}

/* ─── Responsivo ─────────────────────────────────────── */
@media (max-width: 768px) {
    .diag-card { padding: 28px 20px; }
    .diag-field-group { grid-template-columns: 1fr; }
    .diag-field-group.triple { grid-template-columns: 1fr; }
    .diag-field.span2 { grid-column: span 1; }
    .diag-steps-wrap { padding: 16px; margin: -40px 16px 24px; }
    .diag-step-label { display: none; }
    .score-sections { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-card.full { grid-column: span 1; }
    .report-header-card { flex-direction: column; }
    .score-main-card { flex-direction: column; text-align: center; }
    .token-input-group { flex-direction: column; }
    .diag-checkboxes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .diag-checkboxes-grid { grid-template-columns: 1fr; }
    .diag-nav { flex-direction: column-reverse; gap: 12px; }
    .diag-nav .btn-next, .diag-nav .btn-submit, .diag-nav .btn-back { width: 100%; justify-content: center; }
}
