/* ============================================================
   Site-wide Session Expiry / Keep-Alive modal (ported from the
   River Village Client — ink + gold identity, FA5 icons).
   ============================================================ */
.session-expiry-overlay {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(15, 13, 9, .62); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.session-expiry-overlay.is-open { opacity: 1; visibility: visible; }

.session-expiry-card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 13, 9, .4);
    transform: translateY(14px) scale(.98); transition: transform .25s ease;
}
.session-expiry-overlay.is-open .session-expiry-card { transform: translateY(0) scale(1); }

.session-expiry-head {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px;
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2620 100%);
}
.session-expiry-badge {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px;
    background: linear-gradient(135deg, var(--theme-color, #E8AA42), #f3cf8a); color: #1c1c1c;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    animation: sePulse 1.8s ease-in-out infinite;
}
@keyframes sePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.session-expiry-head h5 { margin: 0; color: #fff; font-size: 16.5px; font-weight: 700; }
.session-expiry-head p { margin: 3px 0 0; color: var(--theme-color, #E8AA42); font-size: 11.5px; }

.session-expiry-body { padding: 22px; }
.session-expiry-text { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #3a352b; }
.session-expiry-count { display: inline-block; min-width: 30px; text-align: center; font-weight: 800; color: #dc3545; font-size: 16px; }
.session-expiry-bar { height: 6px; border-radius: 30px; background: #efe9d9; overflow: hidden; }
.session-expiry-bar > span {
    display: block; height: 100%; width: 100%; border-radius: 30px;
    background: linear-gradient(90deg, var(--theme-color, #E8AA42), #f3cf8a);
    transition: width 1s linear;
}

.session-expiry-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.session-expiry-btn {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 16px; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
    color: #1c1c1c; background: linear-gradient(135deg, #f3c96e, var(--theme-color, #E8AA42));
    transition: filter .15s ease, box-shadow .2s ease;
}
.session-expiry-btn:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(232, 170, 66, .35); }
.session-expiry-btn.session-expiry-btn-ghost { background: #fff; color: #6b6452; border: 1px solid #e3dcc9; }
.session-expiry-btn.session-expiry-btn-ghost:hover { box-shadow: 0 6px 16px rgba(28, 28, 28, .1); filter: none; }

@media (max-width: 575.98px) {
    .session-expiry-foot { flex-direction: column-reverse; }
}

/* ---- floating notification-sound mute toggle (notify-sound.js) ---- */
.rv-sound-toggle {
    position: fixed; left: 18px; bottom: 18px; z-index: 12000;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: #1c1c1c; color: var(--theme-color, #E8AA42);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 19px;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.rv-sound-toggle:hover { transform: translateY(-2px) scale(1.06); background: var(--theme-color, #E8AA42); color: #1c1c1c; }
.rv-sound-toggle.is-muted { color: #dc2626; }
.rv-sound-toggle.is-muted:hover { background: #dc2626; color: #fff; }
@media (max-width: 575.98px) {
    .rv-sound-toggle { width: 40px; height: 40px; left: 12px; bottom: 12px; font-size: 17px; }
}

/* header-embedded variant of the sound toggle (falls back to floating on small screens) */
.rv-sound-toggle--header {
    position: static !important;
    width: 40px; height: 40px; font-size: 16px;
    margin-right: 12px; flex: 0 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    align-self: center;
}
.header-button { align-items: center; }
