/* Mesaje: clopoțel, panou și notificare */
[data-msg-btn]{position:relative}
[data-msg-btn] svg{width:20px;height:20px;display:block;margin:auto}
.hero-actions #msg-btn{width:44px;height:44px}
.msg-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font:700 11px/18px "IBM Plex Sans",system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #1a2233}
.msg-badge[hidden]{display:none}

.msg-panel{position:fixed;z-index:1200;top:76px;right:16px;width:392px;max-height:min(72vh,620px);display:flex;flex-direction:column;background:#fff;color:#16203a;border:1px solid #dde4ef;border-radius:14px;box-shadow:0 24px 60px -20px rgba(15,27,51,.45);overflow:hidden;opacity:0;transform:translateY(-6px);transition:opacity .15s,transform .15s}
.msg-panel.is-open{opacity:1;transform:none}
.msg-panel[hidden]{display:none}
.msg-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #e8edf4}
.msg-head strong{font:700 16px "IBM Plex Sans",system-ui,sans-serif;margin-right:auto}
.msg-readall{background:none;border:0;color:#2557c9;font:600 13px "IBM Plex Sans",system-ui,sans-serif;cursor:pointer;padding:4px 6px;border-radius:6px}
.msg-readall:hover{background:#eef3fd}.msg-readall[hidden]{display:none}
.msg-x{display:none;background:#f1f4f8;border:0;width:32px;height:32px;border-radius:8px;font-size:20px;line-height:1;cursor:pointer;color:#33475a}
.msg-list{overflow:auto;overscroll-behavior:contain}
.msg-item{display:flex;gap:12px;width:100%;text-align:left;padding:14px 16px;background:#fff;border:0;border-bottom:1px solid #eef2f7;cursor:pointer;font:inherit;color:inherit}
.msg-item:hover{background:#f7f9fc}.msg-item:last-child{border-bottom:0}
.msg-item.is-new{background:#f2f7ff;box-shadow:inset 3px 0 0 #2f6bff}
.msg-ico{flex:none;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#e7efff;color:#2557c9}
.msg-ico.admin{background:#fff1d9;color:#9a6208}
.msg-ico svg{width:20px;height:20px}
.msg-txt{display:grid;gap:3px;min-width:0}
.msg-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msg-top b{font:600 14.5px/1.3 "IBM Plex Sans",system-ui,sans-serif}
.msg-top em{font:600 10.5px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.04em;text-transform:uppercase;font-style:normal;color:#9a6208;background:#fff1d9;border-radius:4px;padding:2px 6px}
.msg-body{font-size:13.5px;line-height:1.5;color:#4a5a73}
.msg-txt time{font-size:12px;color:#8190a1}
.msg-empty{padding:40px 28px;text-align:center;color:#5b6784}
.msg-empty span{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:#eef3fd;color:#2557c9}
.msg-empty span svg{width:24px;height:24px}.msg-empty p{font-weight:700;color:#16203a;margin:0 0 6px}.msg-empty small{font-size:13px;line-height:1.5}

.msg-toast{position:fixed;z-index:1300;left:20px;bottom:20px;display:flex;gap:12px;align-items:flex-start;max-width:360px;text-align:left;background:#fff;color:#16203a;border:1px solid #dde4ef;border-radius:12px;padding:12px 14px;box-shadow:0 18px 40px -18px rgba(15,27,51,.5);cursor:pointer;font:inherit;opacity:0;transform:translateY(12px);transition:opacity .25s,transform .25s}
.msg-toast.in{opacity:1;transform:none}
.msg-toast b{display:block;font:600 14px "IBM Plex Sans",system-ui,sans-serif}
.msg-toast small{display:block;margin-top:2px;font-size:12.5px;line-height:1.45;color:#5b6784}

:root[data-theme=dark] .msg-panel,:root[data-theme=dark] .msg-toast{background:#1b2433;color:#e7edf6;border-color:#33425a}
:root[data-theme=dark] .msg-head,:root[data-theme=dark] .msg-item{border-color:#2d3a50}
:root[data-theme=dark] .msg-item{background:#1b2433}:root[data-theme=dark] .msg-item:hover{background:#222d40}
:root[data-theme=dark] .msg-item.is-new{background:#1f2c46}
:root[data-theme=dark] .msg-body,:root[data-theme=dark] .msg-toast small,:root[data-theme=dark] .msg-empty{color:#a9b6cc}
:root[data-theme=dark] .msg-empty p{color:#e7edf6}:root[data-theme=dark] .msg-x{background:#2d3a50;color:#e7edf6}
:root[data-theme=dark] .msg-readall{color:#7aa2ff}:root[data-theme=dark] .msg-readall:hover{background:#25334e}

@media(max-width:640px){
  .msg-panel{top:auto;left:0;right:0;bottom:0;width:auto;max-height:78vh;border-radius:18px 18px 0 0;transform:translateY(20px)}
  .msg-x{display:block}
  .msg-toast{left:12px;right:12px;bottom:12px;max-width:none}
  html.msg-sheet-open body{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.msg-panel,.msg-toast{transition:none}}
