/* PWA modal + banner */

.pwa-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 1rem;
}
.pwa-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.pwa-card h2 {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}
.pwa-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.pwa-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pwa-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.7rem 1rem 0.7rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.85rem;
    max-width: 90vw;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.pwa-btn-gold {
    background: var(--accent); color: var(--btn-text);
    border: none; border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    font-weight: 600; cursor: pointer;
    font-family: inherit; font-size: 0.85rem;
}
.pwa-btn-gold:hover { background: var(--accent-light); }

.pwa-btn-link {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit; font-size: 0.85rem;
}
.pwa-btn-link:hover { color: var(--text-primary); border-color: var(--border-hover); }

@media (max-width: 480px) {
    .pwa-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .pwa-banner > div { display: flex; gap: 0.4rem; justify-content: center; }
}

/* Sininho de notificações ----------------------------- */
.sininho-wrap { position: relative; }
.sininho-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px; height: 38px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.sininho-btn:hover { border-color: var(--accent); background: rgba(212,175,55,0.08); }
.sininho-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

.sininho-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: 360px;
    max-width: 92vw;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 100;
}
.sininho-cab {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.sininho-link {
    background: none; border: none;
    color: var(--accent);
    font-size: 0.78rem; cursor: pointer;
    font-family: inherit;
}
.sininho-link:hover { text-decoration: underline; }

.sininho-lista {
    max-height: 60vh;
    overflow-y: auto;
}
.sininho-vazio {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.sininho-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.15s;
}
.sininho-item:hover { background: rgba(255,255,255,0.03); }
.sininho-item:last-child { border-bottom: 0; }
.sininho-item.nao-lida { background: rgba(212,175,55,0.06); }
.sininho-item h4 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.sininho-item p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}
.sininho-item time {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}
