/* =========================================================================
   Plataforma Evolution - Admin
   Paleta + tipografia herdadas de evolutionmentorias.com.br
   Dark premium com dourado discreto.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark:       #0a0a0a;
    --bg-card:       #141414;
    --bg-elev:       #1a1a1a;
    --bg-input:      #0f0f0f;
    --border:        rgba(212, 175, 55, 0.18);
    --border-soft:   rgba(255, 255, 255, 0.06);
    --primary-gold:  #d4af37;
    --gold-soft:     rgba(212, 175, 55, 0.12);
    --gold-strong:   #e5c151;
    --text-main:     #f5f5f5;
    --text-muted:    #a0a0a0;
    --text-soft:     #6f6f6f;
    --white:         #ffffff;
    --success:       #4ade80;
    --success-soft:  rgba(74, 222, 128, 0.12);
    --danger:        #f87171;
    --danger-soft:   rgba(248, 113, 113, 0.12);
    --info:          #93c5fd;
    --info-soft:     rgba(147, 197, 253, 0.12);

    --radius:        12px;
    --radius-lg:     16px;
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold:   0 0 24px rgba(212, 175, 55, 0.08);
    --transition:    all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* Garante que [hidden] funcione mesmo em elementos com display custom */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { color: var(--primary-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-strong); }

/* ---------- AUTH (login + install) ---------- */
.auth-body {
    background: var(--bg-dark);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
}
.auth-shell { width: 100%; display: flex; justify-content: center; }
.auth-card  {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    padding: 2rem 2rem 1.8rem;
}
.auth-brand     { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 1.4rem; }
.auth-brand-logo { width: 58px; height: 58px; object-fit: contain; margin-bottom: 0.3rem; filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.25)); }
.auth-brand-mark { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: 0.25em; color: var(--white); font-size: 0.95rem; }
.auth-brand-tag  { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary-gold); }
.auth-title     { margin: 0 0 0.3rem; font-size: 1.45rem; }
.auth-subtitle  { margin: 0 0 1.3rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-form      { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-footnote  { margin-top: 1.1rem; font-size: 0.76rem; color: var(--text-soft); text-align: center; }

/* ---------- LAYOUT ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1.8rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 0.4rem;
    text-decoration: none;
    transition: var(--transition);
}
.admin-brand:hover { opacity: 0.92; }
.admin-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}
.admin-brand-mark { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: 0.22em; font-size: 1rem; color: var(--white); }
.admin-brand-tag  { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary-gold); }

.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.admin-nav a {
    color: var(--text-muted);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--white); }
.admin-nav a.active {
    background: var(--gold-soft);
    color: var(--white);
    border-left-color: var(--primary-gold);
}

.admin-user { font-size: 0.85rem; padding-top: 1.2rem; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 0.4rem; }
.admin-user-name { color: var(--white); font-weight: 600; }
.admin-user-logout { color: var(--text-muted); }
.admin-user-logout:hover { color: var(--primary-gold); }

.admin-main { padding: 2.2rem 2.6rem 4rem; max-width: 1320px; }

/* ---------- HEADERS / SECTIONS ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.page-header h1 { margin: 0.5rem 0 0.25rem; font-size: 1.8rem; }
.page-subtitle  { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.page-actions   { display: flex; gap: 0.5rem; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.card:hover { border-color: var(--border); }
.card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-header h2 { margin: 0; }

.link-muted { color: var(--text-muted); font-size: 0.85rem; }
.link-muted:hover { color: var(--primary-gold); }

/* ---------- DASHBOARD ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { display: flex; flex-direction: column; gap: 0.4rem; color: var(--text-main); transition: var(--transition); margin-bottom: 0; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--primary-gold); box-shadow: var(--shadow-md), var(--shadow-gold); }
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--white); }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.data-table th { background: var(--bg-elev); font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(212, 175, 55, 0.04); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-actions { white-space: nowrap; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.empty-cell  { text-align: center; color: var(--text-muted); padding: 2rem !important; }
.empty-state { color: var(--text-muted); padding: 1rem 0; }

/* ---------- FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.75rem 0.95rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input:disabled { background: rgba(255,255,255,0.02); color: var(--text-soft); cursor: not-allowed; }
.field-error { color: var(--danger); font-size: 0.8rem; }

.form-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-card    { display: flex; flex-direction: column; gap: 1rem; }
.form-actions { display: flex; gap: 0.5rem; justify-content: flex-end; padding-top: 0.5rem; flex-wrap: wrap; }
.inline-form  { display: inline; }

.filter-bar      { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; align-items: end; }
.filter-actions  { display: flex; gap: 0.4rem; align-items: end; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.btn:active     { transform: translateY(1px); }
.btn-primary    { background: var(--primary-gold); color: #0a0a0a; }
.btn-primary:hover    { background: var(--gold-strong); box-shadow: var(--shadow-gold); color: #0a0a0a; }
.btn-outline    { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-outline:hover    { border-color: var(--primary-gold); color: var(--primary-gold); }
.btn-link       { background: transparent; color: var(--text-muted); border: 0; padding: 0.7rem 0.5rem; }
.btn-link:hover { color: var(--primary-gold); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-block      { width: 100%; }
.btn-sm         { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

/* ---------- ALERTS ---------- */
.alert { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(74, 222, 128, 0.3); }
.alert-error   { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(248, 113, 113, 0.3); }
.alert-warn    { background: var(--gold-soft);    color: var(--primary-gold); border-color: rgba(212, 175, 55, 0.3); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: rgba(147, 197, 253, 0.3); }

/* ---------- BADGES / PILLS ---------- */
.status-badge { display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.status-pending   { background: var(--info-soft);    color: var(--info); }
.status-answered  { background: var(--success-soft); color: var(--success); }
.status-expired   { background: var(--gold-soft);    color: var(--primary-gold); }
.status-cancelled { background: rgba(255,255,255,0.06); color: var(--text-muted); }

.profile-pill { display: inline-block; padding: 0.28rem 0.85rem; background: var(--gold-soft); color: var(--primary-gold); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: 0.8rem; }

/* Mini grade de pontuação para tabela de resultados */
.score-mini {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.25rem 0.7rem;
    font-size: 0.82rem;
    color: var(--text-main);
    white-space: nowrap;
}
.score-mini b { color: var(--primary-gold); font-weight: 700; margin-right: 0.15rem; letter-spacing: 0.04em; }

.text-muted { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- PARTICIPANT DETAIL ---------- */
.data-list      { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin: 0; }
.data-list > div { background: var(--bg-elev); padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--border-soft); }
.data-list dt   { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.data-list dd   { margin: 0; font-weight: 600; color: var(--white); }
.info-block     { margin-top: 1.2rem; padding: 1rem; background: var(--bg-elev); border-radius: 8px; border: 1px solid var(--border-soft); }
.info-text      { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }
.data-label     { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.25rem; }

/* ---------- TOKEN DISPLAY ---------- */
.success-card { border-left: 3px solid var(--success); }
.success-card h2 { color: var(--success); }
.success-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.token-link { display: flex; gap: 0.5rem; margin: 1rem 0; }
.token-link input {
    flex: 1;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    background: var(--bg-input);
    color: var(--primary-gold);
}

/* ---------- RESULT VIEW ---------- */
.result-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; }
.result-dominant { color: var(--primary-gold); font-size: 1.05rem; font-family: 'Outfit', sans-serif; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.4rem;
    transition: var(--transition);
    min-width: 0;
    overflow: hidden;
}
.profile-card.is-dominant {
    border-color: var(--primary-gold);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.05) 100%);
    box-shadow: var(--shadow-gold);
}
.profile-card-name  { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; max-width: 100%; word-break: break-word; }
.profile-card-value { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--white); }
.profile-card-bar   { height: 5px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.profile-card-bar span { display: block; height: 100%; background: var(--primary-gold); border-radius: 999px; }

/* Contagem de respostas por perfil */
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 0.4rem; }
.count-card { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem 0.6rem; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 10px; text-align: center; }
.count-card.is-dominant { border-color: var(--primary-gold); background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(212, 175, 55, 0.08) 100%); }
.count-card-name  { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.count-card-code  { color: var(--primary-gold); font-weight: 600; }
.count-card-value { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.count-card.is-dominant .count-card-value { color: var(--primary-gold); }
.count-card-label { font-size: 0.75rem; color: var(--text-muted); }
.count-total { margin: 1rem 0 0; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.count-total strong { color: var(--white); font-weight: 700; }

@media (max-width: 600px) {
    .count-grid { grid-template-columns: repeat(2, 1fr); }
    .count-card-value { font-size: 1.6rem; }
}

.bars { display: flex; flex-direction: column; gap: 0.8rem; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 0.8rem; font-size: 0.9rem; }
.bar-label { color: var(--text-muted); }
.bar-track { height: 14px; background: var(--bg-input); border-radius: 999px; overflow: hidden; border: 1px solid var(--border-soft); }
.bar-fill  { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-gold) 0%, var(--gold-strong) 100%); border-radius: 999px; transition: width 0.4s ease; }
.bar-value { font-weight: 600; text-align: right; color: var(--white); }

.axes-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.axis-row .axis-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.axis-track { height: 14px; background: var(--bg-input); border-radius: 999px; overflow: hidden; border: 1px solid var(--border-soft); position: relative; }
.axis-fill  { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-gold) 0%, rgba(212, 175, 55, 0.4) 100%); }

/* Eixo Comportamental — barra Pensante × Atuante centralizada (modelo Herrmann) */
.axis-cpc { display: flex; flex-direction: column; gap: 0.7rem; }
.axis-cpc-labels { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.axis-cpc-side { display: flex; flex-direction: column; font-size: 0.95rem; color: var(--text-muted); }
.axis-cpc-side strong { color: var(--text-main); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.axis-cpc-side em { font-style: normal; font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin-top: 0.1rem; }
.axis-cpc-side.is-dominant em { color: var(--primary-gold); }
.axis-cpc-side-right { text-align: right; align-items: flex-end; }
.axis-cpc-center { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; opacity: 0.7; }
.axis-cpc-track { position: relative; height: 18px; background: var(--bg-input); border: 1px solid var(--border-soft); border-radius: 999px; overflow: hidden; }
.axis-cpc-center-line { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: var(--primary-gold); transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15); z-index: 2; }
.axis-cpc-fill { position: absolute; top: 0; bottom: 0; height: 100%; transition: width 0.4s ease; z-index: 1; }
.axis-cpc-fill-left  { background: linear-gradient(90deg, rgba(212, 175, 55, 0.25) 0%, var(--primary-gold) 100%); border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.axis-cpc-fill-right { background: linear-gradient(270deg, rgba(212, 175, 55, 0.25) 0%, var(--primary-gold) 100%); border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.axis-cpc-summary { margin: 0; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.axis-cpc-summary strong { color: var(--primary-gold); }

@media (max-width: 600px) {
    .axis-cpc-labels { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .axis-cpc-center { display: none; }
    .axis-cpc-side em { font-size: 1.2rem; }
}

.radar-wrap { display: flex; justify-content: center; }
.radar-svg  { width: 100%; max-width: 380px; height: auto; }
.radar-grid { fill: none; stroke: var(--border-soft); stroke-width: 1; }
.radar-area { fill: rgba(212, 175, 55, 0.25); stroke: var(--primary-gold); stroke-width: 2; }
.radar-label { font-size: 12px; fill: var(--text-muted); font-family: 'Inter', sans-serif; }

.profile-block { padding: 1.4rem 0; border-bottom: 1px solid var(--border-soft); }
.profile-block:last-of-type { border-bottom: 0; }
.profile-block h3 { margin: 0 0 0.3rem; color: var(--white); font-size: 1.2rem; }
.profile-concept  { color: var(--primary-gold); font-weight: 600; margin: 0 0 1rem; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.profile-block-secondary { opacity: 0.92; }
.profile-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin: 0; }
.profile-dl > div { background: var(--bg-elev); padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid var(--border-soft); }
.profile-dl dt { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.profile-dl dd { margin: 0; font-size: 0.9rem; color: var(--text-main); }

.answer-list      { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; margin: 0; }
.answer-list li   { padding: 0.7rem 0.9rem; background: var(--bg-elev); border-radius: 8px; border: 1px solid var(--border-soft); }
.answer-chosen    { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.88rem; }
.answer-code      { color: var(--primary-gold); font-weight: 600; }

.note-form    { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.note-list    { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.note-list li { background: var(--bg-elev); padding: 0.95rem 1rem; border-radius: 8px; border: 1px solid var(--border-soft); }
.note-list header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; font-size: 0.85rem; }
.note-list p  { margin: 0; font-size: 0.92rem; }

/* ---------- MOBILE BAR + DRAWER (escondido em desktop) ---------- */
.admin-mobile-bar    { display: none; }
.admin-backdrop      { display: none; }
.admin-sidebar-close { display: none; }

/* ---------- PRINT ---------- */
@media print {
    /* Força browser a manter backgrounds e cores na impressão */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .admin-sidebar, .admin-mobile-bar, .admin-backdrop, .no-print { display: none !important; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-main  { padding: 0; }
    body         { background: #fff; color: #000; }
    h1, h2, h3, h4 { color: #000; }
    .card        { background: #fff; box-shadow: none; border-color: #ccc; break-inside: avoid; }
    .data-list > div, .profile-dl > div, .answer-list li, .note-list li { background: #f7f7f7; border-color: #ddd; }
    .bar-track, .axis-track, .axis-cpc-track, .field input, .field textarea { background: #f0f0f0; border-color: #ddd; }
    .bar-value, .data-list dd, .profile-dl dd, .profile-block h3, .profile-card-value, .profile-concept { color: #000; }
    .text-muted, .data-list dt, .profile-dl dt, .stat-label, .data-label, .answer-chosen, .axis-row .axis-labels, .axis-cpc-center, .axis-cpc-summary { color: #555; }
    .axis-cpc-side strong, .axis-cpc-side em { color: #000; }
    .axis-cpc-side.is-dominant em, .axis-cpc-summary strong { color: #b9883d !important; }
    .page-header { display: none; }

    /* Barras com cor sólida (gradiente fica impreciso na impressão) */
    .bar-fill, .axis-fill, .axis-cpc-fill, .axis-cpc-fill-left, .axis-cpc-fill-right, .profile-card-bar span {
        background: #b9883d !important;
    }
    .axis-cpc-center-line { background: #b9883d !important; box-shadow: none !important; }

    .count-card { background: #f7f7f7 !important; border-color: #ddd !important; }
    .count-card.is-dominant { background: #fbf6e6 !important; border-color: #b9883d !important; }
    .count-card-name, .count-card-label, .count-total { color: #555 !important; }
    .count-card-value { color: #000 !important; }
    .count-card.is-dominant .count-card-value, .count-card-code { color: #b9883d !important; }
    .count-total strong { color: #000 !important; }

    /* Cards de perfil (Águia/Gato/Lobo/Tubarão) — claros na impressão */
    .profile-card {
        background: #f7f7f7 !important;
        border-color: #ddd !important;
        box-shadow: none !important;
    }
    .profile-card.is-dominant {
        background: #fbf6e6 !important;
        border-color: #b9883d !important;
    }
    .profile-card-name { color: #555 !important; }
    .profile-card-value { color: #000 !important; }
    .profile-card.is-dominant .profile-card-value { color: #b9883d !important; }
    .profile-card-bar { background: #e0e0e0 !important; }

    /* Cards do topo do resultado (Participante, Empresa, etc) */
    .result-summary-grid > div { background: transparent !important; }
    .result-dominant { color: #b9883d !important; }

    /* Pills e badges legíveis em preto e branco */
    .profile-pill, .status-badge {
        background: #fbf6e6 !important;
        color: #7a5e26 !important;
        border-color: #b9883d !important;
    }

    /* Radar SVG: garante traço e área visíveis */
    .radar-area { fill: rgba(185, 136, 61, 0.35) !important; stroke: #b9883d !important; }
    .radar-grid { stroke: #ccc !important; }
    .radar-label { fill: #555 !important; }

    .answer-code { color: #b9883d !important; }

    /* Radar MI: SVG legível em fundo branco */
    .mi-radar-ring       { stroke: #ccc !important; }
    .mi-radar-axis       { stroke: #ccc !important; }
    .mi-radar-pct-label  { fill: #888 !important; }
    .mi-radar-poly       { fill: rgba(185,136,61,0.20) !important; stroke: #b9883d !important; }
    .mi-radar-label-name { fill: #000 !important; }
    .mi-radar-label-pct  { fill: #b9883d !important; }
}

/* ---------- TABLET + MOBILE: drawer hamburger ---------- */
@media (max-width: 1024px) {
    /* Barra superior fixa */
    .admin-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.1rem;
        background: linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 50;
    }
    .admin-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        text-decoration: none;
        color: var(--white);
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        letter-spacing: 0.22em;
        font-size: 0.85rem;
    }
    .admin-mobile-logo {
        width: 30px;
        height: 30px;
        object-fit: contain;
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
    }
    .admin-mobile-toggle {
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        width: 42px;
        height: 42px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        padding: 0;
        transition: var(--transition);
    }
    .admin-mobile-toggle:hover { border-color: var(--primary-gold); }
    .admin-mobile-toggle:focus-visible { outline: 2px solid var(--primary-gold); outline-offset: 2px; }
    .admin-mobile-toggle span {
        width: 18px;
        height: 2px;
        background: var(--text-main);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* Layout em coluna única */
    .admin-shell { grid-template-columns: 1fr; position: relative; }

    /* Sidebar vira drawer off-canvas */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: 280px;
        max-width: 82vw;
        z-index: 110;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        flex-direction: column;
        gap: 1.6rem;
        padding: 1.6rem 1.3rem;
        overflow-y: auto;
    }
    .admin-shell.is-menu-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    }

    /* Backdrop */
    .admin-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .admin-shell.is-menu-open .admin-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Botão fechar dentro do drawer */
    .admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.9rem;
        right: 0.9rem;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-main);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        transition: var(--transition);
    }
    .admin-sidebar-close:hover { border-color: var(--primary-gold); color: var(--primary-gold); }

    /* Nav vertical no drawer */
    .admin-nav { flex-direction: column; flex-wrap: nowrap; gap: 0.2rem; }
    .admin-nav a { padding: 0.75rem 0.9rem; border-left: 2px solid transparent; }
    .admin-nav a.active { border-left-color: var(--primary-gold); }

    .admin-user { border-top: 1px solid var(--border-soft); padding-top: 1.2rem; flex-direction: column; gap: 0.5rem; align-items: stretch; }

    /* Conteúdo principal */
    .admin-main { padding: 1.5rem 1rem 3rem; max-width: none; }

    /* Lock scroll quando menu aberto */
    body.menu-open { overflow: hidden; }

    /* Ajustes em barras de resultado pra caber em telas estreitas */
    .bar-row { grid-template-columns: 90px 1fr 50px; font-size: 0.82rem; }
}

/* ---------- TABLET (601-1024) ---------- */
@media (max-width: 1024px) and (min-width: 601px) {
    .admin-main      { padding: 1.6rem 1.4rem 3rem; }
    .page-header     { gap: 0.9rem; }
    .page-header h1  { font-size: 1.55rem; }

    .card-grid       { grid-template-columns: repeat(2, 1fr); }
    .filter-bar      { grid-template-columns: repeat(2, 1fr); }
    .form-grid       { grid-template-columns: repeat(2, 1fr); }
    .result-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .result-grid     { grid-template-columns: repeat(2, 1fr); }
    .profile-dl      { grid-template-columns: 1fr 1fr; }
    .data-list       { grid-template-columns: 1fr 1fr; }

    .data-table th, .data-table td { padding: 0.75rem 0.85rem; font-size: 0.86rem; }
    .stat-value      { font-size: 2rem; }
}

/* ---------- MOBILE (≤600) ---------- */
@media (max-width: 600px) {
    .admin-main          { padding: 1.2rem 0.85rem 2.5rem; }
    .page-header         { flex-direction: column; align-items: stretch; gap: 0.8rem; }
    .page-header h1      { font-size: 1.4rem; }
    .page-header .page-subtitle { font-size: 0.86rem; }
    .page-actions        { width: 100%; }
    .page-actions .btn   { flex: 1; }

    /* Cards e grids -> dashboard em 2 colunas, demais em 1 */
    .card                { padding: 1.2rem; border-radius: 10px; }
    .card-grid           { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .stat-card           { padding: 1rem; }
    .filter-bar          { grid-template-columns: 1fr; gap: 0.7rem; }
    .filter-actions      { width: 100%; }
    .filter-actions .btn { flex: 1; }
    .form-grid           { grid-template-columns: 1fr; }
    .form-actions        { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn   { width: 100%; }
    .result-summary-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .result-grid         { grid-template-columns: 1fr 1fr; }
    .profile-dl          { grid-template-columns: 1fr; }
    .data-list           { grid-template-columns: 1fr; }

    /* Headings */
    .stat-value          { font-size: 1.6rem; }
    .stat-label          { font-size: 0.72rem; }
    .profile-card        { padding: 1rem 0.85rem; }
    .profile-card-name   { font-size: 0.7rem; letter-spacing: 0.04em; }
    .profile-card-value  { font-size: 1.6rem; }
    .card h2             { font-size: 1rem; }

    /* ========== Transforma TABELA em CARDS empilhados ========== */
    .table-wrap          { overflow-x: visible; }
    .data-table          { display: block; }
    .data-table thead    { display: none; }   /* esconde cabeçalho de coluna */
    .data-table tbody    { display: block; }
    .data-table tr {
        display: block;
        background: var(--bg-elev);
        border: 1px solid var(--border-soft);
        border-radius: 10px;
        margin-bottom: 0.7rem;
        padding: 0.5rem 0.85rem;
    }
    .data-table tbody tr:hover { background: var(--bg-elev); }

    .data-table td {
        display: grid;
        grid-template-columns: 38% 1fr;
        gap: 0.6rem;
        align-items: start;
        padding: 0.55rem 0;
        border-bottom: 1px dashed var(--border-soft);
        font-size: 0.86rem;
    }
    .data-table tr td:last-child { border-bottom: 0; }

    /* Label gerado a partir do data-label="..." de cada td */
    .data-table td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding-top: 0.15rem;
    }
    .data-table td:not([data-label])::before { content: ""; }

    /* Empty state ocupa linha cheia centralizada */
    .data-table td.empty-cell {
        display: block;
        text-align: center;
        padding: 1.4rem 0.5rem !important;
        border-bottom: 0;
    }
    .data-table td.empty-cell::before { display: none; }

    /* Cell de ações: lado a lado, com 2 botões dividindo a largura igualmente */
    .data-table td.cell-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.7rem;
        margin-top: 0.3rem;
        border-bottom: 0;
        border-top: 1px solid var(--border-soft);
    }
    .data-table td.cell-actions::before { display: none; }
    .data-table td.cell-actions > a,
    .data-table td.cell-actions > .inline-form {
        flex: 1 1 calc(50% - 0.2rem);
        min-width: 0;
    }
    .data-table td.cell-actions .btn   { width: 100%; font-size: 0.82rem; padding: 0.55rem 0.7rem; }

    .score-mini { gap: 0.2rem 0.7rem; font-size: 0.82rem; }

    /* Token + WhatsApp na criação */
    .token-link          { flex-direction: column; }
    .token-link input    { font-size: 0.8rem; }
    .token-link .btn     { width: 100%; }
    .success-actions     { flex-direction: column; }
    .success-actions .btn { width: 100%; }

    /* Resultado detalhado */
    .bar-row             { grid-template-columns: 70px 1fr 42px; font-size: 0.76rem; gap: 0.5rem; }
    .bars                { gap: 0.55rem; }
    .axis-row .axis-labels { font-size: 0.78rem; flex-wrap: wrap; gap: 0.4rem; }
    .profile-block h3    { font-size: 1.05rem; }
    .answer-list         { padding-left: 1.1rem; }
    .answer-list li      { font-size: 0.86rem; }

    /* Notas */
    .note-list header    { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}
