.ts-notif-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.ts-notif-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ts-notif-icone {
    font-size: 52px;
    margin-bottom: 12px;
}

.ts-notif-h2 {
    font-size: 1.4rem;
    color: #24483e;
    margin: 0 0 12px 0;
}

.ts-notif-p {
    color: #444444;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.ts-notif-botoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-btn-primary {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #24483e;
    color: #ffffff;
    border: 2px solid #24483e;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-btn-primary:hover {
    background-color: #1a3530;
    border-color: #1a3530;
}

.ts-btn-ghost {
    padding: 12px 24px;
    font-size: 0.95rem;
    background-color: transparent;
    color: #666666;
    border: 2px solid #cccccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-btn-ghost:hover {
    border-color: #24483e;
    color: #24483e;
}

/* ==============================
   Toast de boas-vindas (in-app)
   ============================== */
.ts-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99998;
    background: #24483e;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 340px;
    width: calc(100% - 48px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: ts-toast-entrada 0.35s ease forwards;
}

.ts-toast.ts-toast-saindo {
    animation: ts-toast-saida 0.35s ease forwards;
}

.ts-toast-icone {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.ts-toast-conteudo {
    flex: 1;
    min-width: 0;
}

.ts-toast-titulo {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ts-toast-corpo {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.ts-toast-fechar {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0.7;
    flex-shrink: 0;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.ts-toast-fechar:hover {
    opacity: 1;
}

@keyframes ts-toast-entrada {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ts-toast-saida {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}

/* Alto contraste */
body.alto-contraste .ts-toast {
    background: #000000 !important;
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

body.alto-contraste .ts-toast-fechar {
    color: #ffffff !important;
}

/* Alto contraste (modal de permissão) */
body.alto-contraste .ts-notif-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

body.alto-contraste .ts-notif-modal {
    background-color: #000000 !important;
    border: 2px solid #ffffff;
}

body.alto-contraste .ts-notif-h2,
body.alto-contraste .ts-notif-p {
    color: #ffffff !important;
}

body.alto-contraste .ts-btn-primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.alto-contraste .ts-btn-ghost {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.alto-contraste .ts-btn-ghost:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}
