/* Coach Guide — Gestor + Consultor LeAction (gamificação transversal) */
.coach-guide {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    max-width: min(320px, calc(100vw - 36px));
}
.coach-guide * { pointer-events: auto; box-sizing: border-box; }

.coach-guide__bubble {
    background: #fff;
    border: 1px solid #e9e0ff;
    border-radius: 14px 14px 4px 14px;
    padding: 12px 14px;
    box-shadow: 0 12px 32px rgba(74, 46, 128, 0.18);
    animation: coachFadeIn 0.35s ease;
    position: relative;
}
.coach-guide__bubble.is-hidden { display: none; }
.coach-guide__bubble::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid #e9e0ff;
    border-bottom: 1px solid #e9e0ff;
    transform: rotate(45deg);
}
@keyframes coachFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.coach-guide__bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.coach-guide__speaker {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c5ce7;
}
.coach-guide__close {
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
}
.coach-guide__close:hover { background: #e5e7eb; color: #374151; }
.coach-guide__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #374151;
}
.coach-guide__text--pulse {
    animation: coachTextPulse 0.35s ease;
}
@keyframes coachTextPulse {
    from { opacity: 0.35; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}
.coach-guide__cta {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d97706;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
}

.coach-guide__dock {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px 8px 5px 5px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(8px);
}
.coach-guide__avatar-btn {
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
}
.coach-guide__avatar-btn:hover,
.coach-guide__avatar-btn.is-active {
    transform: scale(1.06);
    border-color: #6c5ce7;
}
.coach-guide__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}
.coach-guide__avatar--consultor {
    background: #f5f3ff;
}
.coach-guide__role {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    padding-right: 4px;
    max-width: 72px;
    line-height: 1.2;
    text-align: right;
}

@media (max-width: 640px) {
    .coach-guide { right: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
    .coach-guide__role { display: none; }
}

@media print {
    .coach-guide { display: none !important; }
}
