/* Matrix Spins — Notification Bell + Toasts */
.msn-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.msn-bell {
  background: transparent;
  border: 1px solid rgba(0, 255, 156, 0.18);
  color: #d6ffe9;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 120ms, border-color 120ms, transform 120ms;
}
.msn-bell:hover { background: rgba(0,255,156,0.08); border-color: rgba(0,255,156,0.35); }
.msn-bell:active { transform: scale(0.95); }
.msn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3366;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  border: 2px solid #07120c;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

.msn-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 480px;
  background: #07120c;
  border: 1px solid rgba(0, 255, 156, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  overflow: hidden;
  display: none;
  z-index: 999990;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #d6ffe9;
}
.msn-panel.open { display: flex; flex-direction: column; }

.msn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, #122a1c, #0d1f15);
  border-bottom: 1px solid rgba(0,255,156,0.18);
}
.msn-panel-head h3 { font-size: 14px; font-weight: 700; margin: 0; color: #d6ffe9; letter-spacing: 0.3px; }
.msn-mark-all {
  background: transparent;
  border: 1px solid rgba(0,255,156,0.22);
  color: #00ff9c;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms;
}
.msn-mark-all:hover { background: rgba(0,255,156,0.1); }

.msn-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #00cc7a #07120c;
}
.msn-list::-webkit-scrollbar { width: 6px; }
.msn-list::-webkit-scrollbar-thumb { background: #00cc7a; border-radius: 3px; }

.msn-empty {
  padding: 26px 18px;
  text-align: center;
  color: #6fa386;
  font-size: 13px;
}
.msn-empty a { color: #00ff9c; text-decoration: none; }
.msn-empty a:hover { text-decoration: underline; }

.msn-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,255,156,0.08);
  cursor: pointer;
  transition: background 120ms;
}
.msn-item:hover { background: rgba(0,255,156,0.04); }
.msn-item.unread { background: rgba(0,255,156,0.05); }
.msn-item.unread::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff9c;
  margin-top: 16px;
  box-shadow: 0 0 6px #00ff9c;
  flex-shrink: 0;
}

.msn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(0,255,156,0.08);
  border: 1px solid rgba(0,255,156,0.2);
}
.msn-icon.deposit { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); }
.msn-icon.withdrawal { background: rgba(255,140,0,0.1); border-color: rgba(255,140,0,0.3); }
.msn-icon.bonus { background: rgba(255,80,160,0.1); border-color: rgba(255,80,160,0.3); }
.msn-icon.level_up { background: rgba(120,180,255,0.1); border-color: rgba(120,180,255,0.3); }
.msn-icon.daily_reward { background: rgba(255,180,80,0.1); border-color: rgba(255,180,80,0.3); }
.msn-icon.win { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); }
.msn-icon.support { background: rgba(0,200,255,0.1); border-color: rgba(0,200,255,0.3); }

.msn-content { flex: 1; min-width: 0; }
.msn-title {
  font-weight: 600;
  font-size: 13px;
  color: #d6ffe9;
  margin-bottom: 2px;
}
.msn-body {
  font-size: 12.5px;
  color: #9bbfa9;
  line-height: 1.4;
  margin-bottom: 4px;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msn-time { font-size: 10.5px; color: #6fa386; }

/* ── Toasts ────────────────────────────────────────────────── */
.msn-toasts {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 36px);
}
.msn-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #07120c;
  border: 1px solid rgba(0,255,156,0.3);
  border-left: 3px solid #00ff9c;
  border-radius: 10px;
  padding: 12px 14px;
  width: 340px;
  max-width: calc(100vw - 36px);
  color: #d6ffe9;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), 0 0 18px rgba(0,255,156,0.15);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.msn-toast.show { opacity: 1; transform: translateX(0); }
.msn-toast.hide { opacity: 0; transform: translateX(60px); }
.msn-toast-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: rgba(0,255,156,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.msn-toast-text { flex: 1; min-width: 0; }
.msn-toast-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.msn-toast-body { font-size: 12.5px; color: #9bbfa9; line-height: 1.4; word-wrap: break-word; }
.msn-toast-close {
  background: transparent;
  border: none;
  color: #6fa386;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
}
.msn-toast-close:hover { color: #d6ffe9; background: rgba(0,255,156,0.08); }

@media (max-width: 480px) {
  .msn-panel { right: -50px; width: min(340px, calc(100vw - 24px)); }
  .msn-toasts { top: 10px; right: 10px; left: 10px; }
  .msn-toast { width: 100%; }
}
