/* 1. Reset de Elementos e Identidade Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 122, 24, 0.10), transparent 35%),
        linear-gradient(180deg, #070B10 0%, #0D131A 28%, #0F141C 100%);
    color: #FFFFFF;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-attachment: fixed;
}

#app {
    width: 100%;
    max-width: 480px; /* Otimizado para Smartphones */
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* 2. Cabeçalho Minimalista */
header {
    text-align: center;
    padding: 22px 0 10px;
}

header h1 {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 26px rgba(125, 211, 252, 0.12);
}

header h1 span {
    color: #FF6B00;
}

header .subtitle {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8A99AD;
    margin-top: 8px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 3. Seções e Cartões Visuais */
section {
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.96), rgba(15, 20, 28, 0.96));
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 36px rgba(2,6,23,0.18);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(125,211,252,0.06), transparent 100%);
    pointer-events: none;
}

section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.title-centered {
    text-align: center;
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.06em;
}

.brand-header-lockup {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px;
    width: 100%;
}

.logo-excite-header {
    display: block;
    width: 118px;
    max-width: 46%;
    height: 118px;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 18, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 9px;
}

.instrucao {
    font-size: 13px;
    color: #8A99AD;
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: justify;
}

.dica-detalhamento {
    font-size: 12px;
    color: #8A99AD;
    line-height: 1.5;
    margin: -14px 0 24px;
}

.dica-detalhamento strong {
    color: #FFB54A;
    font-weight: 700;
}

.timeline-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
}

.timeline-empty-panel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 30px 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 22, 30, 0.97), rgba(10, 14, 20, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 22px 36px rgba(2, 6, 23, 0.10);
    overflow: hidden;
}

.timeline-empty-glow {
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 181, 74, 0.14) 0%, rgba(255, 181, 74, 0.05) 28%, rgba(255, 181, 74, 0.01) 54%, transparent 75%);
    pointer-events: none;
}

.timeline-empty-kicker {
    position: relative;
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A9B6C8;
}

.timeline-empty .instrucao {
    position: relative;
    margin-bottom: 0;
    max-width: 295px;
    color: #F1F5F9;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.timeline-empty-subtext {
    position: relative;
    max-width: 320px;
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #8A99AD;
}

.timeline-empty-cta {
    position: relative;
    border: 1px solid rgba(255, 181, 74, 0.5);
    background: linear-gradient(135deg, rgba(255, 181, 74, 0.10), rgba(255, 122, 24, 0.04));
    color: #F6D7A0;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.timeline-empty-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 181, 74, 0.9);
    background: linear-gradient(135deg, rgba(255, 181, 74, 0.15), rgba(255, 122, 24, 0.06));
    box-shadow: 0 14px 24px rgba(255, 122, 24, 0.12);
}

/* 4. Engenharia de Formulários e Campos de Resposta */
.grupo-campo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-campo label {
    font-size: 13px;
    font-weight: 600;
    color: #E2E8F0;
}

.pilar-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 181, 74, 0.08);
    border: 1px solid rgba(255, 181, 74, 0.28);
    color: #FFB54A;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

select, textarea, input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 16, 22, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    color: #FFFFFF;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

select:focus, textarea:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
    border-color: rgba(255, 107, 0, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

textarea {
    height: 80px;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

select option {
    background: #0F141C;
    color: #E2E8F0;
}

input[type="time"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 16, 22, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    color: #FFFFFF;
    padding: 12px 10px;
    font-size: 16px;
    outline: none;
    color-scheme: dark;
}

input[type="time"]:focus {
    border-color: rgba(255, 107, 0, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    margin-left: 6px;
}

@media (max-width: 380px) {
    input[type="time"] {
        /* Mantém 16px mesmo no mobile: abaixo disso o navegador dá zoom
           automático ao focar, e esse zoom "vaza" pro seletor nativo de
           hora, cortando o botão de confirmar. */
        font-size: 16px;
        padding: 10px 6px;
    }
}

/* Slider de Resistência customizado */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #0F141C;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #232D3B;
}

input[type="range"] {
    flex: 1;
    accent-color: #FF6B00;
    cursor: pointer;
}

#valor-excitacao,
#valor-hawkins,
#valor-resistencia {
    font-weight: 700;
    font-size: 16px;
    color: #FF6B00;
    min-width: 20px;
    text-align: center;
}

#login-container {
    background: linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(17, 24, 39, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 26px 22px 20px;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 30px rgba(2, 6, 23, 0.12);
}

#login-container h2 {
    margin-top: 0;
    color: #FFB54A;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#login-container p {
    color: #9AA9BD;
    line-height: 1.6;
    font-size: 0.92rem;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.btn-action {
    padding: 10px 16px;
    border: 1px solid rgba(125, 211, 252, 0.7);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(14, 165, 233, 0.05));
    color: #dbeafe;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.08);
}

.btn-action:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-action.btn-secondary {
    border-color: rgba(255, 181, 74, 0.75);
    color: #FFB54A;
    background: linear-gradient(135deg, rgba(255, 181, 74, 0.08), rgba(255, 156, 59, 0.04));
}

.btn-action.btn-secondary:hover {
    background: linear-gradient(135deg, #FFB54A 0%, #FF9C3B 100%);
    color: #1a1a2e;
    transform: translateY(-1px);
}

.btn-link:hover {
    opacity: 0.8;
}

.login-error {
    color: #FF6B00;
    margin-top: 10px;
    min-height: 24px;
}

#btn-gerar-plano-diario {
    display: block;
    width: fit-content;
    margin: 14px auto 0;
}

#btn-baixar-pdf-plano {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
}

#plano-diario-erro {
    text-align: center;
    font-size: 0.8rem;
}

#comando-dia p {
    text-align: justify;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-line;
}

#painel-status-excite p {
    font-size: 13px;
    line-height: 1.5;
    color: #D7E3F3;
    text-align: justify;
}

#reserva {
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    color: #FFB54A;
    margin: 6px 0 4px;
}

.btn-secondary {
    margin-top: 16px;
    width: auto;
    background: transparent;
    color: #FF6B00;
    border: 1px solid #FF6B00;
    padding: 12px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dashboard-header h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.compartilhar-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-compartilhar-painel {
    margin-top: 0;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #FFB54A 0%, #FF9C3B 100%);
    color: #1a1a2e;
    border: none;
    padding: 11px 14px;
    box-shadow: 0 8px 18px rgba(255, 156, 59, 0.25);
}

@media (max-width: 760px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header h2 {
        width: 100%;
        font-size: 1.1rem;
    }

    .dashboard-header .compartilhar-opcoes {
        width: 100%;
        justify-content: center;
    }

    .btn-compartilhar-painel {
        width: auto;
        flex: 0 1 auto;
    }
}

.btn-compartilhar-painel:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-compartilhar-formato {
    width: auto;
    margin: 0;
    white-space: nowrap;
    flex: 1 1 auto;
}

.resistencia-descricao {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: 10px;
    color: #E6EFFF;
}

.resistencia-descricao h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #FFB54A;
}

.resistencia-descricao p {
    margin: 0;
    line-height: 1.5;
    color: #CBD7F1;
}

/* Botões Estilo "Interruptor" */
button {
    width: 100%;
    background: linear-gradient(135deg, #FFB54A 0%, #FF7A18 100%);
    color: #0F141C;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 12px 28px rgba(255, 122, 24, 0.18);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 122, 24, 0.23);
}

button:disabled {
    background: linear-gradient(135deg, rgba(35,45,59,0.8), rgba(35,45,59,0.65));
    color: #8A99AD;
    cursor: not-allowed;
    box-shadow: none;
}

/* 5. Painel de Controle Ativado (Dinâmico) */
#painel-comando {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: surgir 0.5s ease-out;
}

#status-estado {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(11, 16, 22, 0.96));
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 30px rgba(2, 6, 23, 0.12);
}

.brand-mark,
.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    margin-bottom: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    width: fit-content;
    box-shadow: none;
}

.brand-mark img,
.dashboard-brand img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 12, 18, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 4px;
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.12));
}

.brand-mark span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #7dd3fc;
    text-transform: uppercase;
}

.acoes-bloco-bashar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.acoes-bloco-bashar button {
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    border: none;
}

.bloco-sincronicidade {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.bloco-sincronicidade .btn-sincronicidade {
    width: 100%;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.sincronicidade-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #8A99AD;
    line-height: 1.4;
    text-align: center;
}

.btn-sincronicidade {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(14, 165, 233, 0.12));
    color: #dbeafe;
    border: 1px solid rgba(125, 211, 252, 0.42);
}

#btn-salvar-evolucao {
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%);
    color: #1a1a2e;
}

#btn-salvar-evolucao:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.acoes-bloco-bashar .btn-compartilhar-instagram {
    background: linear-gradient(135deg, #FFB54A 0%, #FF9C3B 100%);
    color: #1a1a2e;
}

.acoes-bloco-bashar .btn-compartilhar-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.feedback-sincronicidade {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid #FF6B00;
    color: #FFD7B3;
    font-size: 13px;
    line-height: 1.5;
}

#nome-estado {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: #FFB54A;
}

#status-estado h2 {
    margin: 0 0 12px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E2E8F0;
}

.detalhes-diagnostico {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.detalhes-diagnostico p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #D7E3F3;
}

.detalhes-diagnostico strong {
    color: #FFB54A;
}

.bloco-protocolo {
    background: linear-gradient(135deg, rgba(15, 20, 28, 0.98), rgba(30, 41, 59, 0.9));
    padding: 18px 16px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 0, 0.45);
    box-shadow: 0 14px 30px rgba(255, 107, 0, 0.08);
}

.bloco-protocolo h3 {
    font-size: 13px;
    margin: 0 0 12px;
    color: #FFB54A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#texto-protocolo {
    margin: 0;
    display: grid;
    gap: 10px;
    color: #E5EEF8;
    line-height: 1.6;
}

.diagnostico-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.diagnostico-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A99AD;
}

.diagnostico-meta strong {
    color: #FFB54A;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.diagnostico-acao {
    padding-top: 6px;
    color: #E5EEF8;
    font-size: 13px;
    line-height: 1.5;
}

.motor-bashar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
    font-size: 12px;
    color: #8A99AD;
    font-style: italic;
    line-height: 1.5;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8A99AD;
    margin-top: 4px;
}

.hawkins-status {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.25);
    color: #FFD7B3;
    font-size: 13px;
    line-height: 1.4;
}

.checkpoint-label {
    margin-top: 10px;
    font-size: 12px;
    color: #8A99AD;
}

.checkpoint-select {
    margin-top: 6px;
    background: linear-gradient(135deg, rgba(14, 20, 28, 0.96), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: #E2E8F0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    min-height: 46px;
}

.checkpoint-select option {
    background: #0F141C;
    color: #E2E8F0;
    padding: 10px;
}

.checkpoint-select:focus {
    outline: 2px solid rgba(255, 180, 74, 0.8);
    outline-offset: 2px;
}

.checkpoint-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #8A99AD;
    line-height: 1.4;
}

.sugestao-sono {
    color: #CBD5E1;
}

.sugestao-sono.alerta {
    color: #FFB54A;
}

.hawkins-status {
    font-weight: 600;
    color: #FFE0C2;
}

.detalhes-diagnostico {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.detalhes-diagnostico span {
    color: #E2E8F0;
    font-weight: 600;
}

/* 6. Grid do Dashboard Histórico */
#dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.dashboard-brand {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    width: fit-content;
    max-width: 100%;
}

#dashboard::after {
    content: "";
    position: absolute;
    inset: 20px -30px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.14), transparent 65%);
    pointer-events: none;
}

#dashboard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 170px;
    background: radial-gradient(circle at top, rgba(125, 211, 252, 0.18), transparent 52%);
    pointer-events: none;
}

.dashboard-header {
    position: relative;
    z-index: 1;
    padding: 2px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-brand {
    flex: 1;
    min-width: 0;
}

.dashboard-header h2 {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #E2E8F0;
    margin: 0;
}

.metricas-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.card-metrica {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 26px rgba(15,23,42,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-metrica:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 28px rgba(15,23,42,0.22);
}

.card-metrica::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.28), rgba(255,255,255,0.12));
}

.card-metrica span {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.card-metrica label {
    font-size: 10.5px;
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
    text-transform: uppercase;
}

.card-metrica.verde {
    border-color: rgba(34, 197, 94, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(34,197,94,0.08);
}
.card-metrica.amarelo {
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(250,204,21,0.08);
}
.card-metrica.azul {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(96,165,250,0.08);
}
.card-metrica.branco {
    border-color: rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(148,163,184,0.08);
}

.card-metrica.verde span { color: #4ade80; }
.card-metrica.amarelo span { color: #facc15; }
.card-metrica.azul span { color: #60a5fa; }
.card-metrica.branco span { color: #f8fafc; }

/* Evolução diária (colunas empilhadas) do painel Métricas do Mestre */
.evolucao-diaria {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.evolucao-diaria-titulo {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8A99AD;
    text-align: center;
}

.evolucao-diaria-grafico {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 130px;
    padding: 0 2px;
    overflow-x: auto;
}

.coluna-dia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 22px;
    flex-shrink: 0;
}

.coluna-barra {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 100%;
    height: 104px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.08);
}

.coluna-segmento {
    width: 100%;
    min-height: 2px;
}

.coluna-segmento.verde { background: #4ade80; }
.coluna-segmento.amarelo { background: #facc15; }
.coluna-segmento.azul { background: #60a5fa; }
.coluna-segmento.branco { background: #f8fafc; }

.coluna-rotulo {
    font-size: 9px;
    color: #8A99AD;
    letter-spacing: 0.02em;
}

.evolucao-diaria-legenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.evolucao-diaria-compartilhar,
#compartilhar-streak-opcoes,
.compartilhar-opcoes-ciclo {
    margin-top: 14px;
    justify-content: center;
}

.legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #8A99AD;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.legenda-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legenda-dot.verde { background: #4ade80; }
.legenda-dot.amarelo { background: #facc15; }
.legenda-dot.azul { background: #60a5fa; }
.legenda-dot.branco { background: #f8fafc; }

.oculto {
    display: none !important;
}

/* Avisa que o botão do Quadro 365 deixou de criar e passou a atualizar */
.aviso-plano-ativo {
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.07);
    color: #CBD5E1;
    font-size: 13px;
    line-height: 1.55;
}

.aviso-plano-ativo strong {
    color: #7dd3fc;
}

/* Modal do Quadro 365 — guarda contra regeração acidental do plano anual */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 11, 16, 0.82);
    backdrop-filter: blur(4px);
}

.modal-caixa {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.98), rgba(15, 20, 28, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(0, 0, 0, 0.55);
    animation: surgir 0.22s ease-out;
}

.modal-caixa h3 {
    color: #FF6B00;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.modal-caixa p {
    font-size: 13px;
    line-height: 1.55;
    color: #E2E8F0;
    margin-bottom: 10px;
}

.modal-resumo {
    color: #CBD5E1;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.modal-opcao {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(15, 20, 28, 0.6);
}

.modal-opcao .btn-action {
    margin-top: 0;
    width: 100%;
}

/* "Recomeçar do zero" descarta o ano em curso: fica neutro de propósito, pra não
   competir com "Revisar" nem virar o caminho que o olho escolhe primeiro */
.btn-action.btn-destrutivo {
    border-color: rgba(148, 163, 184, 0.35);
    color: #94A3B8;
    background: transparent;
}

.btn-action.btn-destrutivo:hover {
    border-color: rgba(255, 23, 68, 0.6);
    background: rgba(255, 23, 68, 0.08);
    color: #FF6B6B;
    transform: none;
}

/* Cancelar é saída, não ação: some no fundo até o usuário procurar por ele */
.modal-acoes .btn-cancelar {
    border-color: transparent;
    background: transparent;
    color: #94A3B8;
    font-weight: 600;
}

.modal-acoes .btn-cancelar:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #E2E8F0;
    transform: none;
}

.modal-opcao-desc {
    font-size: 12px !important;
    color: #94A3B8 !important;
    margin: 8px 0 0 !important;
    line-height: 1.5;
}

.modal-preservado {
    font-size: 12px !important;
    color: #7dd3fc !important;
    margin-top: 14px !important;
}

.modal-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.modal-acoes .btn-action {
    flex: 1 1 140px;
    margin-top: 0;
    width: auto;
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================
   8. COMPLEMENTO: SYNCHRONICITY LOG & MIRROR
   ========================================== */
.header-log {
    border-bottom: 1px solid #232D3B;
    padding-bottom: 15px;
}

.nav-topo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.btn-voltar {
    color: #8A99AD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-voltar:hover {
    color: #FF6B00;
}

.filtros-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filtro-btn {
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #8A99AD;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 20px;
    white-space: nowrap;
    width: auto;
    margin: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.filtro-btn.ativo {
    background: linear-gradient(135deg, #FFB54A 0%, #FF7A18 100%);
    color: #0F141C;
    border-color: rgba(255, 122, 24, 0.8);
    box-shadow: 0 10px 18px rgba(255, 122, 24, 0.18);
}

#timeline-sincronica {
    background: rgba(11, 16, 24, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 18px 16px 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 20px 40px rgba(15, 20, 28, 0.16);
    margin-top: 26px;
    overflow: visible;
}

#timeline-sincronica h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5F7FA;
}

#lista-conexoes {
    margin-top: 16px;
    display: grid;
    gap: 14px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 6px;
    max-height: 620px;
}

.constelacao-timeline {
    display: grid;
    gap: 14px;
}

.timeline-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.timeline-contador {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 184, 77, 0.28);
    background: rgba(255, 181, 74, 0.07);
    color: #FFD38A;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.timeline-contador::before {
    content: "●";
    color: #FFB54A;
    font-size: 10px;
}

.stats-diarios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.timeline-contador.pendente {
    border-color: rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.08);
    color: #FFB380;
}

.timeline-contador.pendente::before {
    color: #FF6B00;
}

/* Checklist dos Lead Indicators semanais */
.leads-checklist {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lead-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #E2E8F0;
    cursor: pointer;
}

.lead-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #FF6B00;
    cursor: pointer;
    flex-shrink: 0;
}

.lead-item.concluido span {
    color: #8A99AD;
    text-decoration: line-through;
}

.leads-progresso {
    font-size: 11px;
    color: #8A99AD;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}

/* O checklist é semanal: sem dizer isso, "os mesmos 3 itens" parece erro de geração */
.card-ciclo .leads-explicacao {
    font-weight: 400;
    color: #8A99AD;
    font-size: 11px;
}

.card-ciclo .leads-acumulado {
    font-size: 11px;
    color: #8A99AD;
    text-align: left;
    margin-top: 6px;
}

.btn-download-timeline {
    border: 1px solid rgba(255, 122, 24, 0.5);
    background: linear-gradient(180deg, rgba(255, 122, 24, 0.12), rgba(255, 122, 24, 0.05));
    color: #FFB54A;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 8px 18px rgba(255, 122, 24, 0.08);
}

.btn-download-timeline.secondary {
    background: rgba(138, 153, 173, 0.08);
    border-color: rgba(138, 153, 173, 0.4);
    color: #D7E1F0;
}

.btn-download-timeline:hover {
    transform: translateY(-1px);
}

/* Os 2 eventos mais recentes ficam soltos; o resto entra neste bloco */
.bloco-timeline-anteriores {
    margin-top: 4px;
}

/* ==========================================
   AJUDA (ajuda.html)
   ========================================== */
#ajuda-topicos .bloco-recolhivel > div p {
    font-size: 13px;
    line-height: 1.6;
    color: #D7E1F0;
    margin: 0 0 9px;
    text-align: left;
}

#ajuda-topicos .bloco-recolhivel > div p:last-child {
    margin-bottom: 0;
}

#ajuda-topicos .bloco-recolhivel > summary > span {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 13px;
}

.ajuda-lista {
    margin: 0 0 9px 18px;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #D7E1F0;
}

.ajuda-lista li {
    margin-bottom: 5px;
}

#ajuda-topicos strong {
    color: #FFB54A;
}

#ajuda-topicos a {
    color: #7dd3fc;
}

/* O prazo do cancelamento surpreende quem espera usar até o fim do mês pago */
.ajuda-alerta {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 181, 74, 0.35);
    background: rgba(255, 122, 24, 0.06);
}

.ajuda-contato {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.ajuda-contato p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #dbeafe;
    text-align: left;
}

.ajuda-contato p:last-child {
    margin-bottom: 0;
}

.ajuda-contato-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #7dd3fc;
}

/* ==========================================
   POR ONDE COMEÇO (some quando os 4 passos fecham)
   ========================================== */
.comecar-painel {
    margin: 0 0 18px;
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.96), rgba(15, 20, 28, 0.96));
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.comecar-kicker {
    margin: 0 0 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #7dd3fc;
}

.passos-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.passo {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.passo:first-child { border-top: none; }

.passo-marca {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #8A99AD;
}

.passo.feito .passo-marca {
    border-color: rgba(125, 211, 252, 0.5);
    color: #7dd3fc;
}

.passo.atual .passo-marca {
    border-color: #FFB54A;
    background: rgba(255, 122, 24, 0.12);
    color: #FFB54A;
}

.passo-corpo { flex: 1; }

.passo-titulo {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #E2E8F0;
    text-align: left;
}

.passo.feito .passo-titulo {
    color: #8A99AD;
    text-decoration: line-through;
}

.passo.pendente .passo-titulo { color: #8A99AD; }

.passo-texto {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8A99AD;
    text-align: left;
}

.passo-acao {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 14px;
}

/* ==========================================
   ACESSO ENCERRADO (substitui a tela preta)
   ========================================== */
.encerrado-painel {
    margin: 18px auto;
    max-width: 520px;
    padding: 22px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.96), rgba(15, 20, 28, 0.96));
    border: 1px solid rgba(255, 181, 74, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 34px rgba(0,0,0,0.35);
    text-align: center;
}

/* Escopadas sob .encerrado-painel de propósito: a regra genérica ".encerrado-painel p",
   logo abaixo, tem especificidade maior e engolia a cor destas três */
.encerrado-painel .encerrado-kicker {
    margin: 0 0 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #FFB54A;
}

.encerrado-painel h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #FFFFFF;
}

.encerrado-painel p {
    font-size: 13px;
    line-height: 1.6;
    color: #D7E1F0;
    margin: 0 0 10px;
}

.encerrado-painel .encerrado-data {
    color: #8A99AD;
    font-size: 12px;
}

.encerrado-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 12px;
}

.encerrado-acoes .btn-action {
    text-decoration: none;
    text-align: center;
}

.encerrado-painel .encerrado-rodape {
    font-size: 12px;
    color: #8A99AD;
}

#btn-sair-encerrado {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Link discreto de ajuda, usado na tela de login e no rodapé do dashboard */
/* Esses resets não são enfeite. A regra base de `button` (linha ~557) é laranja e
   full-width, e a classe só trocava cor e sublinhado — então todo
   <button class="link-ajuda"> saía como CTA laranja de largura cheia, com texto cinza
   por cima. Medido em 2026-09-28: no painel de acesso encerrado, o discreto
   "Sair desta conta" pesava mais que o "Assinar de novo" logo acima dele. */
.link-ajuda {
    display: inline-block;
    margin-top: 12px;
    color: #8A99AD;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: normal;
    box-shadow: none;
}

.link-ajuda:hover {
    color: #D7E1F0;
    /* a base levanta e sombreia o botão no hover; num link isso fica estranho */
    transform: none;
    box-shadow: none;
}

.card-timeline-conexao {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(9, 14, 20, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid rgba(255, 181, 74, 0.92);
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 24px rgba(15, 20, 28, 0.12);
    min-width: 0;
    width: 100%;
}

.data-timeline {
    margin: 0 0 10px;
    color: #FFB54A;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Registro que existe no banco mas não abriu com a chave deste navegador.
   Fica visivelmente diferente de texto normal pra não ser lido como conteúdo. */
.evento-ilegivel {
    color: #facc15;
    font-style: italic;
}

/* Blocos recolhíveis do Histórico. Fechados por padrão pra que o plano de sonhos —
   a intenção e a revisão — caiba na primeira tela do celular. */
.bloco-recolhivel {
    margin: 14px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(23, 30, 40, 0.5);
    overflow: hidden;
}

.bloco-recolhivel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFB54A;
    user-select: none;
}

/* Some o marcador nativo pra usar a seta própria */
.bloco-recolhivel > summary::-webkit-details-marker { display: none; }

.bloco-recolhivel > summary::after {
    content: '▾';
    margin-left: auto;
    color: rgba(148, 163, 184, 0.8);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.bloco-recolhivel[open] > summary::after { transform: rotate(180deg); }

.bloco-recolhivel[open] > summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.contador-recolhivel {
    background: rgba(255, 122, 24, 0.16);
    border: 1px solid rgba(255, 122, 24, 0.35);
    color: #FFB54A;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.contador-recolhivel:empty { display: none; }

.bloco-recolhivel > div {
    padding: 4px 12px 12px;
}

/* Pode haver mais de uma sincronicidade no mesmo dia — o Histórico lista todas */
.lista-sincronicidades {
    margin: 4px 0 8px;
    padding-left: 18px;
    list-style: none;
}

.lista-sincronicidades li {
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
}

.lista-sincronicidades li::before {
    content: '↳';
    position: absolute;
    left: -18px;
    color: #FF7A18;
    font-weight: 700;
}

/* O Espelho é a tela mais abstrata do app: sem dizer quando usar, ela fica parada */
.quando-usar {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #cfe3f5;
}

.quando-usar strong { color: #7dd3fc; }

/* Histórico do Desafio-Espelho */
.card-espelho {
    background: rgba(15, 20, 28, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    line-height: 1.55;
}

.card-espelho p { margin: 0 0 7px; }
.card-espelho strong { color: #FFB54A; }

/* A nova definição é o resultado do exercício — merece destaque */
.card-espelho .espelho-nova-definicao {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.card-espelho .espelho-nova-definicao strong { color: #7dd3fc; }

.card-espelho .espelho-ilegivel {
    color: #facc15;
    font-style: italic;
    font-size: 0.93em;
}

.card-espelho.em-aberto {
    border-color: rgba(255, 181, 74, 0.35);
}

.selo-em-aberto {
    color: #FFB54A;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* "Verdade absoluta" no passo 3: o espelho ainda não quebrou */
.aviso-absoluta {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 181, 74, 0.35);
    background: rgba(255, 122, 24, 0.06);
    color: #FFB54A;
    font-size: 12px;
    line-height: 1.5;
}

/* Fechamento depois de quebrar/registrar o espelho */
.fechamento-espelho {
    margin-top: 16px;
}

.fechamento-espelho p + p {
    margin-top: 8px;
}

.fechamento-espelho .fechamento-definicao {
    padding: 10px 12px;
    border-left: 2px solid #7dd3fc;
    background: rgba(125, 211, 252, 0.06);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    color: #f8fafc;
}

.fechamento-espelho .fechamento-definicao span {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.fechamento-espelho .fechamento-resistencia strong {
    color: #FFB54A;
}

.fechamento-espelho .fechamento-rodape {
    font-size: 11px;
    color: #8A99AD;
}

/* Registro que existe mas não abriu com a chave deste navegador */
.lista-sincronicidades li.sincronicidade-ilegivel {
    color: #facc15;
    font-style: italic;
    font-size: 0.92em;
}

.lista-sincronicidades li.sincronicidade-ilegivel::before {
    content: '!';
    color: #facc15;
}

/* Conexão reversa: ligar um evento já registrado a uma ação anterior */
.area-conexao-reversa {
    margin-top: 10px;
}

.btn-conectar-acao {
    width: 100%;
    background: transparent;
    border: 1px dashed rgba(255, 122, 24, 0.5);
    color: #FFB54A;
    border-radius: 10px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-conectar-acao:hover {
    background: rgba(255, 122, 24, 0.1);
    border-color: #FF7A18;
}

.seletor-conexao {
    margin-top: 10px;
    padding: 10px;
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.bloco-conexao-interna {
    background: rgba(15, 20, 28, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 10px 10px 8px;
}

.bloco-conexao-interna p {
    margin: 8px 0;
    color: #E2E8F0;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.card-contexto {
    background: #0F141C;
    border-left: 3px solid #FF6B00;
    padding: 12px;
    border-radius: 4px 8px 8px 4px;
    font-size: 12px;
    margin-bottom: 20px;
}

.microcopy-lista-acoes {
    color: #8A99AD;
    font-size: 11px;
    margin: -8px 0 14px;
}

.lista-acoes-sincro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.filtros-origem {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.filtro-origem-btn {
    width: auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 11px;
    font-family: inherit;
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #8A99AD;
    border-radius: 999px;
    cursor: pointer;
}

.filtro-origem-btn.ativo {
    background: linear-gradient(135deg, #FFB54A 0%, #FF7A18 100%);
    color: #0F141C;
    border-color: rgba(255, 122, 24, 0.8);
    font-weight: 700;
}

.badge-origem {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.metrica-por-origem {
    font-size: 10px;
    color: #8A99AD;
    line-height: 1.5;
    margin: 6px 0 0;
}

.badge-origem.scan { background: rgba(255, 107, 0, 0.14); color: #FFB380; }
.badge-origem.comando { background: rgba(212, 175, 55, 0.14); color: #D4AF37; }
.badge-origem.lead { background: rgba(96, 165, 250, 0.14); color: #7dd3fc; }

.acao-selecionavel {
    display: block;
    width: 100%;
    background: #0F141C;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid rgba(148, 163, 184, 0.35);
    padding: 12px;
    border-radius: 4px 8px 8px 4px;
    font-size: 12px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acao-selecionavel:hover {
    border-left-color: rgba(255, 107, 0, 0.6);
}

.acao-selecionavel.selecionada {
    border-color: rgba(255, 122, 24, 0.55);
    border-left: 3px solid #FF6B00;
    box-shadow: 0 10px 18px rgba(255, 122, 24, 0.12);
}

.acao-selecionavel.selecionada .timestamp-acao::before {
    content: "✓ SELECIONADA — ";
    color: #FF6B00;
    font-weight: 700;
}

.timestamp-acao { 
    color: #8A99AD; 
    font-size: 10px !important; 
    margin: 0 !important; 
}

.estado-acao span { 
    font-weight: 700; 
    color: #00FF00; 
}

.texto-acao { 
    font-style: italic; 
    margin-top: 5px; 
    color: #E2E8F0; 
}

/* Linha Animada do Tempo Colapsando (Wireframe Original) */
.linha-animada-pontilhada {
    text-align: center;
    font-size: 11px;
    color: #FF6B00;
    letter-spacing: 1px;
    border-top: 1px dashed #232D3B;
    border-bottom: 1px dashed #232D3B;
    padding: 8px 0;
    margin: 12px 0;
    opacity: 0.8;
}

.tag-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.tag-badge.positivo { background: rgba(0,255,0,0.1); color: #00FF00; }
.tag-badge.espelho { background: rgba(255,0,0,0.1); color: #FF1744; }
.tag-badge.neutro { background: rgba(138,153,173,0.1); color: #8A99AD; }

.insight-box {
    background: linear-gradient(180deg, rgba(23, 30, 40, 0.96), rgba(15, 20, 28, 0.92));
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.insight-box:hover {
    border-color: rgba(255, 181, 74, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.btn-abrir-espelho {
    display: inline-block;
    margin-top: 8px;
    color: #FF1744;
    border: 1px solid #FF1744;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn-abrir-espelho:hover {
    background: rgba(255, 23, 68, 0.06);
    transform: translateY(-1px);
}

.dashboard-cta {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Atalho do Desafio-Espelho: mesmo formato do Coach, no azul-céu do bloco de sincronicidade */
.btn-abrir-coach.variante-espelho {
    border-color: rgba(125, 211, 252, 0.45);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(15, 20, 28, 0.98) 55%);
}

.btn-abrir-coach.variante-espelho::before {
    background: linear-gradient(120deg, transparent 30%, rgba(125, 211, 252, 0.14) 50%, transparent 70%);
}

.btn-abrir-coach.variante-espelho:hover {
    border-color: rgba(125, 211, 252, 0.85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 36px rgba(14, 165, 233, 0.14);
}

.btn-abrir-coach.variante-espelho .btn-abrir-coach-kicker { color: #7dd3fc; }
.btn-abrir-coach.variante-espelho .btn-abrir-coach-titulo { color: #e0f2fe; }

.nav-atalho-espelho {
    margin: 6px 0 2px;
}

.btn-abrir-coach {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #F6E7C1;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(15, 20, 28, 0.98) 55%);
    border-radius: 14px;
    padding: 16px 18px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 30px rgba(2, 6, 23, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-abrir-coach::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(212, 175, 55, 0.16) 50%, transparent 70%);
    pointer-events: none;
}

.btn-abrir-coach:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 36px rgba(212, 175, 55, 0.14);
}

.btn-abrir-coach-kicker {
    position: relative;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #D4AF37;
}

.btn-abrir-coach-titulo {
    position: relative;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #F6E7C1;
}

.card-ciclo {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.card-ciclo h4 {
    color: #FF6B00;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-ciclo p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #E2E8F0;
    text-align: justify;
}

.card-ciclo ul {
    margin: 4px 0 8px 18px;
    font-size: 13px;
    color: #CBD5E1;
}

.card-ciclo.ciclo-atual {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(212, 175, 55, 0.18), 0 16px 30px rgba(212, 175, 55, 0.08);
}

/* Cards recolhíveis: mesmo padrão do .bloco-recolhivel do Histórico */
.card-ciclo > summary {
    position: relative;
    padding-right: 24px;
    cursor: pointer;
    list-style: none;
}

.card-ciclo > summary::-webkit-details-marker { display: none; }

.card-ciclo > summary::after {
    content: '▾';
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(148, 163, 184, 0.8);
    font-size: 15px;
    transition: transform 0.2s ease;
}

.card-ciclo[open] > summary::after { transform: rotate(180deg); }

.card-ciclo[open] > summary {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.card-ciclo > summary h4 {
    margin-bottom: 4px;
}

.card-ciclo .ciclo-periodo {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #8A99AD;
    text-align: left;
}

.card-ciclo.ciclo-atual .ciclo-periodo {
    color: #D4AF37;
}

.card-ciclo.ciclo-passado > summary h4 {
    color: #8A99AD;
}

.card-ciclo .ciclo-aviso-futuro {
    font-size: 12px;
    color: #FFB54A;
    text-align: left;
}

.lead-item input:disabled {
    cursor: not-allowed;
}

.lead-item input:disabled + span {
    opacity: 0.55;
}

.badge-ciclo-atual {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    vertical-align: middle;
}

.progresso-financeiro {
    margin: 6px 0 12px;
}

.progresso-financeiro:empty {
    display: none;
}

.progresso-financeiro-barra {
    height: 8px;
    margin: 6px 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.progresso-financeiro-barra span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFB54A, #FF7A18);
}

.card-ciclo .progresso-financeiro-detalhe {
    font-size: 12px;
    color: #8A99AD;
    text-align: left;
}

.card-ciclo .progresso-financeiro-detalhe.atingida {
    color: #D4AF37;
    font-weight: 700;
}

.leads-progresso.completo {
    color: #4ade80;
    font-weight: 700;
}

.subtitulo-historico {
    margin: 18px 0 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A99AD;
}

.card-plano-original {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 16px;
}

/* Sonhos atuais, ao lado do inicial — só aparece quando houve revisão.
   Azul pra contrastar com o dourado do card original, sem competir com ele. */
.card-plano-atual {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.07), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
}

.card-plano-atual p {
    font-size: 13px;
    line-height: 1.5;
    color: #E2E8F0;
    text-align: justify;
    margin-bottom: 4px;
}

.card-plano-atual .kicker-historico {
    color: #7dd3fc;
}

.card-plano-arquivado {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.card-plano-arquivado p {
    font-size: 13px;
    line-height: 1.5;
    color: #CBD5E1;
    text-align: justify;
    margin-bottom: 4px;
}

/* Restaurar troca o plano ativo: fica discreto, não compete com as ações do ano corrente */
.btn-restaurar-ano {
    width: 100%;
    margin-top: 12px;
    border-color: rgba(148, 163, 184, 0.35);
    color: #94A3B8;
    background: transparent;
}

.btn-restaurar-ano:hover {
    border-color: rgba(125, 211, 252, 0.6);
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc;
    transform: none;
}

.nota-restaurar {
    font-size: 12px !important;
    color: #94A3B8 !important;
    text-align: center !important;
    margin: 8px 0 0 !important;
}

.card-plano-original p {
    font-size: 13px;
    line-height: 1.5;
    color: #E2E8F0;
    text-align: justify;
    margin-bottom: 4px;
}

.kicker-historico {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D4AF37;
    text-align: left !important;
}

.card-evolucao {
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(20, 29, 38, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.card-evolucao h4 {
    color: #7dd3fc;
    margin-bottom: 8px;
    font-size: 13px;
}

.card-evolucao p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #E2E8F0;
    text-align: justify;
}

.botoes-acao-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-secundario {
    background: transparent;
    border: 1px solid #232D3B;
    color: #8A99AD;
}

.btn-secundario:hover {
    background: rgba(23, 30, 40, 0.5);
    color: #FFFFFF;
}

.tags-selecao {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tags-selecao .tag-btn {
    width: auto;
    margin: 0;
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #8A99AD;
    border-radius: 999px;
}

.tags-selecao .tag-btn.selecionada {
    background: linear-gradient(135deg, #FFB54A 0%, #FF7A18 100%);
    color: #0F141C;
    border-color: rgba(255, 122, 24, 0.8);
    box-shadow: 0 10px 18px rgba(255, 122, 24, 0.18);
}

.tags-hint {
    margin-top: -8px;
    margin-bottom: 15px;
    font-size: 11px;
    color: #8A99AD;
    line-height: 1.4;
}

.tags-hint strong {
    color: #FFB54A;
    font-weight: 700;
}

.sincronicidade-bashar {
    margin-top: 14px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(125, 211, 252, 0.32);
    box-shadow: 0 18px 30px rgba(14, 165, 233, 0.09);
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.7;
}

.sincronicidade-bashar strong {
    color: #7dd3fc;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.sincronicidade-premium {
    margin-top: 14px;
    padding: 16px 16px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 35, 48, 0.76));
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow: 0 18px 26px rgba(14, 165, 233, 0.09), inset 0 1px 0 rgba(255,255,255,0.06);
    color: #edf6ff;
    overflow: hidden;
    position: relative;
    animation: surgir 0.5s ease;
}

.sincronicidade-premium::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), transparent);
}

.premium-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #9adcfb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.premium-status {
    color: #d7e7f7;
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.sincronicidade-premium h3 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sincronicidade-premium p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #dfeaf8;
}

.premium-barra {
    margin-top: 12px;
    width: 100%;
    height: 1.5px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(125,211,252,0.08), rgba(125,211,252,0.7), rgba(125,211,252,0.08));
}

#feedback-nada {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.6;
}


